Skip to content

Instantly share code, notes, and snippets.

View ofus's full-sized avatar

Andrew L. Joseph ofus

View GitHub Profile
@ofus
ofus / keybase.md
Created November 2, 2016 16:09
keybase.md

Keybase proof

I hereby claim:

  • I am ofus on github.
  • I am ofus (https://keybase.io/ofus) on keybase.
  • I have a public key whose fingerprint is 31AC FA09 898B 8253 83B4 E67C F186 0DFB A6F7 DAC0

To claim this, I am signing this object:

@ofus
ofus / jenkins.example.com.conf
Created October 12, 2016 18:18
Jenkins Apache config for HTTPS
<VirtualHost *:80>
ServerName jenkins.example.com
ServerAdmin webmaster@example.com
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>

Keybase proof

I hereby claim:

  • I am ofus on github.
  • I am ofus (https://keybase.io/ofus) on keybase.
  • I have a public key whose fingerprint is 4DC2 DF4E 4E8A 2111 536B 81B4 A9BB D1BF 862A 09D1

To claim this, I am signing this object:

@ofus
ofus / simple.bashrc
Last active March 28, 2017 23:27
A simple bashrc
# ANSI color codes
RS="\[\033[0m\]" # reset
HC="\[\033[1m\]" # hicolor
UL="\[\033[4m\]" # underline
INV="\[\033[7m\]" # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
FBLE="\[\033[34m\]" # foreground blue
@ofus
ofus / keybase.md
Created May 5, 2015 17:04
keybase.md

Keybase proof

I hereby claim:

  • I am ofus on github.
  • I am ofus (https://keybase.io/ofus) on keybase.
  • I have a public key whose fingerprint is 4DC2 DF4E 4E8A 2111 536B 81B4 A9BB D1BF 862A 09D1

To claim this, I am signing this object:

@ofus
ofus / tmux.conf
Created August 7, 2014 06:03 — forked from shinzui/tmux.conf
# ~/.tmux.conf
#
# See the following files:
#
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
#
# URLs to read:
#

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

@ofus
ofus / gist:6028366
Last active December 19, 2015 22:38
<?php
$dbh = new PDO("mysql:host=localhost;dbname=muratore", "root", "");
$sql = "SELECT count(*) FROM medrithms WHERE username=:username AND contrasena=:contrasena";
$stmt = $dbh->prepare($sql);
$stmt->execute(Array(':username' => $_POST['username'], ':contrasena' => $_POST['contrasena']));
$authenticated = $stmt->fetch(PDO::FETCH_COLUMN);
if ($authenticated) {
# Send SMS messages using Raspberry Pi.
# Using gammu and Huawei E220
# Prepare SD card with wheezy.
# Login / complete rasp-config / reboot / login
# Set vimrc to prevent annoying ADBC arrow keys
cp /etc/vim/vimrc ~/.vimrc
pear uninstall -n phpunit/PHPUnit
pear uninstall -n phpunit/DbUnit
pear uninstall -n phpunit/PHP_CodeCoverage
pear uninstall -n phpunit/File_Iterator
pear uninstall -n phpunit/Text_Template
pear uninstall -n phpunit/PHP_Timer
pear uninstall -n phpunit/PHPUnit_MockObject
pear uninstall -n phpunit/PHPUnit_Selenium
pear uninstall -n pear.symfony-project.com/YAML
pear uninstall -n phpunit/PHP_TokenStream