Skip to content

Instantly share code, notes, and snippets.

@5car1z
5car1z / main.yml
Last active August 2, 2017 19:54
YAML Server Provision Example (Standard YAML) (2).
---
provisioned_users:
-
name: user-one
encrypted_password: $1$@YMgS-5Y$2lH.vkVmawJ810djjkGp70
public_keys:
- /home/$USER/.ssh/id_rsa.pub
sudo: true
adm: true
-
[ 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
@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
@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 |
#!/bin/sh
#
# Author: Marin Atanasov Nikolov <dnaeon@gmail.com>
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# X-Start-Before:
# Default-Start: 2 3 4 5
@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 / 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 / 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 / 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/
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.