Skip to content

Instantly share code, notes, and snippets.

View icesonata's full-sized avatar
💭

Long Nguyen icesonata

💭
View GitHub Profile
LLM = 'qwen3:1.7b' # via Ollama: https://ollama.com/library/qwen3:1.7b
SBERT_MODEL = 'dangvantuan/vietnamese-embedding'
_Factual_LABEL = 'True'
_Non_Factual_LABEL = 'False'
_STATEMENT_PLACEHOLDER = '[STATEMENT]'
_KNOWLEDGE_PLACEHOLDER = '[KNOWLEDGE]'
# How to off reasoning capability in Ollama: /set nothink

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@icesonata
icesonata / task1.py
Created June 11, 2020 18:31
Cryptography - Lab 3
from Crypto.Util import number
import math
import random
def isPrime(n):
if n < 2 or n % 2 == 0:
return False
for i in range(3,int(math.sqrt(n))):
if n % i == 0:
return False
@icesonata
icesonata / four_square.py
Last active April 17, 2020 01:07
Four-square cipher
import copy
alphabet = {
'a': 0,
'b': 1,
'c': 2,
'd': 3,
'e': 4,
'f': 5,
'g': 6,
@icesonata
icesonata / playfair.py
Last active April 17, 2020 01:10
Playfair cipher
import copy
alphabet = {
'a': 0,
'b': 1,
'c': 2,
'd': 3,
'e': 4,
'f': 5,
'g': 6,
@icesonata
icesonata / dumps_jpg.txt
Last active April 10, 2020 14:20
Assignments
00000000: 8ab1 8b89 6cea 3011 1d0e 636d 3824 7442 ....l.0...cm8$tB
00000010: 636d 7561 7464 626d 756a 7468 636c 7649 cmuatdbmujthclvI
00000020: 7468 626c 756a 7468 636c 774f 7468 626f thblujthclwOthbo
00000030: 756a 7468 636e 7569 74f6 626b 756a 7468 ujthcnuit.bkujth
00000040: 636c 756b 7468 627f 756a 7468 636c 7568 clukthb.ujthcluh
00000050: 7468 6278 756a 7468 636c 756a 7468 6277 thbxujthclujthbw
00000060: 756c 7468 636c 7569 74cc 6276 756c 7468 ulthcluit.bvulth
00000070: 636c 7569 74c4 6245 756a 7468 636c 756b cluit.bEujthcluk
00000080: 7468 625c 756b 7468 634f 7569 74dc 625f thb\ukthcOuit.b_
00000090: 756b 7468 6379 7569 74be e404 756d 7468 ukthcyuit...umth