Skip to content

Instantly share code, notes, and snippets.

@ghoulmann
ghoulmann / aws.txt
Created July 12, 2023 12:48
AWS Proper Nouns
AWS
Amazon
EC2
S3
RDS
DynamoDB
Redshift
Lambda
Sagemaker
Athena
@ghoulmann
ghoulmann / sed-replace-markdown-links
Created June 24, 2022 11:35 — forked from mdonkers/sed-replace-markdown-links
sed command to replace Markdown style links with HTML links, opening in separate tab
#!/bin/bash
# enable mod_ext_filter
a2enmod ext_filter
# create temp config file
cat <<EOF > /tmp/haml_sass
# For HAML & SASS (http://d.hatena.ne.jp/ursm/20080923/1222195693)
LoadModule ext_filter_module libexec/apache2/mod_ext_filter.so
@ghoulmann
ghoulmann / SteamOS_VB.sh
Created December 18, 2013 23:06
Downloads SteamOS.zip, creates ISO, installs virtualbox 4.2 & dkms, and creates virtual machine for user with boot ISO attached and EFI enabled. Requires: Ubuntu, internet, sudo access...
#!/bin/bash -e
#Set up customizeable variables
VM='SteamOS' #the name of the vm
TRASH="/tmp" #where to dump the zip and decompressed folder
ISO="steamos-1.0-uefi-amd64.iso" #what to call the iso
PUT="/tmp" #where to put the iso
VDI=$(pwd) #where to put the virtual drive
@ghoulmann
ghoulmann / rpi-ghost.sh
Created November 15, 2013 20:03
Ghost Blogging Platform install for Raspberry Pi
#!/bin/bash -ex
#Config Vars
NODE_URL="http://node-arm.herokuapp.com/node_latest_armhf.deb"
NODE_TARGET="/tmp/"
GHOST_URL="https://github.com/TryGhost/Ghost.git"
GHOST_DIR="/opt/ghost"
HOSTNAME=ghost
#Check for root
@ghoulmann
ghoulmann / despotify-help.sh
Created April 11, 2013 15:13
Scripted installation of despotify on Raspberry Pi running Raspbian. Confirmed to work on Ubuntu Precise.
#!/bin/bash -ex
#use bash, be verbose
HOSTNAME=despotify
SVN_TARGET="/tmp/spotify"
#Check for Root
function check_for_root ()
{
LUID=$(id -u)
@ghoulmann
ghoulmann / qrify.sh
Created March 14, 2013 13:26
Mass QR-code generation using qrencode
#!/bin/bash
#To do: configure install for $1
#To do: move script to acceptable path
#To do: generate conf in /etc for variables
#To do: SOLVE: last line must be \n or blank. We got something wrong.
list="./url-list.txt" #variable called list is a file in the current directory
URLS=$(cat $list) #creates var called URLS from file
i=0 #new variable to iterete and increment
#loop
printf %s "$URLS" | while IFS= read -r line
@ghoulmann
ghoulmann / stegify.sh
Created March 13, 2013 23:29
Creating steganographied files en masse - still needs works (see comments)
#!/bin/bash
# until tomorrow ./stegged must exist &
# ./cover must exist & have images &
# ./hide must exist and have images
#TO DO: argument for verbose output
#TO DO: make hide/ and /cover variables that can be configured
#TO DO: license and README.md
#install argument to:
#apt-get update && apt-get install steghide
#move script to /usr/bin
@ghoulmann
ghoulmann / Raspi-Haste-Server.sh
Created November 1, 2012 21:37
Haste-Server Install Script for Raspian
#!/bin/bash -ex
#Check for root
LUID=$(id -u)
if [[ $LUID -ne 0 ]]; then
echo "$0 must be run as root"
exit 1
fi