Skip to content

Instantly share code, notes, and snippets.

Working from home

kevthanewversi kevthanewversi

Working from home
View GitHub Profile
import requests
from lxml import etree
from lxml.etree import fromstring
import csv
username =""
password =""
count = 0
column = 0
list = []
View database dump
mysqldump -u username -pxxxxx titandb1 --single-transaction --quick --lock-tables=false > titandb1-backup-$(date +%F).sql
kevthanewversi / sort_dict.js
Last active Mar 19, 2018
Some nifty JS script that can be used to sort a dictionary <python> or rather Object <javascript> by one of the values in the Object
View sort_dict.js
//init a dict with key value pairs. The values in my case are arrays. That can be changed
var dict = {
"x": [1, 3],
"y": [6, 90],
"z": [9, 16],
"a": [5, 3],
"b": [7, 9],
"c": [11, 3],
"d": [17, 3],
"t": [3, 10]
View gist:af69ae79b30ee81bfc8a75c479e41f6c
server {
listen 443;
server_name go; # <== 2 domains
root /var/www/html/docs/sslbeispieldata;
ssl on;
ssl_certificate /var/www/ssl/xx.crt;
ssl_certificate_key /var/www/ssl/xx.key;
return 301;
kevthanewversi /
Created Jun 23, 2016 — forked from vik-y/
This script will delete all of the tweets in a specified account.
# -*- coding: utf-8 -*-
This script is forked originally from Dave Jeffery. The original implementation
was very slow and deleted around 2 tweets per second. Making it multithreaded I
am able to delete 30-50 tweets per second.
@author: vik-y
This script will delete all of the tweets in the specified account.