Skip to content

Instantly share code, notes, and snippets.

View nixsiow's full-sized avatar

Nix Siow nixsiow

View GitHub Profile
@nixsiow
nixsiow / miniconda_on_rpi.md
Created March 24, 2020 06:37 — forked from simoncos/miniconda_on_rpi.md
Install Miniconda 3 on Raspberry Pi
@nixsiow
nixsiow / Genomics_A_Programmers_Guide.md
Created May 18, 2019 08:04 — forked from andy-thomason/Genomics_A_Programmers_Guide.md
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@nixsiow
nixsiow / README.md
Created April 22, 2018 14:24 — forked from MoOx/README.md
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
title tags authors
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
git
github
gitlab
bitbucket
MoOx
@nixsiow
nixsiow / Hosting contract killer
Created November 10, 2017 13:12 — forked from MikeRawlins/Hosting contract killer
This is an additional paragraph for the excellent Contract Killer https://gist.github.com/malarkey/4031110
Hosting
We provide hosting for our own built websites on our preferred hosting provider <hosting provider name>.
Based on their SLA we endeavor to have 99.9% uptime on our servers measured annually.
There may of course be times when the server will not be available, this can be scheduled or unscheduled.
Scheduled downtime is when we know it is going to happen and tell you about it in advance. Scheduled downtime will wherever possible, almost certainly be outside of normal office hours. We’ll do our stuff in the evening or at weekend to minimize impact on your business.
There may be very rare occasions when we need to restart the server during normal office hours and it is not possible to inform you before hand. We don’t make these decisions lightly and if this does happen we apologise.
@nixsiow
nixsiow / themeforest-contract.md
Created November 10, 2017 13:11 — forked from primozcigler/themeforest-contract.md
Modified version of @malarkey's Killing Contract for use for the ThemeForest cooperation (more dev to dev team than dev to client).

Contract for developing a Drupal theme for selling on the ThemeForest

Between us: [ProteusNet d.o.o., Rudarska cesta 11, 8281 Senovo, Slovenia, EU] and you: [partner]

Summary:

We’ll always do our best to fulfil the scope of this cooperation, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

So in short;

@nixsiow
nixsiow / Auto_downloader.py
Last active January 24, 2024 14:08
Run this Python script to download all the MagPi issues to your current working directory. Customisable for other purpose of pdf file downloading.
## ======================================================== ##
## PDF files auto downloader. V0.1.4
## date: 16/10/2016
## MIT license (Free to use, just tell them I say hi)
## Build by Nix Siow
## Visit http://nixsiow.com
## Email: nixsiow@hotmail.com
## or @nixsiow on Github or Twitter
## ======================================================== ##
### Keybase proof
I hereby claim:
* I am nixsiow on github.
* I am nixsiow (https://keybase.io/nixsiow) on keybase.
* I have a public key whose fingerprint is 06AE BB94 E6D5 E117 532E 50CA E648 08E8 0158 4555
To claim this, I am signing this object:
@nixsiow
nixsiow / latency.txt
Last active August 29, 2015 14:26 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
@nixsiow
nixsiow / gist:c2f48dc3101771d62f10
Created July 9, 2015 04:53
PGP Public Key ( nixsiow@hotmail.com )
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFWY7bIBEACta5oY5UU6EbZxXXflK3wMFybEUHaVufkwBaEk9JSs8T9/spui
BoejxLi2gmo7easMC5gFzhC0oLg20aSm91a5KyGyEoy12kC2DS7EXmaAjAQjI9nT
79aDYrmE2ud9SDjgk46q0Nf04DeWvg5Tlnx9mXKHOAyu8+DmDahtNHHlJcNDagyb
hc8QPKCHO+pnNnINID8sCssf1DqJbW8+W22kxm34EU8jHKJWUsFMMFwhQkczXTDN
R3Xj0DBwe2ew70S6pi1Xj3rrJCkDFXvtTZtexbnzf+cWuUiyAo4aMdeXJHV8Dz+k
DcqWDGmIZJ9sxPD0oTaC1W2ciXfVgajoErrhxgmL4rrftw3/7wayGRUzvAnPS4z7
vynDb+7mzYQoVdvpDz6ImtRCLgPDlbLaXsK5nHYCjxIbb4WrtJcpXgWHBQer25g7
KFz4C1rOF7FFeTSHn6AIHEBP4r/Y3ihUaVl5pqrJKoI8EGciU90DFslvJdaOGw0d

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname