Skip to content

Instantly share code, notes, and snippets.

View blacksun1's full-sized avatar

Simon Bruce blacksun1

  • Adelaide, Australia
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
background-color: teal;
}
@blacksun1
blacksun1 / all
Created July 29, 2017 06:43
FollowMyUmbrella-Api-Output-Mock
[
{
"_id": "597bf395aadc972d71f0657c",
"title": "Fountain - Brookman Building",
"description": "This fountain is outside the University of SA Brookman Building.\n",
"url": "http://sahistoryhub.com.au/node/3768",
"location": {
"type": "Point",
"coordinates": [
138.607283,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
dialog {
border: 1px solid rgba(0, 0, 0, 0.3);
border-radius: 6px;
 ____ __ __ ____
/ \\| | \\_/ ___\\
| | \\ | /\\ \\___
|___| /____/ \\___ >
\\/ \\/
Ubuntu 16.04.2 LTS \n \l
@blacksun1
blacksun1 / .zshrc
Last active July 2, 2018 10:08
.zshrc
# Path to your oh-my-zsh installation.
export ZSH=/Users/bruces/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# ZSH_THEME="ys"
ZSH_THEME="materialshelldark"
# ZSH_THEME="random"
@blacksun1
blacksun1 / README.md
Last active June 21, 2017 04:50
psql cheatsheet

psql cheatsheet

list databases

\list

Connect to a database

@blacksun1
blacksun1 / rejected.json
Last active January 29, 2020 04:14
Webhooks
{
"code": "REJECTED",
"rejectionMessage": "Webhook rejection message to be displayed to visitor"
}
#!/bin/zsh
# NVM
export NVM_DIR="/home/simon/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# CDGIT!
function cdgit() {

Raspberry pi changes

Rotate screen (and touchscreen)

Append to /boot/config.txt

lcd_rotate=2
# WELCOME TO SQUID 3.5.12
# ----------------------------
#
# This is the documentation for the Squid configuration file.
# This documentation can also be found online at:
# http://www.squid-cache.org/Doc/config/
#
# You may wish to look at the Squid home page and wiki for the
# FAQ and other documentation:
# http://www.squid-cache.org/