Skip to content

Instantly share code, notes, and snippets.

Giorgos Logiotatidis glogiotatidis

Block or report user

Report or block glogiotatidis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View crontab
@daily /home/seadog/bin/unsplash.sh
@glogiotatidis
glogiotatidis / migrate-snippets-to-template.ng
Last active Mar 21, 2019
Migrate ASRSnippets to new template system + icon gallery
View migrate-snippets-to-template.ng
###
# To be run within a django shell plus
###
import os
import re
import hashlib
import base64
import json
import io
from PIL import Image
View vodafone-gr-sms.py
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'
View remove-gpg-user.sh
#!/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.
@glogiotatidis
glogiotatidis / README.md
Created Apr 22, 2016 — forked from teffalump/README.md
OpenWRT adblock implementation
View README.md

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.

View swap
<style>
.snippet p {
display: inline-block;
height: unset;
padding-left: unset;
vertical-align: unset;
width: unset;
}
View keybase.md

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 / cacheresults
Last active Aug 29, 2015
Masterfirefoxos caching
View cacheresults
# 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)
View tbirdreleasenotes.py
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
View github
#!/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
You can’t perform that action at this time.