Skip to content

Instantly share code, notes, and snippets.

View tdiprima's full-sized avatar

Tammy DiPrima tdiprima

View GitHub Profile
@zenglian
zenglian / cisco-anyconnect-auto-login.md
Last active February 6, 2024 13:28
auto login with cisco anyconnect (password saved, silent mode)

Cisco AnyConnect: auto login in silent mode

This gist is for Linux. For windows is the same thing.

Connect

create a file .login_info as below:

connect your.server.url    
usernanme 
@mjackson
mjackson / fetchJSON.js
Created February 23, 2016 22:23
fetch JSON with a callback
function fetchJSON(url, options, callback) {
if (typeof options === 'function') {
callback = options
options = {}
}
options = options || {}
const headers = (options.headers || (options.headers = {}))
headers.Accept = 'application/json'
@jay-johnson
jay-johnson / example .travis.yml
Created November 27, 2015 07:44
example .travis.yml
sudo: required
language: ruby
services:
- docker
before_install:
- echo "Testing Docker Hub credentials"
- docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD
@helhum
helhum / git-search-commit-message
Created September 12, 2014 15:06
Git command to show (remote) branches and tags that contain a commit with a specified commit message
#!/bin/bash
function search-branches() {
for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1`
do
git branch -r --contains $sha1
done
}
function search-tags() {
for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1`
do