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 / 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  
@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 / misc-bash.md
Last active March 22, 2018 21:34
Miscellaneous bash commands

Check Ubuntu version

$ lsb_release -a

See all files installed by an apt-get package

$ dpkg-query -L phpmyadmin
@kiwiheretic
kiwiheretic / .vimrc
Last active April 1, 2018 23:41
Vim commands for .vimrc
" On windows this file is _vimrc in %HOME% directory
colorscheme desert
" These following are needed for python
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set foldmethod=indent
@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