Skip to content

Instantly share code, notes, and snippets.

View nakami's full-sized avatar

nakami nakami

  • Germany
View GitHub Profile
@nakami
nakami / beautifulsoup_gw2wiki.py
Last active March 13, 2017 23:56
beautifulsoup_gw2wiki.py
import requests
from bs4 import BeautifulSoup
s.mount(url, HTTPAdapter(max_retries=5))
response = requests.Response()
try:
response = requests.get("https://wiki.guildwars2.com/wiki/Eternity", stream=True, verify=True, headers=False)
except requests.exceptions.RequestException as e: # catch exception but do nothing
print (e)
soup = BeautifulSoup(response.text, 'html.parser')
@nakami
nakami / cs_video_resources.md
Last active December 26, 2024 20:02
video resources on computer science related topics
@nakami
nakami / creative_videogames.md
Created September 10, 2017 19:55
creative_videogames

Antichamber

The Beginner's Guide

The Stanley Parable

monokai palette
http://www.colourlovers.com/palette/1718713/Monokai
monokai CMD
https://github.com/reideast/cmd-colors-monokai
run in elevated powershell:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
@nakami
nakami / guitar_tunings_wage_war.md
Last active May 23, 2023 09:51
revised guitar tunings to some of the songs of wage war according to ultimate-guitar tabs

guitar tunings wage war

revising some ultimate-guitar.com tabs of the band wage war

official statement on reddit AMA: Drop A#, sometimes top string to G (3 steps down)

note: top string F in johnny cash is 5 steps lower than A#, 2 steps lower than G

all meaningful tunings

@nakami
nakami / pinkbike_pod_download_highres.js
Last active January 30, 2019 21:44
Add high resolution download button on the pinkbike POD page
// run on https://www.pinkbike.com/photo/podlist/
// high res links look like this: https://lp1.pinkbike.org/p0pb<ID>/<ID>.jpg
// get all li-tags with 'inElm' class
var li_inElms = document.querySelectorAll('li.inElm')
// iterate over all li-tags
for(var i = 0; i < li_inElms.length; i++){
// get the id
var link = li_inElms[i].getElementsByTagName('a')[0].getAttribute('href');
@nakami
nakami / nindo_couponbrands_activity.py
Last active July 17, 2020 02:53
To what extend do brands advertise via coupons on social media? #nindo #coupons #socialmedia
import requests
import json
import time
from collections import Counter
from pprint import pprint
# avoid stressing nindo too much
# by adding a delay between fetch requests
FETCH_SLEEP = 1
@nakami
nakami / Amazon_Gaming_Claim_All_Games_button.js
Last active June 28, 2022 14:53
On Amazon Gaming, add a button below "Games free with Prime" to click all "Claim game" buttons (Does not click on external offerings)
// ==UserScript==
// @name Amazon Gaming "Claim All Games" button
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Adds a button below "Games free with Prime" to click all "Claim game" buttons; Does not click on external offerings
// @author nakami
// @match http*://gaming.amazon.com/*
// @icon https://d2u4zldaqlyj2w.cloudfront.net/02b601d4-a3ab-41e5-b8ab-1083f15f1c68/favicon.ico
// @grant none
// @run-at document-idle