Skip to content

Instantly share code, notes, and snippets.

w1k1n9cc /
Created Aug 10, 2018 — forked from xahare/
Vagrant on Qubes-OS

Vagrant on Qubes-OS

(Vagrant)[] "Development Environments Made Easy"

(Qubes-OS)[] "A Reasonably Secure Operating System."

This is a guide on to using vagrant on qubes-os with qemu using the libvirt provider. Because qubes-os does not support nested virtualization, you'r stuck with emulation. If you want performance, use a system with a proper vagrant setup.

Template Setup

w1k1n9cc / qvm-portfwd-socat
Created May 31, 2018 — forked from Joeviocoe/qvm-portfwd-socat
Qubes-OS socket connection to allow external connections
View qvm-portfwd-socat
wasrunning=$(qvm-ls | grep $TargetVM | grep -i RUNNING)
echo -ne "TCP socket connection for $Service from $NetVM to $TargetVM on port $TCP_Port...\nPress Any Key to End\n\n"
trap cleanup 1 2 3 6 15
w1k1n9cc / qvm-portfwd-iptables
Created May 31, 2018 — forked from Joeviocoe/qvm-portfwd-iptables
Qubes-os port forwarding to allow external connections
View qvm-portfwd-iptables
# Inspired by
# Inspired by
ip() { qvm-prefs -g -- "$1" ip; }
netvm() { qvm-prefs -g -- "$1" netvm; }
forward() {
local from_domain=$1
local to_domain=$2
w1k1n9cc /
Created Aug 24, 2017 — forked from mjdietzx/
Install CUDA Toolkit v8.0 and cuDNN v6.0 on Ubuntu 16.04
# install CUDA Toolkit v8.0
# instructions from (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network))
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-get update
sudo apt-get -y install cuda


  • C-a == Ctrl-a
  • M-a == Alt-a


:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
w1k1n9cc /
Created Apr 13, 2017 — forked from securitytube/
WLAN SSID Sniffer in Python using Scapy
#!/usr/bin/env python
from scapy.all import *
ap_list = []
def PacketHandler(pkt) :
if pkt.haslayer(Dot11) :
if pkt.type == 0 and pkt.subtype == 8 :
w1k1n9cc /
Created Jan 22, 2017 — forked from cardil/
Linux NVidia Optimus with external monitor - enable/disable scripts tested on Ubuntu. Source article:
# You will need latest NVIDIA drivers installed. At the time of writing, version is 331.20.
# On ubuntu 13.10, it looks like this:
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-331
# Now we need to install bumblebee:
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get install bumblebee bumblebee-nvidia bbswitch-dkms
w1k1n9cc / check-use
Created Aug 15, 2016 — forked from garymacindoe/check-use
Checks for invalid/obsolete entries in Gentoo Portage's package.use files
View check-use
# Author: Gary Macindoe
# Date: May 2013
if [ -d "${files}" ]
w1k1n9cc / microtime.c
Created Jun 7, 2016
Get the current time in microseconds in C.
View microtime.c
#include <sys/time.h>
* Returns the current time in microseconds.
long getMicrotime(){
struct timeval currentTime;
gettimeofday(&currentTime, NULL);
return currentTime.tv_sec * (int)1e6 + currentTime.tv_usec;
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname