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
#!/bin/sh | |
exec tail -n +3 $0 | |
# This file provides an easy way to add custom menu entries. Simply type the | |
# menu entries you want to add after this comment. Be careful not to change | |
# the 'exec tail' line above. | |
menuentry 'Start Fedora-Workstation-Live 32' --class fedora --class gnu-linux --class gnu --class os { | |
set isofile="/iso/Fedora-Workstation-Live-x86_64-32-1.6.iso" | |
set isolabel="Fedora-WS-Live-32-1-6" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Column N | |
c() { awk "{print \$$1}"; } | |
# find | |
alias f="find . -name " | |
# Editor | |
alias e="code" | |
alias e-="code -" | |
e.() { cat | sed -n "${1}p" | ( read file; e $file; ); } |
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
def dim(value): | |
return "dim value" |
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/env python | |
import encodings | |
import sys | |
from urlparse import urlparse | |
import os | |
import subprocess | |
import configparser | |
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
# info https://kb.vmware.com/s/article/2146460 | |
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/" | |
/usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon) | |
/usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet) | |
mokutil --import MOK.der |
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
#!/bin/sh | |
set -ex | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin | |
KEYMAP="us us" | |
HOST=alpine | |
USER=anon | |
ROOT_FS=ext4 | |
BOOT_FS=ext4 |
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
bc56c00f5c1e70f4968a35f80790c03a0bce8572 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<service> | |
<short>chromecast-ssdp</short> | |
<port protocol="udp" port="1900"/> | |
<destination ipv4="239.255.255.250/32"/> | |
</service> |
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
#!/bin/sh | |
main(){ | |
NCARD=0 | |
PREFIX=phoenix | |
rm -f /etc/udev/rules.d/99-usb-serial.rules | |
for n in /dev/ttyUSB*; do | |
let NCARD++ | |
UDEV_SERIAL=`udevadm info -a -p $(udevadm info -q path -n ${n}) | grep -B 12 'FT232R USB UART' | grep 'ATTRS{serial}'` | |
cat >> /etc/udev/rules.d/99-usb-serial.rules <<EOT |