Skip to content

Instantly share code, notes, and snippets.

@smartlime
smartlime / vpngate.pl
Created February 15, 2018 20:32 — forked from xatier/vpngate.pl
get OpenVPN config files from vpngate server list
#!/usr/bin/perl
#####################################################
# OpenVPN config tool for vpngate
# http://www.vpngate.net/en/
#
# get OpenVPN config files from vpngate server list
#
# Author: @xatierlikelee
# License: GPL
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="agnoster"
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent identities id_rsa
export UPDATE_ZSH_DAYS=13
plugins=(rails osx zsh-syntax-highlighting common-aliases sudo wd dircycle last-working-dir brew gitfast git-extras rvm gem capistrano redis-cli docker vagrant npm pip supervisor autojump ssh-agent httpie urltools screen sprunge web-search)
source $ZSH/oh-my-zsh.sh
POWERLINE_FULL_CURRENT_PATH="true"
POWERLINE_DETECT_SSH="true"
@smartlime
smartlime / git-repos-update.sh
Last active March 20, 2016 14:08
Clone/iupdate several git repos at once
#!/usr/bin/env /usr/local/bin/zsh
for repo (`cat .repos`); do
echo -n "Trying repo $repo..."
git ls-remote --exit-code "$repo" HEAD &> /dev/null
if [ $? -eq 0 ]; then
echo "OK"
paths=(${(s:/:)repo})
rpath="./"$paths[-1]
if [[ -d $rpath ]]; then
@smartlime
smartlime / applist7.sh
Created December 21, 2014 16:53
List iOS Apps, Cydia Packages and sources, iOS 6-7
#!/bin/sh
echo -n "0"
find /User/Applications/ -name iTunesMetadata.plist -exec plutil -key itemName {} \; >names.txt
#bundleDisplayName
sort names.txt >names.s.txt
echo -n "1"
find /User/Applications/ -name iTunesMetadata.plist -exec plutil -key softwareVersionBundleId {} \; >ids.txt
@smartlime
smartlime / applist.sh
Created December 21, 2014 16:48
List iOS Apps, Cydia Packages and sources, iOS 8+
#!/bin/sh
echo -n "0"
find /User/Containers/Bundle/Application/ -name iTunesMetadata.plist -exec plutil -key itemName {} \; >names.txt
#bundleDisplayName
sort names.txt >names.s.txt
echo -n "1"
find /User/Containers/Bundle/Application/ -name iTunesMetadata.plist -exec plutil -key softwareVersionBundleId {} \; >ids.txt