I hereby claim:
- I am pirafrank on github.
- I am pirafrank (https://keybase.io/pirafrank) on keybase.
- I have a public key whose fingerprint is 8CE5 6166 AD46 3442 9E3A CF7C 03F3 1E01 C9DC 0E67
To claim this, I am signing this object:
#!/bin/bash | |
# Cleaner script for pyobjc-framework python modules | |
# | |
# made by Francesco Pira | |
# fpira.com | |
# Given "as-is", WITHOUT ANY WARRANTY | |
# | |
# Usage: | |
# chmod +x ./this-script.sh |
import sys | |
import platform as pl | |
def get_os_release(): | |
if pl.system() == "Darwin": | |
var = pl.mac_ver()[0] # mac release | |
elif pl.system() == "Linux": | |
var = pl.linux_distribution() # which linux distro | |
elif pl.system() == "Windows": |
#!/usr/bin/python | |
import webbrowser | |
webpage = 'http://www.google.com' | |
webbrowser.open_new_tab(webpage) |
import sys | |
import subprocess | |
import os | |
import platform | |
def open_with_default(path): | |
current_platform = platform.system() | |
if current_platform == "Linux": | |
subprocess.call(["xdg-open", path]) |
# Linux | |
alias ll='ls -Fhla --color=auto' | |
alias ls='ls -Fh --color=auto' | |
# OS X | |
alias ll='ls -Fhla' | |
alias ls='ls -Fh' |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo -e " | |
ROOT PRIVILEDGES NEEDED! | |
You have to run this script as root. | |
Aborting... | |
" | |
exit 1 | |
else |
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo -e " | |
ROOT PRIVILEDGES NEEDED! | |
You have to run this script as root. | |
Aborting... | |
" | |
exit 1 | |
else |
#!/bin/bash | |
if [[ $# > 1 ]]; then | |
echo "Error: wrong number of arguments" | |
exit -1 | |
else | |
if [[ $1 == "" ]]; then | |
while read -r line | |
do | |
USER=$(echo $line | awk '{print $2}') |
#coding: utf-8 | |
import keychain | |
import console | |
import editor | |
import time | |
import re | |
import requests | |
import json |