Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
import os, sys, pprint, re, shutil, random | |
log_file = "/tmp/batch-rename.log" | |
f = open(log_file, 'w') | |
regx = re.compile("\\.jpg|\\.png|\\.gif", re.IGNORECASE) | |
def subdirs(path): | |
""" |
import os, re, sys | |
def sub_string(string, sub_str): | |
""" | |
Arguments: | |
- `string`: string you want to be truncated | |
- `sub_str`: starting sub-string (exclusive) | |
""" | |
index = string.rfind(sub_str) |
Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
""" | |
collect fillable form data from all pdf files in the input directory, | |
and generate a "output.csv" file in the input directory | |
Dependency: pdfminer | |
Install: pip install pdfminer | |
Usage: |
# get internal ip of the router | |
netstat -rn | grep UG | |
# get your public ip | |
wget -q -O - checkip.dyndns.org | grep -Eo "([0-9\.]+)" | |
#get filesize using the command | |
curl -sI $url | grep Content-Length | cut -d ' ' -f 2 |
# inputPath: an absolute path to the directory that contains xlsx files, like "C:/download" | |
# outputPath: absolute path for the output file | |
mergeXlsx <- function(inputPath, outputPath) | |
{ | |
# load xlsx package to read/write xlsx files | |
library(xlsx) | |
# get all files end with ".xlsx" in the given path and save them in fileList | |
fileList <- list.files(inputPath, pattern=".xlsx") | |
if (length(fileList) < 2 ){ |
require 'rubygems' | |
require 'openssl' | |
key = OpenSSL::PKey::RSA.new(1024) | |
public_key = key.public_key | |
# uncomment the following line if you when to save key to somewhere | |
# open '/tmp/key.pem', 'w' do |io| io.write key.to_pem end | |
# puts 'save to /tmp/key.pem' |
# find out which partition to format | |
diskutil list | |
# format disk1s1 to FAT32 file system with label "ADATA" | |
diskutil eraseVolume "FAT32" ADATA disk1s1 |
import datetime | |
import xlrd | |
# change the input path and output path | |
input_path = "/tmp/date.xls" | |
terminated_path = "/tmp/terminated.xlsx" | |
output_path = "/tmp/output.csv" | |
terminated_str = "terminate after IC" |
#Steps to install RVM + Ruby 1.9.3 + Rails + nginx + Passenger on CentOS (tested on v5.5) | |
# Todo get up to date repo's | |
# Install git and curl, if not already installed | |
sudo yum install git | |
sudo yum install curl-devel | |
# Create the rvm group and add any users who will be using rvm to the group | |
sudo su - |