Skip to content

Instantly share code, notes, and snippets.

View jaksi's full-sized avatar

Kristof Jakab jaksi

View GitHub Profile
@jaksi
jaksi / main.go
Created December 23, 2016 17:32
Go web server
package main
import (
"bytes"
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"log"
"net/http"
@jaksi
jaksi / something.sh
Last active September 20, 2016 10:06
#!/bin/bash
background_file='background.pdf'
name_list_file='names.txt'
font='Inconsolata'
font_size=36
font_color='#ff00ff'
text_offset='+0+0' # offset from center
@jaksi
jaksi / ingatlan.py
Created September 7, 2016 17:49
Scrape ingatlan.com for new apartments and send notifications via Pushbullet
#!/usr/bin/env python3
import traceback
from time import sleep
from lxml import html
from pushbullet import PushBullet
@jaksi
jaksi / mirrorlist.hook
Last active April 28, 2018 12:06
Update pacman mirrorlist using reflector after each upgrade of pacman-mirrorlist
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = pacman-mirrorlist
[Action]
Description = Updating mirrorlist...
When = PostTransaction
Depends = reflector