Skip to content

Instantly share code, notes, and snippets.

View MartiUK's full-sized avatar
:shipit:

Martin Kemp MartiUK

:shipit:
View GitHub Profile
@MartiUK
MartiUK / aws-navbar-account-name.user.js
Last active November 6, 2019 12:34
Places the account name/number for your aws account in the console nav bar, useful if you have to switch between different accounts often
// ==UserScript==
// @name AWS Console - Account Name in Nav Bar
// @namespace https://www.martinke.mp
// @version 1.0
// @description Adds the Account Name in Nav Bar
// @author @martiuk
// @match https://*.console.aws.amazon.com/*
// @grant none
// ==/UserScript==
@MartiUK
MartiUK / keybase.md
Created March 6, 2018 14:38
Keybase Proof

Keybase proof

I hereby claim:

  • I am martiuk on github.
  • I am martiuk (https://keybase.io/martiuk) on keybase.
  • I have a public key ASCtclltE9gwCxAcyVqTouw-WTm1YpowOzYrvaMmC27vCAo

To claim this, I am signing this object:

@MartiUK
MartiUK / openpgp.txt
Created February 26, 2018 15:08
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:e64cf326cc41e0a641423138133d139058fa1d84]
@MartiUK
MartiUK / goodmorning.md
Last active August 29, 2015 14:17
Morning Job

/etc/systemd/system/goodmorning.timer

[Unit]
Description=Morning

[Timer]
OnCalendar=*-*-* 7:00
WakeSystem=true

[Install]
@MartiUK
MartiUK / mandelbrot.cpp
Created August 11, 2014 12:17
Mandelbrot
#include "iostream"
#include "cmath"
#define DIM 1024
#define DM1 DIM-1
#define _sq(x) ((x)*(x)) // Square
#define _cb(x) abs((x)*(x)*(x)) // Cube
#define _cr (unsigned short) (pow((x), 1.0/3.0)) // Cube root
unsigned char GR(int,int);
unsigned char BL(int,int);
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="my-element">
# Initialise
$env:Path = $env:Path + ";C:\Users\mkemp\Documents\WindowsPowerShell"
$ScriptFolder = "C:\Users\mkemp\Documents\WindowsPowerShell\"
# Initialise aliases
Set-Alias subl 'C:\Users\mkemp\Desktop\sublimetext\sublime_text.exe'
function prompt {
# our theme
$cdelim = [consolecolor]::DarkCyan
@MartiUK
MartiUK / Ubuntu_Install.stackscript.sh
Created August 2, 2013 07:42
Installs Ubuntu using stack scripting for linodes.
#!/bin/bash
# By Sun Liwen <sunliwen@gmail.com>
# Not fully tested.
function system_primary_ip {
# returns the primary IP assigned to eth0
echo $(ifconfig eth0 | awk -F: '/inet addr:/ {print $2}' | awk '{ print $1 }')
}
@MartiUK
MartiUK / Arch Mirrorlist
Last active October 10, 2015 02:58
Arch Mirrorlist for UK 2013-05-10
##
## Arch Linux repository mirrorlist
## Sorted by mirror score from mirror status page
## Generated on 2013-05-10
##
## Score: 0.9, United Kingdom
#Server = http://archlinux.mirrors.uk2.net/$repo/os/$arch
## Score: 0.9, United Kingdom
#Server = http://mirror.bytemark.co.uk/archlinux/$repo/os/$arch