Skip to content

Instantly share code, notes, and snippets.

package csvutil_test
import (
"bytes"
"encoding/csv"
"testing"
"io"
"time"
"github.com/jszwec/csvutil"
# General advices
CppCon 2017: Kate Gregory “10 Core Guidelines You Need to Start Using Now”
https://www.youtube.com/watch?v=XkDEzfpdcSg
C++Now 2017: Peter Sommerlad “C++ Core Guidelines - Modernize your C++ Code Base"
https://www.youtube.com/watch?v=q3WiZu8N7Tk
C++Now 2017: Tony Van Eerd “Postmodern C++"
https://www.youtube.com/watch?v=GPP64opjy_Y
@KalleDK
KalleDK / pyputty
Created February 2, 2017 01:26
Convert of Putty hosts to known_hosts
#!/usr/bin/env python3
import re
import paramiko
import winreg
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
class PuttyKeys:
store = winreg.HKEY_CURRENT_USER
@KalleDK
KalleDK / MultiLoopUDP.sh
Last active November 18, 2016 12:44
ITIFN RFC868 Server
#!/bin/sh
# Loop Forever
while true; do netcat -l -u -p 4444 -c -e "epoch=\$(date +'%s'); rfc868=\$((\$epoch + 2208988800)); hex=\$(printf '0: %.8x' \$rfc868); echo \$hex | xxd -r -g0"; done
// ==UserScript==
// @name BlackBoardOverlay
// @namespace http://k-moeller.dk/
// @updateURL https://gist.github.com/KalleDK/e7923688a31c9c76af90b442069a258d/raw/BlackBoardOverlay.user.js
// @downloadURL https://gist.github.com/KalleDK/e7923688a31c9c76af90b442069a258d/raw/BlackBoardOverlay.user.js
// @version 0.4
// @description Just don't show it
// @author Kalle R. Møller
// @match https://bb.au.dk/webapps/portal/execute/tabs/tabAction?tab_tab_group_id=_1_1*
// @grant none
sudo su
screen
yum install xz-libs -y
cd ~
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
pip install --upgrade pip
rm -f get-pip.py
@KalleDK
KalleDK / Boxstarter
Last active September 18, 2015 06:52
Fresh install
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Enable-MicrosoftUpdate
Install-WindowsUpdate
Set-TaskbarOptions -Size Small -Dock Bottom
cinst keepass
cinst keepass-keepasshttp
cinst 7zip
cinst skype
#Ja det er ikke alle pakker der skal bruges, gider bare ikke finde ud af hvilke
sudo apt-get install network-manager-openconnect-gnome
sudo apt-get install network-manager-openconnect
sudo apt-get install network-manager-pptp
sudo apt-get install network-manager-vpnc
sudo apt-get install network-manager-openvpn
sudo apt-get install network-manager-gnome
VPN
Gateway: vpn.iha.dk