It downloads all of the repos for a person or organization.
| import json | |
| import logging | |
| from flask import Flask, g | |
| from flask_oidc import OpenIDConnect | |
| import requests | |
| logging.basicConfig(level=logging.DEBUG) | |
| app = Flask(__name__) |
| #!/bin/bash | |
| # only works atm if only one jdk package in downloads | |
| DOWNLOADS=$HOME/Downloads | |
| CURRENT_VERSION=$(java -version 2>&1) | |
| JDK=` ls $DOWNLOADS | grep "jdk"` | |
| STUDIO_URL=http://dl.google.com/android/studio/install/0.3.2/android-studio-bundle-132.893413-linux.tgz | |
| if [ "uname -m" == "i386" -o "uname -m" == "i686" ]; then | |
| ARCH=32 | |
| else |
All your notes, scripts, config files and snippets deserve version control and tagging!
gist is a simple bash script for gist management.
It is lightweight(~700LOC) and dependency-free! Helps you to boost coding workflow.
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
| import android.annotation.TargetApi | |
| import android.os.Build | |
| import android.security.keystore.KeyGenParameterSpec | |
| import android.security.keystore.KeyProperties | |
| import android.util.Base64 | |
| import timber.log.Timber | |
| import java.security.GeneralSecurityException | |
| import java.security.KeyStore | |
| import javax.crypto.Cipher | |
| import javax.crypto.KeyGenerator |
| #!/bin/bash | |
| # "Bash Strict Mode with logging" | |
| set -eux -o pipefail | |
| IFS=$'\n\t' | |
| case $(uname -p) in | |
| arm) | |
| ;; | |
| *) |
These commands generate and use private keys in unencrypted binary (not Base64 “PEM”) PKCS#8 format. The PKCS#8 format is used here because it is the most interoperable format when dealing with software that isn't based on OpenSSL.
OpenSSL has a variety of commands that can be used to operate on private
key files, some of which are specific to RSA (e.g. openssl rsa and
openssl genrsa) or which have other limitations. Here we always use
| import kotlinx.coroutines.CoroutineScope | |
| import kotlinx.coroutines.coroutineScope | |
| import kotlinx.coroutines.delay | |
| import kotlinx.coroutines.launch | |
| import java.lang.reflect.InvocationHandler | |
| import java.lang.reflect.InvocationTargetException | |
| import java.lang.reflect.Method | |
| import java.lang.reflect.Proxy | |
| import kotlin.coroutines.Continuation | |
| import kotlin.coroutines.cancellation.CancellationException |