Skip to content

Instantly share code, notes, and snippets.

View glogiotatidis's full-sized avatar

Giorgos Logiotatidis glogiotatidis

View GitHub Profile

Keybase proof

I hereby claim:

  • I am glogiotatidis on github.
  • I am giorgos (https://keybase.io/giorgos) on keybase.
  • I have a public key whose fingerprint is 3BC0 E283 F838 C0B8 15B9 6148 0F8C AF54 67DE DD04

To claim this, I am signing this object:

@glogiotatidis
glogiotatidis / github
Created April 11, 2014 14:16
Pull github pr
#!/bin/bash
PROJECT=$1
PULL=$2
# Usage
[[ -z $1 ]] || [[ -z $2 ]] && {
echo "Rerun a github pr with a project and a pull ."
echo -e " $ $(basename $0) PROJECT PULLNUM"
exit 1
import ipdb
import json
from rna.clients import RestModelClient
from rna.models import Note, Release
# Release notes for
# 30.0beta
# 31.0beta
# 31.0
# 31.1.0
@glogiotatidis
glogiotatidis / cacheresults
Last active August 29, 2015 14:15
Masterfirefoxos caching
# Tested on EC2 instance
## With Cache
ubuntu@masterfirefoxos-jenkins:~$ ab -n 1000 -c 10 https://giorgos-dev.masterfirefoxos.com/en/2-0/
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking giorgos-dev.masterfirefoxos.com (be patient)
<style>
.snippet p {
display: inline-block;
height: unset;
padding-left: unset;
vertical-align: unset;
width: unset;
}
@glogiotatidis
glogiotatidis / README.md
Created April 22, 2016 11:14 — forked from teffalump/README.md
OpenWRT adblock implementation

Others have recently developed packages for this same functionality, and done it better than anything I could do. Use the packages instead of this script:

Description

In its basic usage, this script will modify the router such that blocked addresses are null routed and unreachable. Since the address blocklist is full of advertising, malware, and tracking servers, this setup is generally a good thing. In addition, the router will update the blocklist weekly. However, the blocking is leaky, so do not expect everything to be blocked.

import requests
LOGIN_URL = 'https://www.vodafone.gr/portal/client/idm/login!login.action'
SMS_URL = 'http://tools.vodafone.gr/gr2/cgi-bin/office.pl?serv=web2sms'
# Fill in your My Vodafone username nand password
USERNAME = None
PASSWORD = None
PHONE = '69xxxxxxxx'
MESSAGE = 'This is a test'
@glogiotatidis
glogiotatidis / migrate-snippets-to-template.ng
Last active March 21, 2019 14:53
Migrate ASRSnippets to new template system + icon gallery
###
# To be run within a django shell plus
###
import os
import re
import hashlib
import base64
import json
import io
from PIL import Image
@daily /home/seadog/bin/unsplash.sh
@glogiotatidis
glogiotatidis / remove-gpg-user.sh
Created May 24, 2016 11:50
Git-crypt remove user.
#!/bin/bash
#
# Script to remove GPG key from git-crypt
#
# It will re-initialize git-crypt for the repository and re-add all keys except
# the one requested for removal.
#
# Note: You still need to change all your secrets to fully protect yourself.
# Removing a user will prevent them from reading future changes but they will
# still have a copy of the data up to the point of their removal.