Skip to content

Instantly share code, notes, and snippets.

With a German passport you can travel to all the same countries
without a special visa as with a Swedish one plus those
20 additional:
- Faroe Islands
- Gibraltar
- Guernsey
- Isle of Man
- Jersey
- Anguilla
@jeena
jeena / gmail-delete.py
Created October 17, 2019 22:59
Delete all emails in GMail
#!/usr/bin/env python2
import gmail # from https://github.com/charlierguo/gmail
from datetime import datetime, timedelta, date
print "Logging in inte GMail ...",
g = gmail.login("foo", "test")
print "done."
d = date(2018, 10, 30)
➜ jeena@jugulator t (master✗) ./mf2.rb https://commentpara.de/comment/43.htm
{
"items": [
{
"type": [
"h-entry"
],
"properties": {
"author": [
{
package main
import "github.com/mikkyang/id3-go"
import "log"
import "strings"
func main() {
a, err := id3.Open("/tmp/music/01 Completement fou.mp3")
name1 := strings.TrimSpace(a.Artist())
if err != nil {
-- A script to select the next random Call of Duty map
repeat with usermap in shuffle(getMaps())
display dialog "Next map: " & usermap giving up after 3600 * 10
nextMap(usermap)
end repeat
on split(theString, theDelimiter)
set oldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to theDelimiter
@jeena
jeena / nextMap.py
Last active March 12, 2016 19:04
A script to copy the next random Call of Duty map into the c&p buffer.
#!/usr/bin/env python3
# A script to copy the next random Call of Duty map into the c&p buffer.
import os
import random
def is_map(str):
return str.startswith("mp_")
function gross() {
document.getElementById("bild").width++;
if (document.getElementById("bild")["width"] < 100) {
setTimeout("gross()", 6);
}
}
function klein() {
document.getElementById("bild").width--;
if (document.getElementById("bild")["width"] > 30)
#!/usr/bin/env ruby -wU
#
# This script uses the command line twitter client https://github.com/twitter/twurl
# You have to authorize Twurl one time before you can use ist, please read the
# README for Twurl which describes how to do it.
# What it basically does is it sets the flag that you don't want to see
# any retweets of any users at all.
require 'json'
#!/usr/bin/env ruby
(1..20).each do |i|
if i % 3 == 0 && i % 5 == 0
puts "FizzBuzz"
elsif i % 3 == 0
puts "Fizz"
elsif i % 5 == 0
puts "Buzz"
else
Melody: Un-break my heart (Toni Braxton / Diane Warren)
Text by: Tobias Olausson
Don't leave before it compiles
Don't code in any weird styles
Come back and patch all this code
Come and take errors awaaaay
I need your patch, to run this joint
Upstream is so behiiiiiind