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/sh | |
# Detected container limits | |
# If found these are exposed as the following environment variables: | |
# | |
# - CONTAINER_MAX_MEMORY | |
# - CONTAINER_CORE_LIMIT | |
# | |
# This script is meant to be sourced. |
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
# update/crete file on location /etc/dhcp/dhclient.conf | |
# replace 127.0.0.1 with your dns to prepend with | |
prepend domain-name-servers 127.0.0.1; |
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
import android.database.Cursor; | |
import android.support.annotation.NonNull; | |
import com.raizlabs.android.dbflow.runtime.DBTransactionInfo; | |
import com.raizlabs.android.dbflow.runtime.TransactionManager; | |
import com.raizlabs.android.dbflow.runtime.transaction.BaseTransaction; | |
import com.raizlabs.android.dbflow.runtime.transaction.QueryTransaction; | |
import com.raizlabs.android.dbflow.runtime.transaction.TransactionListener; | |
import com.raizlabs.android.dbflow.sql.builder.ConditionQueryBuilder; | |
import com.raizlabs.android.dbflow.sql.language.Delete; |
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
{ | |
"name": "kibana-server", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node server.js" | |
}, | |
"dependencies": { | |
"express": "3.4.4" | |
} |
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
{ | |
"_default_": { | |
"properties": { | |
"my_hash_field": { | |
"type" : "string", | |
"index" : "not_analyzed" | |
} | |
} | |
} | |
} |
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
-z: Compress archive using gzip program | |
-c: Create archive | |
-v: Verbose i.e display progress while creating archive | |
-f: Archive File name | |
(this creates archive) | |
tar -zcvf archive_name.tar.gz /home/tom/and/jerry/ | |
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
{ | |
"msg" : "This is gist connection test" | |
} |
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 | |
openssl genrsa -des3 -out ca.key 4096 && \ | |
echo "CA key generated, file ca.key. Now retype password to create cert" && \ | |
openssl req -new -x509 -days 730 -key ca.key -out ca.crt && \ | |
echo "CA cert generated, file: ca.crt" |
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
git config --global url."https://".insteadOf git:// |
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 | |
func_check_for_root() { | |
if [ ! $( id -u ) -eq 0 ]; then | |
echo "ERROR: $0 Must be run as root, Script terminating" ;exit 7 | |
fi | |
} | |
func_check_for_root | |
cat <<_EOF_ | sudo tee /etc/profile.d/bash_unlimited_history.sh |