Skip to content

Instantly share code, notes, and snippets.

View daxxog's full-sized avatar

David Volm daxxog

View GitHub Profile
@daxxog
daxxog / install-utorrent.sh
Last active September 9, 2023 02:52
install utorrent
#!/bin/sh
#curl -L https://gist.github.com/daxxog/5793383/raw/install-utorrent.sh | sh
#download ssl lib
sudo apt-get -y install libssl0.9.8
#grab and install the upstart service config
wget https://gist.github.com/daxxog/5793395/raw/utserver.conf
sudo cp ./utserver.conf /etc/init/utserver.conf
rm utserver.conf
@daxxog
daxxog / hamachi-ubuntu.sh
Last active June 26, 2023 12:53
install hamachi on ubuntu 18.04
#!/bin/bash
#curl -L tinyurl.com/gothamachi | sh
cd ~/Downloads
wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.198-1_amd64.deb
sudo apt -y install ./logmein-hamachi_2.1.0.198-1_amd64.deb
sudo hamachi check-update
sudo hamachi login
echo now run ->>
echo sudo hamachi attach [email]
@daxxog
daxxog / lampp-install-32.sh
Last active December 18, 2022 01:27
LAMPP stack 32bit installer (lampp)
#!/bin/sh
#curl -L https://gist.github.com/daxxog/5877852/raw/lampp-install-32.sh | sh
#make a dev directory and switch to it
cd ~
mkdir dev
cd dev
#grab and install LAMPP
wget -N http://192.168.1.135/xampp-linux-1.8.2-0-installer.run
@daxxog
daxxog / long-div.py
Created December 11, 2019 16:24
Long division python script I made for my kid's math homework.
# long-div.py
# (c) 2019 David Volm (daXXog) <>< + + + ><>
# ___________________________________________
firstNumber=input('whats the first number? \n')
secondNumber=input('whats the second number? \n')
def floorDiv():
thinkFloor = str(int(secondNumber // firstNumber))
lenDiff = len(str(secondNumber)) - len(thinkFloor)
@daxxog
daxxog / vboxslitaz
Last active April 22, 2022 05:33
set up Virtualbox Guest Additions on slitaz
#!/bin/sh
# - set up Virtualbox Guest Additions on slitaz
# - make sure Guest Additions CD is inserted and mounted!
# - WARNING!! WILL REBOOT SYSTEM WHEN FINISHED!!
# wget -O - http://tinyurl.com/vboxslitaz | sh
# Download the script body
cd /tmp
wget --no-cache https://gist.githubusercontent.com/daxxog/b1a4780694e2cf9751f1c90ec6f58299/raw/.vboxslitaz-sh
# typescript code generator for my cringe university assignments
_example_input = \
"""class Product {
code: string;
name: string;
category: string;
price: number;
}
"""
@daxxog
daxxog / ls-colors-linux
Created January 17, 2022 22:31
my LS_COLORS for linux
export LS_COLORS='di=36:ln=34:so=35:pi=1;32;47:ex=32:bd=1;30;47:cd=1;31;47:su=30;41:sg=1;30;45:tw=1;30;46:ow=1;31'
@daxxog
daxxog / substitution-cipher.py
Created November 17, 2021 15:53
If you use this in production you are stupid.
from functools import cache
from typing import List, Tuple
from string import ascii_uppercase
def generate_sub(start: str = 'Z') -> Tuple[str]:
_l: List[str] = list(ascii_uppercase)
start_index: int = _l.index(start)
_o_list: List[str] = list(_l)
@daxxog
daxxog / genpass-fips.py
Created July 8, 2021 14:44
Generate a FIPS Compliant secure password
#!/usr/bin/env python3
from string import (
ascii_lowercase,
ascii_uppercase,
digits,
punctuation
)
from secrets import choice
@daxxog
daxxog / mac-ls-colors.zshrc
Created May 22, 2021 12:31
ls colors on mac
# ls colors on mac
export CLICOLOR=1
export LSCOLORS=gxexfxChcxAhBhabAfAgBx