Skip to content

Instantly share code, notes, and snippets.

View Kevin-De-Koninck's full-sized avatar

Kevin De Koninck Kevin-De-Koninck

View GitHub Profile
@Kevin-De-Koninck
Kevin-De-Koninck / CSV to keychain passwords.applescript
Created January 19, 2020 18:21
It expects: website, username, passwors
-- change the delimiter if you have passwords containing ","
set csvDelim to ","
-- select the csv to import to iCloud keychain
set theFile to (choose file with prompt "Select the CSV file")
-- ask user for password to unlock Safari
set pwdDialog to display dialog "Enter password to unlock Safari" default answer "" buttons {"Cancel", "Continue"} default button "Continue" with hidden answer
set myPassword to text returned of pwdDialog
\documentclass[11pt,a4paper]{article}
\usepackage[a4paper,left=3.5cm, right=2.5cm, top=3.5cm, bottom=3.5cm]{geometry}
\usepackage[dutch]{babel}
\usepackage{graphicx}
\graphicspath{{images/}} % Default location of all the images you want to add
\usepackage{a4wide}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\usepackage{verbatim}
\usepackage{hyperref}
@Kevin-De-Koninck
Kevin-De-Koninck / mount_ntfs.sh
Created May 13, 2018 17:10
Mount NTFS as RW on macOS
#!/bin/bash
#
# Usage example:
# ./mount_ntfs.sh DISK_NAME
#
# Note:
# The disk must be mounted at the start of this script.
# Check required args
@Kevin-De-Koninck
Kevin-De-Koninck / Hayfever (grasses) - Belgium.py
Created May 21, 2017 11:07
Send mail with info about the concentration of pollen (gras) in the air (Belgium).
# PYTHON 3
# Install modules using pip3 install
import sys
from urllib.request import urlopen
import bs4
# Defines meteovista
mol = "http://www.meteovista.be/Europa/Belgie/Hooikoorts-Mol/4053929"
brussel = "http://www.meteovista.be/Europa/Belgie/Hooikoorts-Brussel/4053951"
@Kevin-De-Koninck
Kevin-De-Koninck / Get_estimated_travel_times.py
Created May 14, 2017 19:27
Get estimated travel times using Python and Google's distance matrix
#!/usr/bin/python
# This script wil get the estimated travel times between your home and your work (in both directions).
#
# You could use this script to map the estimated travel times of a day in the future
# To plot grpahs you could use: http://plot.ly
import simplejson
import urllib
from datetime import date
@Kevin-De-Koninck
Kevin-De-Koninck / Get_current_real-time_travel_time.py
Created May 14, 2017 19:24
Get current real-time travel time using Python and Google's distance matrix
#!/usr/bin/python
# This script wil get the real-time travel time between your home and your work (in both directions at the current time).
#
# You could use this script to map the real time travel times of the past day (cron job, every minute)
# To plot grpahs you could use: http://plot.ly
#
#
# If you want to plat the estimated driving times for each minute of a given day in the future, check out my gist:
# Get estimated travel times using Python and Google's distance matrix