1.sh
:
#!/bin/sh
set -eux
rm -rf rubygems bundler
git clone https://github.com/rubygems/rubygems
git clone https://github.com/rubygems/bundler
As outlined here, there are a couple of situations where you may want/need to authenticate with GitHub by using an Access Token:-
In your GitHub account, go to Settings / Developer settings / Personal access tokens
and select Generate New Token
. Make a note of the token somewhere safe since this is the only chance you get to see it.
#! /usr/bin/env python | |
from base64 import b64decode | |
from github import Github | |
with open('access-token.txt') as token_file: | |
token = token_file.read().strip() | |
api = Github(token) | |
site = api.get_repo('nottrobin/gh-cms-example-site') |
// __tests__/funcs.spec.js | |
const funcs = require("../libs/funcs")() | |
describe('hello', () => { | |
it('should say hello', () => { | |
expect(funcs.hello()).toBe('world!') | |
}) | |
}) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw <PASSWORD> -restart -agent -privs -all |
https://medium.com/the-poli/react-native-effective-patterns-3e0c9db6c32c |
import org.codehaus.groovy.grails.plugins.codecs.Base64Codec | |
class PlistUtility { | |
static parseXmlPlistText(String text) { | |
def xml = new XmlParser().parseText(text) | |
assert xml.name() == "plist" | |
def parseNode | |
parseNode = { node -> |
KEYCHAIN="/Users/jenkins/Library/Keychains/login.keychain" | |
echo "Unlock keychain" | |
security unlock-keychain -p secure $KEYCHAIN | |
echo "Increase keychain unlock timeout" | |
security set-keychain-settings -lut 7200 $KEYCHAIN | |
echo "Add keychain to keychain-list" | |
security list-keychains -s $KEYCHAIN |