Skip to content

Instantly share code, notes, and snippets.

@tut-tuuut
tut-tuuut / delete-tweets-from-twitarchive.rb
Last active May 17, 2018 20:12
Delete every tweet contained in your tweet archive. Forked from https://gist.github.com/robinsloan/3688616
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = ""
TWITARCHIVE_TWEETS = "/eg/path/to/your/twitarchive/data/js/tweets"
# get these from dev.twitter.com
CONSUMER_KEY = ""
@nferrari
nferrari / install_wallabag.py
Last active April 21, 2017 10:59
Install Wallabag on alwaysdata
#!/usr/bin/env python
import argparse
import fileinput
import grp
import json
import urllib.request
import os
import subprocess
import tarfile
@w00fz
w00fz / sphp.sh
Last active February 7, 2022 00:12
PHP switcher
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
@Simon-L
Simon-L / Poche.class.php
Last active August 29, 2015 14:14
Adding tagging on save in Wallabag and its Chrome extension the *very* hackish way!
function displayView($view, $id = 0)
...
case 'save':
$tpl_vars = array();
if (isset($_GET['url'])){
$tpl_vars['url'] = $_GET['url'];
}
if (isset($_GET['encoded_url'])){
$tpl_vars['encoded_url'] = $_GET['encoded_url'];
}