After installing Xcode you’ll want to open up a terminal and ensure you have accepted the developer license:
$ sudo xcodebuild -license
""" | |
This helper provides logging setup. | |
The call `logger.info("hello")` prints log messages in this format: | |
Usage: | |
from logger import setup_logger | |
logger = setup_logger() |
#!/usr/bin/env python | |
# crontab -e | |
# @reboot python /home/pi/code/startup_mailer.py | |
import time | |
import subprocess | |
import smtplib | |
from email.mime.text import MIMEText | |
import datetime |
#!/usr/bin/env python | |
import json | |
import requests | |
url = 'https://randomuser.me/api/' | |
def main(): | |
res = requests.get(url).json() | |
j = json.dumps(res, indent=2) |
import serial | |
import datetime | |
from pymongo import MongoClient | |
port = serial.Serial('/dev/ttyAMA0', baudrate=9600, timeout=2.0) | |
client = MongoClient('172.31.150.230') | |
def read_pm_line(_port): | |
rv = b'' |
(function(){ | |
document.body.innerHTML = ''; | |
document.head.innerHTML = ''; | |
var i = document.createElement('iframe'); | |
i.id='theiframe'; | |
i.style.width = '100%'; | |
i.style.height='100%'; | |
i.src = '?'; |
(function ($) { | |
var root = new RegExp(location.host); | |
$( 'a' ).each(function() { | |
if( location.hostname === this.hostname || !this.hostname.length ) { | |
$(this).addClass('local'); | |
} else { | |
$(this).addClass('external'); | |
} |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonemedium <disk-name>.vdi <new-disk-name>.vdi --variant Standard
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd .vdi --resize 25000
#rsync -aP --exclude-from=rsync-homedir-excludes.txt /home/$USER/ /media/$USER/linuxbackup/home/$USER/ | |
#.android | |
#.AndroidStudioBeta | |
#.gradle | |
#.gvm | |
#.grails/ | |
#.grails_history | |
#.kde/share/apps/nepomuk |