This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set default=0 | |
set timeout=1 | |
# insmod efi_uga | |
insmod all_video | |
insmod font | |
if loadfont ${prefix}/unicode.pf2 | |
then | |
insmod gfxterm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /var/lib/ceph/mds/ceph-$(hostname -s)/ | |
ceph-authtool --create-keyring /var/lib/ceph/mds/ceph-$(hostname -s)/keyring --gen-key -n mds.$(hostname -s) | |
ceph auth add mds.$(hostname -s) osd "allow rwx" mds "allow" mon "allow profile mds" -i /var/lib/ceph/mds/ceph-$(hostname -s)/keyring | |
sudo chown -R ceph:ceph /var/lib/ceph | |
systemctl enable ceph-mds@$(hostname -s) | |
systemctl start ceph-mds@$(hostname -s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from time import sleep | |
import bizhawk.emu as emu | |
import bizhawk.gui as gui | |
from System.Drawing import Pen, Color | |
pen = Pen(Color.FromArgb(255, 255, 0, 0)) | |
def update(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
# Based on: https://tools.ietf.org/html/rfc7690#section-3.2 | |
# More info: https://blog.cloudflare.com/path-mtu-discovery-in-practice/ | |
# Also: https://github.com/cloudflare/pmtud | |
# Dependencies: python2, netifaces, scapy | |
from scapy.all import Ether, ICMP, IP, IPerror, TCPerror, sendp, sniff, conf | |
from subprocess import call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Disk /dev/loop1: 74.5 GiB, 80026361856 bytes, 156301488 sectors | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 512 bytes | |
I/O size (minimum/optimal): 512 bytes / 512 bytes | |
Disklabel type: dos | |
Disk identifier: 0x6ad4b821 | |
Device Boot Start End Sectors Size Id Type | |
/dev/loop1p1 63 156296384 156296322 74.5G 5 Extended | |
/dev/loop1p5 126 117451214 117451089 56G 4d QNX4.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"firewall": { | |
"group": { | |
"network-group": { | |
"rfc1918_networks": { | |
"network": [ | |
"192.168.0.0/16", | |
"172.16.0.0/12", | |
"10.0.0.0/8" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%PAM-1.0 | |
# If LDAP lookup is successful, continue through group checks, otherwise skip | |
auth sufficient pam_ldap.so minimum_uid=1000 | |
auth required pam_unix.so try_first_pass nullok | |
auth optional pam_permit.so | |
auth required pam_env.so | |
# If LDAP lookup is successful, continue through group checks, otherwise skip | |
account [success=ok default=2] pam_ldap.so minimum_uid=1000 | |
account sufficient pam_succeed_if.so user ingroup posixSystemAdministrators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 0x19b5941 Thread name "Threadpool worker" 1000 samples (1-1000) priority 31 (base 31) cpu time 9.974 | |
907 thread_start + 13 (libsystem_pthread.dylib + 12429) [0x7fffa14de08d] | |
907 _pthread_start + 286 (libsystem_pthread.dylib + 14471) [0x7fffa14de887] | |
907 _pthread_body + 180 (libsystem_pthread.dylib + 14651) [0x7fffa14de93b] | |
907 start_wrapper + 675 (Clima + 2274083) [0x10fd3b323] | |
907 worker_thread + 353 (Clima + 2232337) [0x10fd31011] | |
907 worker_callback + 928 (Clima + 2241792) [0x10fd33500] | |
907 do_runtime_invoke + 88 (Clima + 1970888) [0x10fcf12c8] | |
907 mono_jit_runtime_invoke + 1316 (Clima + 1150308) [0x10fc28d64] | |
907 ??? [0x1169d9fe2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ dd if=/dev/urandom of=/etc/zfs/initcpio-keys.d/rpool.key bs=32 count=1 | |
❯ zfs change-key -o keyformat=raw -o keylocation=file:///etc/zfs/initcpio-keys.d/rpool.key rpool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var typescriptConfig = require('./tsconfig.json'); | |
var typescript = require('typescript'); | |
var riot = require('riot'); | |
// Override typescript compiler | |
newTypescriptCompiler = function (js) { | |
return typescript.transpile(js, typescriptConfig); | |
}; | |
defaultReq = riot.parsers._req; | |
riot.parsers._req = (name) => { |