Skip to content

Instantly share code, notes, and snippets.

View Nezteb's full-sized avatar
💣
hello world'); DROP TABLE Statuses;--

Noah Betzen Nezteb

💣
hello world'); DROP TABLE Statuses;--
View GitHub Profile
#!/bin/bash
# Noah Betzen
# CentOS 7.1 Minimal Image
# DjangoCMS 3.2.0 Install Steps
# CONFIRMED WORKING AS OF 2-24-16
# Server address for nginx
serverAddress=`/sbin/ifconfig -a | awk '/(cast)/ { print $2 }' | cut -d':' -f2 | head -1` # Fancy stuff to get IP only
#!/bin/bash
# Noah Betzen
# CentOS 7.1 Minimal Image
# GravCMS 1.0.10 Install Steps
# CONFIRMED WORKING 2-29-16
# Path variables you should set
serverFilesPath=/var/www/html
@Nezteb
Nezteb / Wordpress_Install.sh
Last active July 4, 2016 20:31
Script to setup Wordpress on Ubuntu 14.04 with nginx.
#!/bin/bash
# Noah Betzen
# Ubuntu 14.04 WordPress Install Steps
# You should run this first: https://gist.github.com/Nezteb/1e0ccd82cc843b9c76e3b2bb929605eb
#################### VARIABLES TO CHANGE
read -p "Server domain name: " serverAddress # prompt server address for nginx
read -p "Your email address: " emailAddress # prompt email address for postfix
serverFilesPath=/var/www/html # web root location
mysqlUsername=mysql # mysql credentials
@Nezteb
Nezteb / convert_m4a_to_mp3.sh
Created March 19, 2017 00:40
Convert m4a files to mp3 files. Requires ffmpeg.
#!/bin/bash
// cd into a directory with m4a files
for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 "${f%.m4a}.mp3"; done
@Nezteb
Nezteb / .bash_profile
Last active July 10, 2018 17:58
Simple Github account management
# This is specific to Github, but could apply to any git provider
# To start, you'll have to set up two sets of git SSH keys.
# Assuming you have your personal account set up by default:
# * ~/.ssh/id_rsa (your personal ssh private key)
# * ~/.ssh/id_rsa.pub (your personal ssh public key)
# * ~/.ssh/backup/work (your work ssh private key)
# * ~/.ssh/backup/work.pub (your work ssh public key)
@Nezteb
Nezteb / replace_text_pdf.sh
Created June 23, 2020 17:01
Replace text in a PDF
#!/bin/bash
PDF_FILE=$1
TITLE="${PDF_FILE%.*}"
TEMP1="${TITLE}_q.pdf"
TEMP2="${TITLE}_qr1.pdf"
TEMP3="${TITLE}_qr2.pdf"
TEMP4="${TITLE}_qr3.pdf"
@Nezteb
Nezteb / setup-python-on-mac.sh
Last active July 23, 2020 04:48
Some tips on installing Python on Mac... (this is very messy for now)
# First verify you have Homebrew: https://brew.sh/
# Put this line in your ~/.bash_profile, this will make sure your Homebrew binaries are used first
export PATH="/usr/local/bin":"/usr/local/sbin":"$PATH"
########## ON A FRESH INSTALL ##########
# Verify the output here does not contain anything related to Python
echo $PATH
# If it does contain Python stuff, figure out where that is coming from (probably ~/.bash_profile) and remove it