Skip to content

Instantly share code, notes, and snippets.

View adriel's full-sized avatar
🏠
Working from home

Adriel Kloppenburg adriel

🏠
Working from home
View GitHub Profile
@farqewe
farqewe / README.md
Last active February 14, 2025 05:40
NZ Broker Fees Comparison

NZ Share Brokers Fees Comparison

Discussion

Disclaimer: This is not financial advice. You are responsible for doing your own research before investing.

Overview

It can be difficult to know which broker is cheapest since the pricing structures are complex. This analysis attempts to figure out the total costs for a simple investor depositing a fixed amount of NZD every month, investing it using equal sized trades and then withdrawing everything after some number of years. Rate of return is assumed to be 7% annually for all investments. You can use a back-tester like Testfol.io to a more realistic idea of expected returns.

@rsporteman
rsporteman / Install Composer On Debian 9 Stretch.md
Last active July 20, 2021 04:01
Install Composer On Debian 9 Stretch
@ismyrnow
ismyrnow / mac-clear-icon-cache.sh
Created May 5, 2017 19:28
Clear the icon cache on a Mac when you start seeing generic icons in Finder or the Dock
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder
@peterhellberg
peterhellberg / browse.tpl
Last active May 1, 2017 21:01
Code7 template used by the Caddy browse directive
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<link rel="stylesheet" href="http://c7.se/css/main.css">
<style>
body { font-family: 'Helvetica Neue', Sans-serif; }
#list {
width: 100%;
}
Example: https://denpa.moe/~syrup/himawari8.png
@kamermans
kamermans / configure_docker0.sh
Last active December 29, 2024 12:44
Change the IP subnet of Docker's docker0 interface
#!/bin/sh -e
#
# NOTE: Since Docker 1.10 (February 4, 2016), it has been possible to configure the
# Docker daemon using a JSON config file. On Linux, this file is normally located at
# /etc/docker/daemon.json. You should use this JSON config method if you are running
# a version of Docker that is at least 1.10!
# Here is an example configuration that sets the docker0 bridge IP to 192.168.254.1/24:
# {
# "bip": "192.168.254.1/24"
# }
@mitchwongho
mitchwongho / Docker
Last active September 23, 2024 12:09
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@ftao
ftao / install_pytho27.sh
Created July 7, 2011 10:00
install python 2.7 on debian 6
#!/bin/sh
mkdir ~/down/
cd ~/down/
sudo apt-get install build-essential
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar -xzf Python-2.7.2.tgz
cd Python-2.7.2
sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev
sudo apt-get install libgdbm-dev libbz2-dev libreadline5-dev
sudo apt-get install libssl-dev libdb-dev
@ryanb
ryanb / github_tree_slider.js
Created December 6, 2010 17:23
This is how GitHub's new AJAX file browser works.
GitHub.TreeSlider = function () {
if (window.history && window.history.pushState) {
function a() {
if (e.sliding) {
e.sliding = false;
$(".frame-right").hide();
$(".frame-loading:visible").removeClass("frame-loading")
}
}
if (!($("#slider").length == 0 || !GitHub.shouldSlide)) if (!navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {