Skip to content

Instantly share code, notes, and snippets.

Avatar

fabian wohlgemuth wohfab

View GitHub Profile
@wohfab
wohfab / index.html
Last active Mar 10, 2021
fwdc-ipfs
View index.html
<!doctype html><html lang="en"> <head> <meta charset="UTF-8"><meta name="description" content="I am a multidisciplinary creative, experienced in photography, graphic design, web development, and coaching & consulting."> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>fabian wohlgemuth</title> <style>*{box-sizing: border-box; margin: 0;}body{display: flex; flex-direction: column; min-height: 100vh; padding: 5vh clamp(1rem, 5vw, 3rem) 1rem; font-family: system-ui, sans-serif; font-size: 1.25rem; line-height: 1.5; color: #eee; background-color: #333;}body > *{--layout-spacing: max(8vh, 3rem); width: 100%; max-width: 70ch; margin-left: auto; margin-right: auto;}main{margin-top: var(--layout-spacing);}footer{margin-top: auto; padding-top: var(--layout-spacing);}footer p{border-top: 1px solid #ccc; padding-top: 0.25em; font-size: 0.9rem; color: #767676;}:is(h1){padding-left: .5rem; border-left: 1rem solid pink;}:is(h1, h2, h3){line-hei
@wohfab
wohfab / mp_balins1.bib
Created Oct 12, 2019
Module Paper - 23-LIN-BaLinS1
View mp_balins1.bib
@article{kiss2006unsupervised,
title={Unsupervised multilingual sentence boundary detection},
author={Kiss, Tibor and Strunk, Jan},
journal={Computational Linguistics},
volume={32},
number={4},
pages={485--525},
year={2006},
publisher={MIT Press}
}
@wohfab
wohfab / dash.py
Created Jan 29, 2019
amazon dash button ifttt
View dash.py
import socket
import struct
import binascii
import time
import json
import urllib2
# Use your own IFTTT key
ifttt_key = 'cyj4O2lFZEZL9q8L9Q7yK'
# Set these up at https://ifttt.com/maker
@wohfab
wohfab / ba_thesis.bib
Last active Sep 27, 2018
Bib File for BA thesis - Social Media Commuication
View ba_thesis.bib
@article{kiss2006unsupervised,
title={Unsupervised multilingual sentence boundary detection},
author={Kiss, Tibor and Strunk, Jan},
journal={Computational Linguistics},
volume={32},
number={4},
pages={485--525},
year={2006},
publisher={MIT Press}
}
@wohfab
wohfab / choco.md
Last active Oct 14, 2018
Chocolatey install
View choco.md

Install Chocolatey

Use an admin PowerShell to install choco:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

(Optional) Allow Global Confirmation

choco feature enable -n allowGlobalConfirmation
View wsl-ssh.md

WSL SSH cannot use .ppk files. Use open-ssh instead.

sudo aptitude install putty
mkdir -p ~/.ssh
puttygen ~/XYZ.ppk -o ~/.ssh/XYZ_id_rsa -O private-openssh
ssh-add

Alternatively to ssh-add put following in your /etc/ssh/ssh_config:

Host HOSTNAME
View lynda-dl.md

Get course links from Lynda.com website

var array = []; var links = document.getElementsByClassName("course-list")[0].getElementsByTagName('a'); for(var i=0, max=links.length; i<max; i++) { array.push(links[i].href); }; console.log(array.join("\r"));

Download, rclone to GDrive & remove folder from server

alias lynda-dl="youtube-dl -a req.txt --cookies cookies.txt -o 'dl/%(playlist_title)s/%(playlist_index)s-%(title)s.%(ext)s' --write-sub -f=bestvideo+bestaudio/best --external-downloader aria2c -v --download-archive lyndaarchive.txt -i && rclone move dl gdrive:lynda --transfers 20 --ignore-existing -vv && rm -rf dl/* && rm req.txt && touch req.txt"
@wohfab
wohfab / gnome-shell-screenshot-custom-imgur-account.md
Last active Jun 3, 2021
Gnome Shell Screenshot Extension - Upload Images to private Imgur account
View gnome-shell-screenshot-custom-imgur-account.md

Using the gnome shell extension gnome-shell-screenshot to upload screenshots to your own Imgur account instead of the default one

  1. Register an imgur account if you haven't. Then make sure, you are logged in
  2. Go to https://api.imgur.com/oauth2/authorize?client_id=c5c1369fb46f29e&response_type=token and approve application
  3. Copy the access_token from the browser's address bar which should look like https://imgur.com/#access_token=161367e9d4r589408c8f552b88273d4dc411c783ea&expires...
  4. Open ~/.local/share/gnome-shell/extensions/gnome-shell-screenshot@ttll.de/uploadImgur.js and then replace
    • clientId = "c5c1369fb46f29e"; with clientId = "YOUR_ACCESS_TOKEN";
    • authorization", "Client-ID " + clientId with Authorization", "Bearer " + ClientId
    • If you don't want to delete the old lines, just comment them ou
View keybase.md

Keybase proof

I hereby claim:

  • I am wohfab on github.
  • I am wohfab (https://keybase.io/wohfab) on keybase.
  • I have a public key whose fingerprint is 6239 7F05 A2E4 5CAC 45FD BCFE A15E 859B 045A 8A72

To claim this, I am signing this object: