https://gist.github.com/artizirk/28aa4c28b252bd679a4daf84d919a175
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/bash | |
# Stop crashplan temporarily | |
/etc/init.d/crashplan stop | |
# Unmount the datasnapshot | |
umount /mnt/datasnapshot | |
# Destroy snapshot and recreate it | |
lvremove -f /dev/example-vg/datasnapshot |
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
### Keybase proof | |
I hereby claim: | |
* I am tachang on github. | |
* I am tachang (https://keybase.io/tachang) on keybase. | |
* I have a public key whose fingerprint is 1C43 0026 4CF6 D6D5 BEFF F03B DC2A 8174 F1BB CD35 | |
To claim this, I am signing this object: |
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
May need to give world read/write permissions to Arduino device: | |
chmod o+rw /dev/ttyUSB0 | |
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
/** | |
* CSS conic-gradient() polyfill | |
* By Lea Verou — http://lea.verou.me | |
* MIT license | |
*/ | |
var cg; | |
(function(){ |
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
wget https://nodejs.org/dist/v6.10.0/node-v6.10.0-linux-x64.tar.xz | |
tar xvfJ node-v6.10.0-linux-x64.tar.xz | |
echo 'export PATH=$HOME/node-v6.10.0-linux-x64/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
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
class ControlledInputWithInternalState extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
isValid : true, | |
value : props.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
#!/bin/bash | |
# This script looks for a database container and reloads the database | |
# inside the container | |
DB_CONTAINER_ID=`docker ps --filter="ancestor=postgres:9.6" -q` | |
read -p "Enter Amazon Access Key: " AMAZON_ACCESS_KEY | |
read -p "Enter Amazon Secret Key: " AMAZON_SECRET_KEY |
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 smtpd | |
import asyncore | |
class CustomSMTPServer(smtpd.SMTPServer, object): | |
def process_message(self, peer, mailfrom, rcpttos, data): | |
print 'Receiving message from:', peer | |
print 'Message addressed from:', mailfrom | |
print 'Message addressed to :', rcpttos | |
print 'Message length :', len(data) |
I am having issues getting my Intel 520 integrated graphics card passing through on qemu. I am using Proxmox Virtual Environment 6.2-4.
I am getting some type of fault code when starting up a virtual machine:
qemu-system-x86_64 -machine q35 -m 2G -accel kvm -cpu host \
-device vfio-pci,host=00:02.0 -nographic -vga none \
-cdrom /var/lib/vz/template/iso/Win10_2004_English_x64.iso