Skip to content

Instantly share code, notes, and snippets.

View noelspringer's full-sized avatar

Noel Springer noelspringer

  • Brisbane, Australia
View GitHub Profile
@noelspringer
noelspringer / History|46091c8e|3vbs.json
Last active June 6, 2022 01:31
MATE Desktop Installation Programs
{
"workbench.colorTheme": "Nu Disco Dark",
"composer.executablePath": "/usr/local/bin/composer",
"editor.fontSize": 14,
"editor.fontFamily": "'Hack'",
"editor.fontLigatures": true,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.renderWhitespace": "boundary",
"editor.lineNumbers": "on",
@noelspringer
noelspringer / _colors.scss
Last active March 23, 2021 00:56
Sass functions for color tints and shades
// _colors.scss
// Reference: https://css-tricks.com/snippets/sass/tint-shade-functions/
// Slightly lighten a color
//
// @access public
// @param {Color} $color - color to tint
// @param {Number} $percentage - percentage of `$color` in returned color
// @return {Color}

Keybase proof

I hereby claim:

  • I am noelspringer on github.
  • I am noelspringer (https://keybase.io/noelspringer) on keybase.
  • I have a public key ASCgpNHTQ7ETkZjZrt45UOfwAy-CkA-GSY3rFZ1LMaH0Lgo

To claim this, I am signing this object:

@noelspringer
noelspringer / iptables_rules.sh
Created April 20, 2020 00:40 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@noelspringer
noelspringer / xrandr.sh
Last active April 10, 2020 08:40 — forked from debloper/xrandr.sh
Add system unrecognized but monitor supported resolution in X
#!/bin/sh
# First we need to get the modeline string for xrandr
# Luckily, the tool `gtf` will help you calculate it.
# e.g. `gtf <hRes> <vRes> <refreshRate>`:
gtf 1360 720 60
# In this case, the horizontal resolution is 1920px the
# vertical resolution is 1080px & refresh-rate is 60Hz.
# IMPORTANT: BE SURE THE MONITOR SUPPORTS THE RESOLUTION
@noelspringer
noelspringer / s3cfg-multi-howto.md
Last active January 10, 2020 12:11
How to use s3cmd with different AWS accounts using update-alternatives

How to use s3cmd with different AWS accounts using update-alternatives

A workaround for accessing multiple AWS S3 accounts with s3cmd is to use update-alternatives.

Use different file names for your .s3cfg file, backup and remove your .s3cfg file and it will be replaced with a symlink to the alternative. So with two accounts and files named .s3cfg-aws-1, .s3cfg-aws-2.

Install syntax:

update-alteratives --install <link> <name> <path> <priority>