This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
dconnect() { | |
############################################### | |
# This script will let you chose which docker container to exec into | |
# | |
# Original idea and concept by hernandito | |
# DockerList by bonienl | |
# URL: https://raw.githubusercontent.com/Data-Monkey/unRAID/master/tools/DockerSelector.sh | |
################################################ | |
clear |
This file contains 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
http://host:port/oak:index.tidy.-1.json |
This file contains 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
Windows - Change Java version per batch command | |
Put these batch files in one of the PATH folders. | |
I usually put the %userprofile% in the path and place the BAT files there. | |
To change the JAVA version, type e.g."jdk 1.6". |
This file contains 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
HTTP: | |
----- | |
http://localhost:4502/system/console/status-slinglogs/configuration-status.zip | |
Curl: | |
----- | |
curl -u admin:admin -O -J http://localhost:4504/system/console/status-slinglogs/configuration-status.zip |
This file contains 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
GCOPT="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:${CURR_DIR}/logs/gc_`date +%Y%m%d-%H%M%S`.log" | |
java $CQ_JVM_OPTS $GCOPT -jar $CURR_DIR/$CQ_JARFILE $START_OPTS & | |
echo $! > $CURR_DIR/conf/cq.pid |
This file contains 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
FOR /F "usebackq" %%a in (`DIR /s /b *.zip`) do 7z.exe e %%a |
This file contains 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 bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-08-25 | |
# | |
# _______________| httpstatus : get HTTP status code | |
# | |
# Usage: httpstatus URL [timeout] [--code or --status] [see 4.] | |
# ^message with code (default) | |
# ^code (numeric only) | |
# ^in secs (default: 3) | |
# ^URL without "http://" prefix works fine. |
This file contains 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 | |
# first grab all dependencies | |
mvn dependency:resolve >/dev/null | |
# then list them with -o to keep noise low, | |
# remove extra information and duplicates | |
mvn -o dependency:list \ | |
| grep ":.*:.*:.*" \ | |
| cut -d] -f2- \ | |
| sed 's/:[a-z]*$//g' \ |
OlderNewer