Skip to content

Instantly share code, notes, and snippets.

@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 / 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 <I.A.Cameron@open.ac.uk>
Homepage: http://sense.open.ac.uk/
Description: The Sense software package for your TU100 module, presented by
The Open University.
@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 / 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.

@5car1z
5car1z / localhost-to-droplet.txt
Last active May 9, 2017 19:39
09-05-17 20:10 (London Time - UTC+01:00) - localhost to droplet
|------------------------------------------------------------------------------------------|
| WinMTR statistics |
| Host - % | Sent | Recv | Best | Avrg | Wrst | Last |
|------------------------------------------------|------|------|------|------|------|------|
| 192.168.1.1 - 0 | 88 | 88 | 2 | 4 | 15 | 6 |
| host-92-14-96-1.as43234.net - 0 | 88 | 88 | 23 | 25 | 40 | 25 |
| host-78-151-225-117.static.as13285.net - 0 | 88 | 88 | 24 | 26 | 35 | 25 |
| host-78-151-229-28.as13285.net - 0 | 88 | 88 | 23 | 28 | 127 | 26 |
| host-78-144-8-178.as13285.net - 0 | 88 | 88 | 24 | 26 | 45 | 26 |
| host-78-144-9-35.as13285.net - 4 | 76 | 73 | 0 | 33 | 52 | 34 |
@5car1z
5car1z / droplet-to-localhost.txt
Last active May 9, 2017 19:40
09-05-17 20:14 (London Time - UTC+01:00) - droplet to localhost
Start: Tue May 9 20:14:38 2017
HOST: loy Loss% Snt Last Avg Best Wrst StDev
1.|-- 37.139.24.254 0.0% 10 4.1 1.4 0.4 4.6 1.5
2.|-- 138.197.250.28 0.0% 10 0.6 3.1 0.3 24.7 7.6
3.|-- 138.197.250.8 0.0% 10 0.8 2.0 0.4 12.7 3.7
4.|-- ae1-scr010.ams.as13285.net 0.0% 10 0.5 0.7 0.4 2.1 0.3
5.|-- host-78-144-11-164.as13285.net 0.0% 10 6.0 6.9 6.0 11.2 1.5
6.|-- host-78-144-9-38.as13285.net 0.0% 10 11.4 15.1 11.3 46.8 11.1
7.|-- host-78-151-229-205.as13285.net 0.0% 10 12.3 12.0 11.7 13.2 0.0
8.|-- host-62-24-215-129.as13285.net 0.0% 10 13.4 13.6 13.3 14.3 0.0
[ 3360.470]
X.Org X Server 1.19.3
Release Date: 2017-03-15
[ 3360.471] X Protocol Version 11, Revision 0
[ 3360.472] Build Operating System: Linux 4.9.11-1-ARCH x86_64
[ 3360.474] Current Operating System: Linux archlinux-corsair 4.8.11-1-ARCH #1 SMP PREEMPT Sun Nov 27 09:26:14 CET 2016 x86_64
[ 3360.474] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=6a6fe4ff-07eb-434a-aadf-8a8f82a11976 rw quiet
[ 3360.476] Build Date: 07 April 2017 05:42:48PM
[ 3360.477]
[ 3360.510] Current version of pixman: 0.34.0