Skip to content

Instantly share code, notes, and snippets.

View peterschussheim's full-sized avatar

Peter Schussheim peterschussheim

View GitHub Profile
@peterschussheim
peterschussheim / main.cpp
Created May 9, 2020 16:45
Creating a markdown example
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
return 0;
}
@peterschussheim
peterschussheim / update.bash
Created July 29, 2019 13:52
update chrome via command line
/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/CheckForUpdatesNow.command
sudo rm -rf /var/lib/apt/lists/*

Cool project ideas

Mad/Violent Minute

  • a set of questions/icebreakers to get acquanted with someone

Name Generators

  • international names
@peterschussheim
peterschussheim / benchmark.js
Created April 22, 2019 17:00
Benchmark functions for JS map and object
/**
* Source: https://stackoverflow.com/a/54385459/6129793
*
*/
const benchmarkMap = size => {
console.time('benchmarkMap');
var map = new Map();
for (var i = 0; i < size; i++) map.set(i, i);
for (var i = 0; i < size; i++) var x = map.get(i);

currying

When a function that accepts n arguments continues to return a new function if it hasn't yet received all args it needs.

Manual PA

numbers.map(num => add(2, num))

@peterschussheim
peterschussheim / readme.md
Created April 10, 2019 00:05
interesting programming-related stuff to try

interesting programming-related stuff to try

@peterschussheim
peterschussheim / .prettierrc
Last active April 9, 2019 20:20
TypeScript tslint/prettier config
{
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 80,
"proseWrap": "always",
"overrides": [
{
"files": "src/**/*.css",
"options": {
@peterschussheim
peterschussheim / readme.md
Last active March 22, 2019 00:13
pi-hole notes/issues

pi-hole notes/issues

Current Problems

  • way too many sites are taking 10-20+ seconds to load (result until load is a blank page)
  • unsure how to use pi-hole and ublock-origin together
    • should they be used together?
  • current config provides zero insight on the actual client making the request (only visible is gateway)

UI shortcomings