Skip to content

Instantly share code, notes, and snippets.

Videos

@wdragen
wdragen / setup-zeromq.sh
Created April 17, 2018 18:46 — forked from katopz/setup-zeromq.sh
Setup zeromq in Ubuntu 16.04
#!/usr/bin/bash
# Download zeromq
# Ref http://zeromq.org/intro:get-the-software
wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz
# Unpack tarball package
tar xvzf zeromq-4.2.2.tar.gz
# Install dependency
#!/usr/bin/expect -f
set host "your ssh server host"
set user "your ssh user name"
set password "your ssh password"
set timeout -1
spawn ssh -N -f -D 127.0.0.1:3128 $user@$host
match_max 10000
#!/bin/sh
# 2014 - Sfeng
# Found at https://gist.github.com/72ea75a958f99511fe28
#
# Inspired by https://gist.github.com/2568707
#
#
# Usage installMobileProvisionFile.sh path/to/foobar.mobileprovision
@wdragen
wdragen / find_uuid_of_mobileprovision.sh
Last active August 29, 2015 14:01
find ios mobileprovision file uuid
# double click your downloaded mobileprovision file firstly.
# And xcode will copy it to the ~/Library/MobileDevice/Provisioning\ Profiles directory with uuid as its file name
provision_file="file path to your mobileprovision"
export target_md5="$(md5 -q $provision_file)";find ~/Library/MobileDevice/Provisioning\ Profiles '*.mobileprovision' -print0|xargs -0 md5|grep $target_md5
       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
               Version 2, December 2004

Copyright (C) 2012 Brandon B. [email protected]

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

@wdragen
wdragen / HD.txt
Created June 17, 2013 14:44 — forked from lexrus/HD.txt
http://devstreaming.apple.com/videos/wwdc/2013/710xfx3xn8197k4i9s2rvyb/710/710-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/202xdx2x47ezp1wein/202/202-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/200xdx2x35e1pxiinm/200/200-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/413xdx5x97itb5ek4yex3r7/413/413-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/612xax4xx65z1ervy5np1qb/612/612-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/221xex4xxohbllf4hblyngt/221/221-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/220xbx4xipaxfd1tggxuoib/220/220-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/711xcx4x8yuutk8sady6t9f/711/711-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/404xbx2xvp1eaaqonr8zokm/404/404-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/505xbx4xrgmhwby4oiwkrpp/505/505-HD.mov?dl=1