Skip to content

Instantly share code, notes, and snippets.

View 174n's full-sized avatar

Ivan Alexandrov 174n

View GitHub Profile
@174n
174n / vm.commands.txt
Created February 6, 2018 00:54
Tiny Core Linux: LAMP
qemu/qemu-img.exe create -f vpc tc.vhd 4G
---
qemu\qemu-system-i386 -L qemu\bios.bin -m 1024 -kernel vmlinuz -initrd core.gz -hda tc.vhd -append "home=sda1 opt=sda1 tce=sda1" -redir tcp:2222::22 -redir tcp:80::80 -nographic
---
printf "o\nn\np\n1\n\n\nw\n" | sudo fdisk /dev/sda
sudo mkfs.ext4 /dev/sda1
sudo reboot
---
tce-load -wi openssh
cd /usr/local/etc/ssh/
@174n
174n / getMP3.js
Last active January 14, 2018 10:34
audioknigi.club
"https://audioknigi.club/rest/bid/"+/audioPlayer\((.*?),/g
.exec(document.querySelector("#content > div > article > div.main-frame > script:nth-child(3)").innerHTML)[1]
@174n
174n / notes.js
Last active April 30, 2017 19:07
Widgets
var notes = $("<div />", {"class": "test notes"})
.append(
$("<textarea />",{
"css": {
"width":"100%",
"height":"120px",
"resize": "vertical",
"padding":"5px"
}
})