Skip to content

Instantly share code, notes, and snippets.

View AdrianKoshka's full-sized avatar
🦉
Focusing

Adrian Lucrèce Céleste AdrianKoshka

🦉
Focusing
View GitHub Profile
@AdrianKoshka
AdrianKoshka / dhcpd.conf
Created July 30, 2016 15:50 — forked from robinsmidsrod/dhcpd.conf
Trying to chainload iPXE with full feature set from a lesser featured one, whilst still being able to boot non-supported cards with UNDI
ddns-update-style none;
deny bootp; #default
authoritative;
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.100 10.1.1.199;
option subnet-mask 255.255.255.0;
@AdrianKoshka
AdrianKoshka / fbterm-hacks.md
Created August 2, 2016 01:53 — forked from zellio/fbterm-hacks.md
fbterm, installation and configuration hacks

fbterm setup and config hacks

Installation and setup

Install fbterm via your favorite package manager

pacman -S fbterm
@AdrianKoshka
AdrianKoshka / xorg.conf
Created August 3, 2016 00:39
imac G3 xorg.conf
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
[Desktop Entry]
Name=Discord
Comment=Free Text & Voice Chat for Gamers
Exec=DiscordCanary
Type=Application
Terminal=false
Icon=/usr/share/icons/discord.png
Categories=Network;
qemu-system-x86_64 -enable-kvm -name guest=win10,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-57-win10/master-key.aes -machine pc-q35-2.8,accel=kvm,usb=off,dump-guest-core=off -cpu host,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -drive file=/usr/share/OVMF/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=/var/lib/libvirt/qemu/nvram/win10_VARS.fd,if=pflash,format=raw,unit=1 -m 6144 -realtime mlock=off -smp 1,maxcpus=4,sockets=1,cores=4,threads=1 -uuid dff716b6-cb9e-4d52-918a-d235dd59a8b9 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-57-win10/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -boot strict=on -device ioh3420,port=0x10,chassis=1,id=pci.1,bus=pcie.0,addr=0x2 -device ioh3420,port=0x18,chassis=2,id=pci.2,b
@AdrianKoshka
AdrianKoshka / youtube.sh
Created May 11, 2017 00:27 — forked from AcouBass/youtube.sh
youtubes sub script
#!/bin/sh
passs=$(pass Internet/Google | head -n 1)
youtube-dl -i -u [email protected] :ytsubs -p $passs -2 $2 --dateafter now-$1days -v --download-archive /home/eddie/pipes/youtubearchive
#!ipxe
kernel http://example.com/linux initrd=initrd.gz auto url=http://example.com/preseed.cfg
initrd http://example.com/initrd.gz
boot
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock9 1.0G 388.3M 635.7M 38% /
none 131.4M 0 131.4M 0% /dev
devtmpfs 131.4M 0 131.4M 0% /dev
tmpfs 131.4M 12.0K 131.4M 0% /tmp
tmpfs 131.4M 0 131.4M 0% /mnt
/dev/block/mtdblock4 32.0M 6.1M 25.9M 19% /mnt/factory_setting
/dev/block/mtdblock10
1.9G 59.3M 1.8G 3% /mnt/scratch
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - not found
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - not found
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.3")
CMake Error at CMakeLists.txt:384 (message):
CMAKE_USE_SYSTEM_LIBLZMA is ON but LibLZMA is not found!
Call Stack (most recent call first):
* Package: dev-util/cmake-3.7.2
* Repository: gentoo
* Maintainer: [email protected]
* USE: abi_x86_x32 amd64 elibc_glibc kernel_linux ncurses userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking cmake-3.7.2.tar.gz to /var/tmp/portage/dev-util/cmake-3.7.2/work
>>> Source unpacked in /var/tmp/portage/dev-util/cmake-3.7.2/work
>>> Preparing source in /var/tmp/portage/dev-util/cmake-3.7.2/work/cmake-3.7.2 ...
* Applying cmake-3.4.0_rc1-darwin-bundle.patch ... [ ok ]