Skip to content

Instantly share code, notes, and snippets.

View nielssorensen's full-sized avatar

Niels Sorensen nielssorensen

View GitHub Profile
@ctsrc
ctsrc / Leadership-CI.md
Created August 3, 2022 23:59 — forked from simpsoka/Leadership-CI.md
This is a list of questions to check our decision making.

Do I want to die on this hill?

  • Pass: This is morally good and if not handled has long term consequences
  • Fail: This if self serving

Am I including everyone?

  • Pass: My ego is not driving this conversation
  • Fail: The people in this conversation will only tell me I'm right and not push back
@jauderho
jauderho / Time Servers with NTS support.md
Last active March 3, 2026 12:57
A curated list of NTP time servers that support NTS
@paceaux
paceaux / tinyRules.css.md
Last active September 7, 2025 13:23
Tiny rules for how to name things in CSS and JS

Tiny rules for how to name stuff

CSS

How to name CSS classes

Stateful Class names

Is it a state that is only one of two conditions? (i.e. a boolean)

@secvalve
secvalve / parabaxel.sh
Last active May 25, 2016 02:30
A bash script that uses CURL to get a file in parts, ala axel. Paralellised version of baxel https://gist.github.com/secvalve/fbe41b7cc45812e386c6c8ea95075d3c. Usage: parabaxel numparts url eg ./parabaxel 3 http://www.google.com/robots.txt robots.txt
#!/bin/bash
#$1 numparts, #$2 url, #$3 outfile
#Get total length
TL=$(curl -sI $2 | grep Content-Length | awk '{printf "%d", $2}')
echo "$s is $TL Bytes Long"
let CHUNKSIZE=$(( TL / $1 ));
parallel -k curl -s -r {} $2 ::: $(for i in `seq -f "%.0f" 0 $CHUNKSIZE $(( $TL - $CHUNKSIZE ))`; do echo "$i-`expr $i + $CHUNKSIZE`"; done) #> $3
@gnachman
gnachman / iterm.scpt
Last active January 31, 2026 23:03
Replace /Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/iterm.scpt with this.
set itermRunning to (application "iTerm" is running)
set scriptPath to quoted form of POSIX path of ((path to me as text) & "::" & "start.sh")
set user_shell to do shell script "dscl /Search -read /Users/$USER UserShell | awk '{print $2}'"
tell application "iTerm"
activate
if not (exists window 1) or (itermRunning = false) then
reopen
end if
@oogali
oogali / 0-interactive.sh
Last active January 19, 2017 23:22
The quick and lazy way to learn Ruby basics (assuming you have background in another similar language)
# Ruby is present by default on all Mac OS X systems
# It may or may not be default on Linux/BSD systems, but you can always install it via packages/ports
# Ruby 1.8, 1.9, or 2.0 will work, so don't worry about having the right version
# The Interactive Ruby Interpreter (irb) is what you'll be using for these examples
# Let's get started
oogali@marvin$ irb
irb(main):001:0>
@grugq
grugq / gist:03167bed45e774551155
Last active February 1, 2026 19:31
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@XVilka
XVilka / TrueColour.md
Last active March 6, 2026 10:14
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!