Skip to content

Instantly share code, notes, and snippets.

@5car1z
5car1z / do-debian8-locale-issues.md
Last active July 23, 2024 11:12
Debian 8 DO Locale Issues Fix

Debian 8 DO Locale Issues Fix

Problem

"Locale problems" in both the 32-bit & 64-bit versions of Debian 8 droplets

Create a new Debian 8 droplet and login as root:

@5car1z
5car1z / cvim-chrome-settings
Last active August 29, 2015 14:20
Settings to sync with CVim Chrome browser extension.
" Settings
set nohud
set smoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
@5car1z
5car1z / bash-git-aliases
Last active June 30, 2019 16:29
Git Aliases -- 13/10/2015
# Git Aliases (sorted alphabetically with some inculsive functions)
# Adapted from oh-my-zsh git alias plugin. "compdef" is a Z shell autocompletion function, disabled throughout where applicable.
alias g='git'
alias ga='git add'
alias gaa='git add --all'
alias gapa='git add --patch'
alias gb='git branch'
@5car1z
5car1z / credentials_template.py
Last active January 21, 2016 16:29
Template file that should be imported into settings.py for Django projects.
[user/machine specific settings]
# Make a copy of this file and name the new file credentials.py then fill in the various values in the new file.
# Never track or commit the new "credentials.py" file, it should be set as ignored in your .gitignore.
SECRET_KEY = ''
DEBUG =
@5car1z
5car1z / zsh-nitrous-test-script.sh
Last active November 5, 2015 20:04
Shell script for creating place-holder files in Nitrous zsh tutorial.
#!/bin/zsh
mkdir -p zsh_nitrous_test/{project_one,project_two}/html/{main,public}/ zsh_nitrous_test/{project_one,project_two}/css/{style,min}/ zsh_nitrous_test/{project_one,project_two}/js/{lib,test}/
# create dummy files inside the html directories
for directory in zsh_nitrous_test/*/html/*; do
dd if=/dev/zero of="${directory}/homepage.html" bs=1024 count=1
dd if=/dev/zero of="${directory}/about.html" bs=2048 count=1
dd if=/dev/zero of="${directory}/contact.html" bs=4096 count=1
done
Package: sense
Section: interpreters
Priority: optional
Architecture: i386
Depends: libasound2, libc6, libcurl3, libpulse0, libssh2-1, pulseaudio
Maintainer: Ian Cameron <[email protected]>
Homepage: http://sense.open.ac.uk/
Description: The Sense software package for your TU100 module, presented by
The Open University.
@5car1z
5car1z / Django Project .gitignore
Created January 21, 2016 16:57
Lengthy extensive .gitignore for Django / Python projects.
# Django Recommended
*.egg-info
*.pot
*.py[co]
__pycache__
MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
@5car1z
5car1z / nitrous-dead-simple-brunch-config.js
Created April 15, 2016 16:01
Configuration file for the "dead-simple" Brunch project on Nitrous - contains needed server settings.
module.exports = {
files: {
javascripts: {joinTo: 'app.js'},
stylesheets: {joinTo: 'app.css'},
},
server: {
hostname: '0.0.0.0',
port: '3000'
}
@5car1z
5car1z / deploy-site-github.sh
Last active June 12, 2016 16:09
Very simple Hexo GitHub pages deploy script. Here in case I forget the commands themselves mostly...
#!/bin/sh
hexo clean
hexo generate
hexo deploy
@5car1z
5car1z / README.md
Last active September 1, 2016 10:15
README instructions for Postcode Java Program.

HOW TO USE postCode.jar

  1. Run jar file through command terminal.

  2. User should be prompted by 6 option menu.

  3. Follow instuctions for adding data.

  4. Exporting should produce 2-3 files depending on users choices.