Skip to content

Instantly share code, notes, and snippets.

View kiwiheretic's full-sized avatar

kiwiheretic

  • Wanganui, New Zealand
View GitHub Profile
@kiwiheretic
kiwiheretic / GDP-per-hours-worked.ipynb
Created June 10, 2017 20:43
GDP per hours worked
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kiwiheretic
kiwiheretic / gamma.ipynb
Last active September 20, 2017 01:07
Calculate gamma or lorentz factor
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kiwiheretic
kiwiheretic / hyperbolae1.ipynb
Created September 24, 2017 19:44
Curve fitting hyperbolae
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kiwiheretic
kiwiheretic / gbackups.md
Last active January 27, 2018 01:19
How to install gBackups

Install on Ubuntu

$ git clone https://kiwiheretic@bitbucket.org/kiwiheretic/gbackups.git
$ sudo apt install -y virtualenv
$ sudo apt install -y python-pip
$ virtualenv ~/venvs/gbackups
$ source ~/venvs/gbackups/bin/activate
$ cd ~/gbackups/
$ pip install -r requirements.txt
@kiwiheretic
kiwiheretic / geodata.md
Created January 31, 2018 08:39
Geographical Data
@kiwiheretic
kiwiheretic / git.md
Created February 3, 2018 05:52
useful git commands

To add new repository to git

$ git init
$ git add <file>
$ git commit -m "Initial Commit"
$ git remote add origin <remote url>
$ git push --set-upstream origin master
@kiwiheretic
kiwiheretic / phpmyadmin.md
Last active February 5, 2018 00:53
Setting up phpmyadmin on Ubuntu

Most of these instructions taken from this website but I am using MySQL rather than MariaDB.

$ sudo apt install phpmyadmin

I elected to run db-common when asked but did not choose a webserver as nginx wasn't on list.

Then I added the following nginx conf script

@kiwiheretic
kiwiheretic / mosfet-vps.md
Last active February 11, 2018 02:48
MosFET VPS space

Tracking MosFET's RAM and Disk usage

MosFET's 4GB VPS before I messed with it...

splat@mosfetny:~$ free  
              total        used        free      shared  buff/cache   available  
Mem:        4046488      309720     1500324      106820     2236444     3315664  
Swap:             0           0           0