Skip to content

Instantly share code, notes, and snippets.

View richardgill's full-sized avatar

Richard Gill richardgill

View GitHub Profile
@richardgill
richardgill / setup.sh
Created January 21, 2017 17:29
Python project setup for Milan
pip install virtualenv
#Intialise venv for project you're working on
virtualenv -p python3 venv
#Needs to be run to venv shiz up. (Put it in your ~/.bash_profile)
source venv/bin/activate
@richardgill
richardgill / circle.yml
Last active February 10, 2017 20:07
Yarn Build
machine:
node:
version: 7.4.0
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
override:
- yarn install --pure-lockfile
cache_directories:
@richardgill
richardgill / Preferences.sublime-settings - USER
Created February 15, 2017 11:09
Sensible Sublime Settings
{
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
],
"font_size": 15,
@richardgill
richardgill / heyFocus.sh
Last active March 3, 2017 14:10
HeyFocus Do Not Disturb Slack
# Get slack tokens from here: https://api.slack.com/custom-integrations/legacy-tokens
# You need: npm install -g dja/node-slack-dnd-cli
# You need: mkdir -p ~/Applications/NCutil && curl https://raw.githubusercontent.com/jacobsalmela/NCutil/master/NCutil.py -o ~/Applications/NCutil/NCutil.py && chmod u+x ~/Applications/NCutil/NCutil.py
# On Focus
export PATH=$PATH:/usr/local/bin:/Users/username/.nvm/versions/node/v7.6.0/bin/
SLACK_TOKEN="x" slack -o true -d 1000
SLACK_TOKEN="x" slack -o true -d 1000
SLACK_TOKEN="x" slack -o true -d 1000
@richardgill
richardgill / forking.md
Last active March 15, 2017 10:13
How to Fork

Fork the main repo (button top right).

  • git clone <the fork repo>
  • git remote add upstream <the main repo>

git remote -v <- see the remotes you have now

Most work will be done against origin. e.g. git push origin my-branch

When you're ready to do a PR, do a PR from the fork repo to the main repo.

@richardgill
richardgill / forcingRNAppUpgrades.js
Created March 16, 2017 14:42
Forcing React Native App Upgrades
import { Alert, Linking } from 'react-native'
import DeviceInfo from 'react-native-device-info'
import config from 'expresso-common/config'
import { platformIsIos } from 'expresso-common/common/platform'
import Firebase from 'firebase'
import semanticVersion from 'semver'
const attemptAndroidUpgrade = (appId) => {
const playStoreUri = `market://details?id=${appId}`
const playStoreUrl = `https://play.google.com/store/apps/details?id=${appId}`

Search for regex: ^(#+)([a-zA-Z]|\d)

Replace with: $1 $2

@richardgill
richardgill / example.md
Created August 25, 2017 10:29
Event propogation example
<div id=1 onClick=(e) => {
  console.log(1)
}>
  <div id=2 onClick=(e) => {
    console.log(2)
  }>
   2
  </div>
 1
@richardgill
richardgill / tinkering.md
Last active September 12, 2017 12:55
ZDEV Tinkerers

ZDEV Tinkerers

Rich

  • Used a firewall program (ZoneAlarm Pro) to 'Bridge' on Halo 2. So that my friends and I could pwn people playing in the US (who always got host otherwise)
  • Fixed ALOT of computers, built computers, installed operating systems from scratch.
  • Once broke my parent's 486 (which cost a lot of money!) so that it would only boot up into DOS and start a game - My Dad was not impressed.

John

Provisioning profiles have a certificate.

When using fastlane match development or fastlane match appstore you might want to pass comma seperated app identifiers (bundle ids) into the command. This will generate N provisioning profiles attached to one certificate for each command you run.

There is a limit per itunes connect account on the number of certificates. (We think the limit is for the same certificate type with the same name).