Skip to content

Instantly share code, notes, and snippets.

View insanity54's full-sized avatar

Chris insanity54

  • 01:31 (UTC -07:00)
View GitHub Profile
@insanity54
insanity54 / output.txt
Last active July 4, 2017 02:58
ascii-truncator.py
, ,_
|`\ `;;, ,;;'
| `\ \ '. .'.'
| `\ \ '-""""-' /
`. `\ / |`
`> /; _ _ \
/ / | . ;
< (`";\ () ~~~ (/_
';;\ `, __ _.-'` )
>;\ ` _.'
@insanity54
insanity54 / matrixBounce.sh
Created June 14, 2017 20:09
A Bash script which bounches a terminal (`cmatrix -bau5`) around the screen for screensaver purposes.
#!/bin/bash
##
## CONFIGURATION (Edit at will)
##
screenw=1280
screenh=1024
speed=2 # the amount of pixels to move the window by
debug=0 # level 0-2
@insanity54
insanity54 / deploy.txt
Last active May 23, 2017 00:29
Windows Package Deploy
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst powershell
cinst notepadplusplus
cinst 7zip
cinst chocolatey
cinst firefox
cinst vlc
cinst malwarebytes
#!/bin/bash
# automatically log into Thruk
# useful for wall mounted monitors
# midori is a low resources browser suitable for raspberryPi
pkill midori
midori http://example.com/thruk/#cgi-bin/tac.cgi &
sleep 5
wmctrl -i -r 0x2c00004 -b add,maximized_vert
@insanity54
insanity54 / fortuneteller.sh
Last active December 31, 2016 22:21
Fortune generator
#!/bin/bash
# Have a character tell you a fortune every n minutes
# Dependencies:
# - sed
# - shuf
# - sleep
# - fortune
# - cowsay
@insanity54
insanity54 / jiggle-gui.sh
Last active October 14, 2016 22:12
Jiggle/shake/move the mouse cursor to inhibit screensaver
#!/bin/bash
# GUI version. Could be really useful for Partedmagic. Work-in-progress.
export MAIN_DIALOG='
<window title="Mouse Jiggler">
<vbox>
<text>
<label>Jiggle the mouse to prevent the display from sleeping</label>
</text>
@insanity54
insanity54 / dbanlz.sh
Last active September 4, 2020 12:00
Erase a disk using dd - An alternative to DBAN
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
warn='!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
echo -e "$warn\n$warn\n$warn"
echo " WARNING"
@insanity54
insanity54 / install.sh
Last active May 8, 2016 00:03
OpenBazaar on Ubuntu 14.04
#!/bin/bash
locale="en_US.UTF-8"
sudo locale-gen "$locale"
sudo dpkg-reconfigure locales
sudo apt-get update && sudo apt-get -y upgrade
audo apt-get -y install software-properties-common
sudo apt-get -y install git
sudo apt-get -y install build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev
@insanity54
insanity54 / part_1.md
Last active June 10, 2016 11:25
Installing OpenBazaar on Ubuntu 14.04 VPS
@insanity54
insanity54 / openbazaar.conf
Last active April 21, 2016 23:58
OpenBazaar upstart script
# Startup script for OpenBazaar Server that will auto-restart if crashed
# Copy this script to /etc/init folder
# "chmod 644 openbazaar.conf"
# Change "chdir", "setuid" and "setgid" according to your system
# Usage: "sudo service openbazaar start"
description "OpenBazaar Server"
start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]