This is now a repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This regular expression will match strings in the form of an Apple Provisioning Profile (iOS, at least) | |
## Example: A0D25BDA-BX3F-6AD1-BC65-6DC9G0S13BAK | |
## Simplified a bit from the first version of the gist. | |
str = "some string with A0D25BDA-BX3F-6AD1-BC65-6DC9G0S13BAK that in the middle of it" | |
new_str = str.sub(/[[A-Z\d]{4,12}-]{1,36}/,new_profile_string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'geocoder' | |
# (b-a)*prng.rand + a | |
def random(a,b) | |
(b-a) * rand() + a | |
end | |
# -90 -> 90 | |
def random_lat | |
random(-90, 90) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ brew doctor | |
Your system is ready to brew. | |
➜ ~ brew install python | |
Warning: python-2.7.6 already installed | |
➜ ~ pip-2.7 install numpy | |
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/lib/python2.7/site-packages | |
Cleaning up... | |
➜ ~ brew install -v homebrew/science/opencv | |
/usr/local/opt/python/bin/python2 -c import numpy | |
/usr/local/opt/python/bin/python2 -c import numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
" The basics | |
Plugin 'kien/ctrlp.vim' " search for files | |
Plugin 'tpope/vim-fugitive' " git wrapper | |
Plugin 'bling/vim-airline' " nice looking status bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
# Global rules | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
- Case: Corsair Obsidian 250D
- Power Supply: Corsair RM450 Modular PSU
- CPU Water Cooler: Corsair H100i GTX
- Motherboard: ASRock Z170 Gaming-ITX/ac
- CPU: Intel i7-6700k
- Boot drive: Samsung 950 Pro m.2
- RAM: Corsair DDR4 32GB (16GBx2)
- Hard drive: Seagate 6TB 7200RPM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM buildpack-deps:jessie | |
RUN apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/* | |
ENV GOLANG_VERSION 1.5.2 | |
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz | |
ENV GOLANG_DOWNLOAD_SHA1 cae87ed095e8d94a81871281d35da7829bd1234e | |
RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \ | |
&& echo "$GOLANG_DOWNLOAD_SHA1 golang.tar.gz" | sha1sum -c - \ |
OlderNewer