Skip to content

Instantly share code, notes, and snippets.

@mirstan
mirstan / clone-all-twitter-github-repos.sh
Last active January 8, 2023 13:56 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
#This worked for me and assumes that you've installed gh and jq then authenticated using gh auth login :
gh repo list $ORG --limit 9999 --json sshUrl | jq '.[]|.sshUrl' | xargs -n1 git clone
@mirstan
mirstan / export-toby.js
Created August 12, 2018 22:06 — forked from krishpop/export-toby.js
Export Toby
chrome.storage.local.get("state", o => (
((f, t) => {
let e = document.createElement("a");
e.setAttribute("href", `data:text/plain;charset=utf-8,${encodeURIComponent(t)}`);
e.setAttribute("download", f);
e.click();
})(`TobyBackup${Date.now()}.json`, o.state)
));
@mirstan
mirstan / s3Sync.sh
Created May 17, 2018 15:46 — forked from kellyrmilligan/s3Sync.sh
Sync files to s3 and set cache control headers
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public
@mirstan
mirstan / configuration.yml
Created January 12, 2016 05:48 — forked from fightingtheboss/configuration.yml
An Amazon Elastic Beanstalk configuration file for a Meteor project. This file needs to be saved in the .ebconfiguration/ directory at the root of your project. Deployed with `git aws.push`. Replace MONGO_URL with the URL to your MongoDB instance (I use MongoHQ).
packages:
yum:
git: []
files:
/opt/elasticbeanstalk/hooks/appdeploy/pre/51install_meteor.sh:
mode: "000755"
user: root
group: root
encoding: plain
@mirstan
mirstan / Sizes.md
Created November 12, 2015 03:55 — forked from jperl/Sizes.md
Meteor App Icon and Launch Screen Size Guide

###Icons

Name Size
iphone_2x 120x120
iphone_3x 180x180
ipad 76x76
ipad_2x 152x152
android_ldpi 36x36
android_mdpi 48x48