Skip to content

Instantly share code, notes, and snippets.

View gderaco's full-sized avatar

Giuseppe D. gderaco

  • Amsterdam, Netherlands
View GitHub Profile
@gderaco
gderaco / gist:78de2fb89fbc6d49ce0873e42a129fbc
Created November 29, 2020 21:52
Keychron - remap microphone button with Karabiner
{
"title": "Remap x to y",
"rules": [
{
"description": "Remap x to y",
"manipulators": [
{
"from": {
"key_code": "spacebar",
"modifiers": {
@gderaco
gderaco / countries.json
Last active January 10, 2019 12:34
nice and well formatted json with country name, ISO 3166-1 alpha-3 code and emoji flag
[
{
"code": "AND",
"name": "Andorra",
"emoji": "🇦🇩"
},
{
"code": "ARE",
"name": "United Arab Emirates",
"emoji": "🇦🇪"
#use this script to get the latest version +1 of an app on hockeyapp
#useful for fastlane like this appVersion = sh("sh hockeyapp_buildnumber_plus1.sh") increment_build_number( build_number: appVersion )
#requisites: jq ( https://stedolan.github.io/jq/ )
output=$(curl -s -H "X-HockeyAppToken: API_TOKEN" https://rink.hockeyapp.net/api/2/apps/APP_PUBLIC_ID/app_versions\?include_build_urls\=true\&page\=1 | jq '.app_versions[0].version' | sed "s/\"//g")
echo $(($output + 1))