Skip to content

Instantly share code, notes, and snippets.

View and3rsonls's full-sized avatar

anderson ls and3rsonls

View GitHub Profile
@and3rsonls
and3rsonls / torrc.examples.txt
Created February 18, 2023 16:35 — forked from 0x9090/torrc.examples.txt
torrc examples
This file is part of Whonix
Copyright (C) 2012 - 2014 Patrick Schleizer <[email protected]>
See the file COPYING for copying conditions.
**** Do NOT edit this file! ****
This file will show you examples you can copy and paste to /etc/tor/torrc
Additionally, you can read the official Tor Manual at:
https://www.torproject.org/docs/tor-manual.html.en
@and3rsonls
and3rsonls / torrc
Created February 17, 2023 21:15 — forked from arkadiyt/torrc
## Configuration file for a typical Tor user
## Last updated 28 February 2019 for Tor 0.3.5.1-alpha.
## (may or may not work for much older or much newer versions of Tor.)
##
## Lines that begin with "## " try to explain what's going on. Lines
## that begin with just "#" are disabled commands: you can enable them
## by removing the "#" symbol.
##
## See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
## for more options you can use in this file.
@and3rsonls
and3rsonls / install_crux.sh
Created December 15, 2022 19:19 — forked from linushsao/install_crux.sh
CRUX linux installation commands
# wget 'https://mirrors.slackware.com/slackware/slackware64-current/kernels/huge.s/bzImage'
# # find / -name 'snd-hwdep.ko' 2>/dev/null
# /usr/src/linux-4.14.40/sound/core/snd-hwdep.ko
# /lib/modules/4.14.40/kernel/sound/core/snd-hwdep.ko
@and3rsonls
and3rsonls / bash-pid.md
Created May 12, 2022 14:35 — forked from darth-veitcher/bash-pid.md
Bash Script PID file locking

Pattern below allows for a bash script to be called via, say, cron and check to see if it is already running.

Useful for things like rsync tasks.

PIDFILE=/var/run/myscriptname.pid

if [ -f $PIDFILE ]
then
 PID=$(cat $PIDFILE)
@and3rsonls
and3rsonls / tmux.conf
Created April 10, 2022 23:48 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@and3rsonls
and3rsonls / readme.md
Created January 22, 2022 22:18 — forked from meramsey/readme.md
Send mails from systemd services
@and3rsonls
and3rsonls / snake.py
Created December 17, 2021 22:10 — forked from sanchitgangwar/snake.py
Snakes Game using Python
# SNAKES GAME
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import curses
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
from random import randint
curses.initscr()
win = curses.newwin(20, 60, 0, 0)
@and3rsonls
and3rsonls / config.py
Created September 10, 2021 22:17 — forked from asedmammad/config.py
My current qtile config
# -*- coding: utf-8 -*-
import distutils.spawn
import os
import re
import socket
import subprocess
import xcffib.xproto
from libqtile import layout, bar, widget, hook
from libqtile.command import lazy
@and3rsonls
and3rsonls / qtileconfig.py
Created August 27, 2021 06:57 — forked from neumond/qtileconfig.py
My qtile config
import pickle
import weakref
from contextlib import contextmanager, suppress
from datetime import datetime
from itertools import islice
from logging import getLogger
from pathlib import Path
from libqtile import bar, hook, layout, widget
from libqtile.command import lazy
@and3rsonls
and3rsonls / docker-nftables.conf
Created July 15, 2021 00:12 — forked from dearing/docker-nftables.conf
nftables with docker
# /etc/systemd/system/docker.service.d/docker-nftables.conf
# disable iptables in docker, allowing nftables to do work
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// --iptables=false