Skip to content

Instantly share code, notes, and snippets.

View nattsw's full-sized avatar
🐱
Patting my cat

Natalie Tay nattsw

🐱
Patting my cat
View GitHub Profile
@nattsw
nattsw / README.md
Created January 24, 2022 04:03 — forked from koshatul/README.md
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@nattsw
nattsw / Gif4Gud.md
Last active July 29, 2020 03:41
Gifs from Mac screen recordings

Create smaller Gifs from Mac screen recordings

Making a gif to update your stakeholders/team about what you've done on your app?

Difficulty level: 1 of 5.

You'll need to be using a Mac, and have brew installed.

Record the video with Mac screen capture

  1. cmd+shift+5
@nattsw
nattsw / concourse.md
Created May 8, 2018 09:41 — forked from kevin-smets/concourse.md
Setup the Concourse binary locally on macOS and run the hello world example.

Prerequisites

Installs

Concourse

curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.5.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin
@nattsw
nattsw / npmj.md
Last active January 10, 2017 08:14
New Pivotal Machine for Jenkins

Re-imaging a iMac or Mac Mini

  • Connect the machine to the network via a network cable (wifi works too but it's way slower)

  • Boot the machine and hold on to ⌥ (option).

  • A prompt should appear if you're properly connected to the network You should see a few options to boot from, the existing hard disk, and Netboot. Choose the Netboot option

  • You will boot into DeployStudio Runtime

#!/usr/bin/env ruby
require 'highline/import'
require 'nokogiri'
# i suggest looking at this folder and seeing your app prefix ¯\_(ツ)_/¯
$gradle_properties = File.join(File.dirname(__FILE__), "..", "..", "gradle.properties")
$app_directory = "./<App Parent Directory>"
$app_name_prefix = "<Prefix for final apk e.g. uber-release->"
$splash_screen_location = "co.kaush.instashop/co.kaush.instashop.SplashActivity"

Standup \o/

  • tick your name when you've done standup for the day
[ ] abhaya [ ] alan [ ] alberto [ ] amy [ ] bowes [ ] brian [ ] carlos [ ] clara [ ] david [ ] erika [ ] gam [ ] gordon [ ] james [ ] jason [ ] liza [ ] mayra [ ] michael [ ] nat [ ] rahul [ ] simone [ ] tamara [ ] yifeng [ ] abhaya [ ] alan [ ] alberto [ ] amy [ ] bowes [ ] brian [ ] carlos [ ] clara [ ] david [ ] erika [ ] gam [ ] gordon [ ] james [ ] jason [ ] liza [ ] mayra [ ] michael [ ] nat [ ] rahul [ ] simone [ ] tamara [ ] yifeng [ ] abhaya [ ] alan

scala

  • immutable expressions

    val two = 1 + 1

  • mutable expressions

    var temperature = 30 temperature = 40

@nattsw
nattsw / rdrc_pivotal.md
Last active June 14, 2016 10:21
RedDotRubyConf 2016 Pre Conference Shoutout - Pivotal

As stated in the Sponsor Kit, all Gold Sponsors are eligible for a Pre or Post conference shoutout to the mailing list, Facebook AND Twitter.

We would need all Gold Sponsors, including those who have stated earlier on, to indicate their preference for Pre or Post conference.

Let's go for pre-conference

For Mailing List shoutout, you are entitled to 2-3 paragraphs with a maximum of 150 words, and the option of attaching a picture. We will consolidate all shoutouts and send them out in a single email.

Logo

@nattsw
nattsw / keybase
Last active November 12, 2021 01:41
### Keybase proof
I hereby claim:
* I am nattsw on github.
* I am nattsw (https://keybase.io/nattsw) on keybase.
* I have a public key ASDBl9gcZrF8QHsHILTX9RDe7Nmxq57onT5LX3DNYxeWdAo
To claim this, I am signing this object:
@nattsw
nattsw / jarsign_zipalign
Last active March 14, 2016 02:03
'jarsigner's and 'zipalign's your apks in a folder. Your key should be in the same folder as this script, your folder should be in the same folder as this script.
#!/bin/bash
command -v jarsigner >/dev/null 2>&1 || { echo >&2 "The jarsigner command is required but not available. Please install the JRE. Aborting."; exit 1; }
command -v zipalign >/dev/null 2>&1 || { echo >&2 "The zipalign command is required but not available. Add '/Users/<name>/Library/Android/sdk/build-tools/<version>/' to your PATH. Aborting."; exit 1; }
PROD=${PWD}"/prod-key.jks"
echo Gimme the folder containing your apks
select d in */; do test -n "$d" && break; echo ">>> Whaaat"; done
cd "$d"
echo Gimme the prod key password