Java 8 is required.
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
| #!/bin/bash | |
| # | |
| # Usage: ./generate.sh <Maven repository URL> | |
| # - e.g. ./generate.sh https://artifactory.example.com/artifactory/maven | |
| # | |
| # Pre-req: wget, java | |
| # | |
| set -eu | |
| if [ $# -ne 1 ] |
brew install nodebrew
/usr/local/opt/nodebrew/bin/nodebrew setup_dirs
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
nodebrew setup
nodebrew -help
nodebrew ls-all
nodebrew install-binary v10.15.3
nodebrew use v10.15.3
| def try_login(): | |
| try: | |
| response = requests.post(SESSIONS_URI, auth=('username', 'password'), json={}) | |
| return response.headers['...'] | |
| except: | |
| print('The service is not started yet.') | |
| return False | |
| def try_get_resources(token): | |
| try: |
$ brew analytics # to see the current status
Analytics is enabled.
UUID: ...
$ brew analytics off
$ brew analytics # to confirm
Analytics is disabled.
# After creating an empty repository at destination site...
git clone --mirror http://__SOURCE_SITE__/path/to/repository.git
cd repository.git/
git remote add mirror1 http://__DESTINATION_SITE__/path/to/repository.git
git push mirror1 --mirror| const dummyLink = document.createElement("a"); | |
| dummyLink.download = "image_file_name.png" | |
| const canvas = document.getElementById("canvas"); | |
| canvas.toBlob(function (blob) { | |
| dummyLink.href = window.URL.createObjectURL(blob); | |
| document.body.appendChild(dummyLink); | |
| dummyLink.click(); | |
| document.body.removeChild(dummyLink); |
| @charset "utf-8"; | |
| h1,h2,h3,h4,h5,h6 { | |
| a { | |
| text-decoration: none; | |
| } | |
| } | |
| a:link { | |
| color:#474A54; | |
| } |
| # --- MINE --- | |
| # Proxy | |
| export http_proxy='http://xx.xx.xx.xx:3128' | |
| export https_proxy=$http_proxy | |
| export no_proxy='localhost,.foo.bar.com' | |
| # Java | |
| JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::") | |
| export JAVA_HOME |
allowed_users from console to anybody