Skip to content

Instantly share code, notes, and snippets.

View Saturate's full-sized avatar
🛠️
Building Stuff

Allan Kimmer Jensen Saturate

🛠️
Building Stuff
View GitHub Profile
@Saturate
Saturate / day-1.js
Last active December 3, 2018 14:19
Advent Of Code 2018
(function(){
// Load the data from the page
const data = document.body.innerText.split('\n');
// Do the calculations!
let answer = data.reduce((total, feqChange) => total + Number(feqChange), 0);
// Tell us cool stories, bro!
console.log(`Answer is: ${answer}, copied to clipboard!`);
copy(answer);
@Saturate
Saturate / a-autoexec-for-csgo.md
Last active February 22, 2019 22:08
Counter Strike Global Offensive - autoexec cfg file

autoexec.cfg

Opinionated settings and commands for Counter-Strike Global Offensive. You might want to change some of these to your preferences and equipment.

Install

Create or edit the file under:

%steamLibrary%\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\autoexec.cfg

Ex. C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\autoexec.cfg

@Saturate
Saturate / games-with-twitch-drops.md
Created May 1, 2018 09:25
List of Games With Twitch Drops.
@Saturate
Saturate / docker-compose.reverse-proxy.yml
Created April 5, 2018 20:39
Træfik + Let's Encrypt + more?
version: '3'
services:
reverse-proxy:
image: traefik #The official Traefik docker image
command: --api --docker #Enables the web UI and tells Træfik to listen to docker
restart: always
networks:
- web
ports:
@Saturate
Saturate / docker-compose.reverse-proxy.yml
Created April 5, 2018 20:39
Træfik + Let's Encrypt + more?
version: '3'
services:
reverse-proxy:
image: traefik #The official Traefik docker image
command: --api --docker #Enables the web UI and tells Træfik to listen to docker
restart: always
networks:
- web
ports:
@Saturate
Saturate / functions.php
Created April 1, 2018 13:44
Remove Headings from Woo Commerce tabs, as they are redundant
<?php
// Remove Headings from Woo Commerce tabs, as they are redundant
add_filter('woocommerce_product_description_heading', '__return_null');
add_filter('woocommerce_product_additional_information_heading', '__return_null');
?>
ssi.dk
statens-adm.dk
kunst.dk
statens-tilskudspuljer.dk
nationalbanken.dk
skat.dk
politi.dk
@Saturate
Saturate / README.md
Created February 6, 2018 14:57
SmashingConf London 2018 Attendee List in JSON
@Saturate
Saturate / convert.js
Created December 6, 2017 14:34
NC3 Jule CTF - Convert (quick hack)
const fs = require('fs');
function hex2a(hexx) {
var hex = hexx.toString();
var str = '';
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
return str;
}
@Saturate
Saturate / day-1.js
Last active December 13, 2017 12:52
Advent of Code 2017
(function() {
const digits = [...document.body.innerText.trim()].map(Number);
function captcha(input, interval = 1) {
return digits.reduce((accu, digit, index) => {
const nextIndex = (index + interval) % digits.length;
return digit === digits[nextIndex] ? accu + digit : accu;
}, 0);
}