Skip to content

Instantly share code, notes, and snippets.

View oxygen's full-sized avatar

oxygen oxygen

  • Bigstep
  • Bucharest
View GitHub Profile
.\chia plots create -k 32 -n 1 -b 4608 -f 937002e26001ae222a7a0a7faf974cd5e348c3d565a0b2c55509811d62c599a5aa30fbcda52fb1e43bed773e622d60b8 -p 907d4027b050ffa1d0e7029393a9b375e3d5cb9eccf9c5b1a84ddb9124e4fe44e189fd78925a58a5c128fcda508adc1f -t C:\Chia\Temp -d C:\Chia -r 4
sshfs oxyge@192.168.1.2:/X:/Backups /Backups
dd if=/dev/sda bs=16M status=progress | xz -2 --block-size=16MiB > /Backups/dev-sda.xz
mkdir /xxx
mount -t cifs -o username=oxyge //192.168.1.2/Backups /xxx
xz -d < /xxx/dev-sda.xz - | dd of=/dev/sda bs=16M status=progress
@oxygen
oxygen / wireshark-grant-non-root-ubuntu.sh
Created March 20, 2019 00:31
Wireshark non-root permissions Ubuntu
sudo apt-get install wireshark libcap2-bin
sudo groupadd wireshark
sudo usermod -a -G wireshark $USER
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 755 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
@oxygen
oxygen / WebRTCExample.js
Created May 22, 2017 18:02
WebRTC short localhost example
function makePeerConnection()
{
var myPeerConnection = new RTCPeerConnection(
{
iceServers: [
/*{
urls: "turn:192.168.137.3:3478",
username: "guest",
credential: "*********"
}*/