Title | Last update | User | Notes |
---|---|---|---|
Account System/CompleteFPCA/it | 2016-01-29 14:56:14 | Robyduck | |
Account System/NewAccount/it | 2016-01-27 15:16:25 | Robyduck | |
Ambassadors/AnswerQuestions/it | 2016-01-27 15:18:36 | Robyduck | |
Ambassadors/ButtonUp/it | 2016-01-29 14:57:44 | Robyduck | |
Ambassadors/Conduct/it | 2016-01-20 14:06:01 | Robyduck | |
Ambassadors/FAQ/it | 2016-01-20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -s "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext" \ | |
| sed 's;^\(.*\)$;address="/\1/127.0.0.1";' | sudo tee /etc/dnsmasq.d/ads >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import xml.etree.ElementTree as ET | |
def getProperties(entry, ns): | |
for app_property in entry.findall('apps:property', ns): | |
name = app_property.attrib['name'] | |
if name in ('forwardTo', 'shouldTrash'): | |
yield name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# Copyright (C) 2016 - Francesco Frassinelli | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import itertools | |
import operator | |
seq = [8, 8, 7, 6] | |
target = 10 | |
ops = [ | |
operator.add, | |
operator.sub, |
Map: http://www.openstreetmap.org/relation/2143508#map=18/45.47803/9.22876
Last update: 26 of December 2016
- Buildings
- Roads
- Trees (with type/leaf_type tags)
- Bicycle parkings (with type and capacity tags)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# select-default-subj.sh | |
# Description: Select default sink for PulseAudio | |
# Author: FraFra (Francesco Frassinelli - frafra.eu) | |
# License: GPLv3 | |
SINKS=($(LC_ALL=C pactl list sinks | grep -P '^\tName: ' | cut -d ' ' -f 2)) | |
DEFAULT=$(LC_ALL=C pactl info | grep '^Default Sink: ' | cut -d ' ' -f 3) | |
echo "Sinks:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
title="Estrai traccia audio" | |
url=$(zenity --entry --title "$title" --text "Inserisci l'indirizzo:") | |
cd $(xdg-user-dir MUSIC) | |
youtube-dl --extract-audio --audio-format mp3 $url | zenity --progress --pulsate --title "$title" --text "Stato dello scaricamento" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# https://github.com/osmcode/pyosmium/issues/39 | |
import osmium | |
import json | |
class PolimappersHandler(osmium.SimpleHandler): | |
def __init__(self): | |
osmium.SimpleHandler.__init__(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import json | |
import urllib.parse | |
import urllib.request | |
BASE = 'http://dev.virtualearth.net/REST/v1/Locations?' | |
parser = argparse.ArgumentParser() |