- brew tap homebrew/cask-fonts
- brew install --cask font-hack-nerd-font
- Change font to font-hack-nerd-font in iTerm2 https://iterm2.com/documentation-fonts.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Make sure you grab the latest version | |
| curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip | |
| # Unzip | |
| unzip protoc-3.3.0-linux-x86_64.zip -d protoc3 | |
| # Move protoc to /usr/local/bin/ | |
| sudo mv protoc3/bin/* /usr/local/bin/ | |
| # Move protoc3/include to /usr/local/include/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| // Define hook in your config <hook src="scripts/cordova-google-services-version-gradle-fix.js" type="before_prepare" /> | |
| var sourceDir = ''; | |
| var platformDir = 'platforms/android'; | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var readline = require("readline"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // check version | |
| node -v || node --version | |
| // list locally installed versions of node | |
| nvm ls | |
| // list remove available versions of node | |
| nvm ls-remote | |
| // install specific version of node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.http.HttpHeaders; | |
| import org.springframework.http.HttpRequest; | |
| import org.springframework.http.MediaType; | |
| import org.springframework.http.client.ClientHttpRequestExecution; | |
| import org.springframework.http.client.ClientHttpRequestInterceptor; | |
| import org.springframework.http.client.ClientHttpResponse; | |
| import org.springframework.util.StreamUtils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.firebase.utils; | |
| public class FireBasePushIdGenerator { | |
| static final String PUSH_CHARS = "-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"; | |
| static long LAST_PUSH_TIME = 0; | |
| static int[] LAST_RANDOM_CHAR_IDXS= new int[12]; | |
| static char[] ID = new char[20]; | |
| public static String getFirebaseId() { | |
| long now = System.currentTimeMillis(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -name '*.sh' | xargs git update-index --chmod=+x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildscript { | |
| ext { | |
| springBootVersion = '1.2.5.RELEASE' | |
| springVersion = '4.2.1.RELEASE' | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| # given a commit, find immediate children of that commit. | |
| for arg in "$@"; do | |
| for commit in $(git rev-parse $arg^0); do | |
| for child in $(git log --format='%H %P' --all | grep -F " $commit" | cut -f1 -d' '); do | |
| git describe $child | |
| done | |
| done | |
| done |
NewerOlder