Skip to content

Instantly share code, notes, and snippets.

View tzmartin's full-sized avatar
🏴‍☠️
ahoy!

tz ✨ tzmartin

🏴‍☠️
ahoy!
View GitHub Profile
@tzmartin
tzmartin / output.md
Last active February 23, 2016 18:11
Example Titanium JSON POST

Request

var xhr = Ti.Network.createHTTPClient();
xhr.onload = function() {
	Ti.API.info(this.responseText);	
}
var payload = {
	"foo":{
 "foo":"bar"
@tzmartin
tzmartin / dokku-letsencrypt.sh
Created January 22, 2016 20:13
x letsencrypt y
```
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
case "$1" in
letsencrypt:sign)
[[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on"
@tzmartin
tzmartin / bash.github.repo.sh
Created January 21, 2016 07:33
Create Github Pages from bash
echo "Enter your Github email"
read githubid
echo "Resume RepoName you wish to give? Your resume will be accessible from http://"$github".github.io/RepoName"
read reponame
echo curl -u $githubid https://api.github.com/user/repos -d \'{\"name\":\"$reponame\"}\' | bash -
echo "Enter the complete path of your resume file"
read resumepath
cp $resumepath .
@tzmartin
tzmartin / linux.commands.md
Last active November 17, 2019 02:05
Handy Linux Commands

Change OSX screen shot (cmd + shf + 3) file location and name

defaults write com.apple.screencapture name "SCREENSHOT"
defaults write com.apple.screencapture location /Users/tzmartin/Documents/screenshots
killall SystemUIServer

Kill service

@tzmartin
tzmartin / screenflow.cli.md
Last active February 4, 2016 03:29
ScreenFlow CLI

About Screenflow

The .screenflow project contains much more than the .scc such as imported media and the edited timeline as well.

  • .screenflow is the project.
  • .scc is the screen recording within the project (or the scratch area until the project is saved).
  • .dat is an NSArchiver file object in binary format (bplist). It persists state at runtime without the need to manually save a project.
  • media is a folder containing physical media files that were imported and renamed with a hash. The .dat file is updated.
@tzmartin
tzmartin / electorn.webpack.tips.md
Last active September 20, 2018 19:51
Electron Webpack Tips

Module not found: Error: Cannot resolve module 'remote'

The fix:

  • Install webpack-target-electron-renderer module, or
  • Use Webpack externals definitions:
@tzmartin
tzmartin / ios.settings.schemes.md
Created January 13, 2016 18:27
iOS Settings URL Scheme List

Settings URL schemes:

Note: < i=OS 5.1 use prefs:. > 5.1 use app-settings:

  • app-settings:root=General&path=About
  • app-settings:root=General&path=ACCESSIBILITY
  • app-settings:root=AIRPLANE_MODE
  • app-settings:root=General&path=AUTOLOCK
  • app-settings:root=General&path=USAGE/CELLULAR_USAGE
  • app-settings:root=Brightness
@tzmartin
tzmartin / ipsw.decrypt.md
Created January 12, 2016 17:55
Decrypting ipsw firmware files
@tzmartin
tzmartin / index.html
Created January 6, 2016 09:14 — forked from seantomburke/index.html
This is the iPhone Messages app created in full CSS. I use this on my website www.memebro.com. To see the full features visit http://www.memebro.com
<div id="iPhoneBro" class="iPhone gen">
<div class="title">
<input type="submit" class="back button" value="Messages">
<span class="contact_name button">(614) MEME-BRO</span>
<input type="submit" class="edit button" value="Edit">
</div>
<div id="conversation" class="conversation ">
<div class="time"><div class="time"><p>Aug 9, 2012 3:43 AM</p></div></div><div class="text sent" id="query"><div class="reflect"></div><p>Check Out <a href-"http://www.memebro.com/?r=codepen">memebro.com</a></p></div>
<div class="text receive"><div class="reflect"></div><p>Try "+popular", "+trending", or "+new" for meme lists</p></div>
<div class="text sent" id="query"><div class="reflect"></div><p>+popular</p></div>
@tzmartin
tzmartin / gist:89b98ff374c6a135508b
Created December 25, 2015 07:03 — forked from zarko-tg/gist:329ba811fd56ec118ce0
Queue processor using firebase-queue
'use strict';
const Queue = require( 'firebase-queue' );
function EventsCollector ( app_name, firebase, keen_client ) {
this.app_name = app_name;
this.firebase = firebase;
this.keen_client = keen_client;
}