Skip to content

Instantly share code, notes, and snippets.

View pirafrank's full-sized avatar
🎯
Focusing

Francesco Pira pirafrank

🎯
Focusing
View GitHub Profile
@ssbarnea
ssbarnea / .profile
Created May 26, 2011 19:21
Bash script for setting up OS X for power users
alias dos2unix-recursive='find . -iname '*.tpl' | xargs dos2unix'
alias edit='mcedit'
alias del='rm'
alias deltree='rm -r'
alias dir='/bin/ls $LS_OPTIONS --format=vertical'
alias attrib='chmod'
alias chdir='cd'
alias copy='cp'
alias ls='ls -a'
@michel-slm
michel-slm / sync-acpi-intel.sh
Created July 14, 2011 07:22
For i915 systems with broken ACPI backlight controls, synchronize the ACPI value with the native control
#!/bin/bash
# Copyright (c) 2011, Michel Alexandre Salim <[email protected]>
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and its documentation for any purpose, provided that the
# above copyright notice and the following two paragraphs appear in
# all copies of this software.
#
# IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
# DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@pudquick
pudquick / pipista.py
Created November 20, 2012 07:23
pipista - pip module (for installing other modules) for Pythonista
import os, os.path, sys, urllib2, requests
class PyPiError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
def _chunk_report(bytes_so_far, chunk_size, total_size):
if (total_size != None):
<div class="section group">
<div class="col span_1_of_6">
1 of 6
</div>
<div class="col span_1_of_6">
1 of 6
</div>
<div class="col span_1_of_6">
1 of 6
</div>
@MalphasWats
MalphasWats / post_to_GitHub.py
Created December 15, 2013 20:10
Post to GitHub Pages from Editorial
#coding: utf-8
import keychain
import console
import editor
import time
import re
import requests
import json
@hypersoft
hypersoft / globlines
Last active August 29, 2015 13:56
Path Tools
#!/bin/sh
pipe=cat;
ifilter=./ifilter; [ -e "$ifilter" ] || ifilter=ifilter;
if [ "${1:0:1}" == '-' ]; then
pipe="$ifilter $1";
shift;
fi;
@mhartington
mhartington / CustomTheme
Last active December 8, 2018 20:35
If you want to make a custom theme for ionic, and are using scss, this is a base to get you started
//Custom Theme test
// Colors
// -------------------------------
$custom: #057b6c !default;
// Buttons
// -------------------------------
$button-custom-bg: $custom !default;

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

@aborruso
aborruso / 00_readme.md
Last active August 29, 2015 14:14
Un generatore di feed RSS per VeryBello

#Un generatore di feed RSS per VeryBello Ho creato un generatore di feed RSS per VeryBello, a partire dalla località di cui si vogliono elencare gli eventi. Niente da prendere troppo sul serio, e niente affatto perfetto.

E' fatto con Yahoo Pipes e ha questo URL di base: http://pipes.yahoo.com/pipes/pipe.run?_id=018841bdba2446faca1b9f1cae900f44&_render=rss&textinput1=Matera

Basta cambiare il nome città presente a fine URL e si avrà il feed relativo. Quindi per Palermo sarà http://pipes.yahoo.com/pipes/pipe.run?_id=018841bdba2446faca1b9f1cae900f44&_render=rss&textinput1=Palermo

Il feed RSS è un GeoRSS (con tutti i difetti dell'automazione di processo) e ci si fanno rapidamente mappe come quella di sotto.