This file contains hidden or 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 | |
urlBase='https://drive.google.com' | |
fCookie=tmpcookies | |
curl="curl -L -b $fCookie -c $fCookie" | |
confirm(){ | |
$curl "$1" | grep jfk-button-action | sed -e 's/.*jfk-button-action" href="\(\S*\)".*/\1/' -e 's/\&/\&/g' | |
} |
This file contains hidden or 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
<% | |
const Parser = require('sql-ddl-to-json-schema'); | |
const fs = require('fs'); | |
const [ sqlFileName ] = argv; | |
if( !sqlFileName ) throw new Error('SQL file not specified'); | |
const parser = new Parser('mysql'); | |
parser.feed( fs.readFileSync( sqlFileName, 'utf-8')); | |
const data = parser.toCompactJson(); |
This file contains hidden or 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 | |
export HISTFILE=$PWD/.bash_history | |
bash |
This file contains hidden or 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 | |
if [ -z "$1" ]; then | |
echo "Usage: gen-cert.sh <maindomain> [coma separated list of other domains]" | |
exit 1 | |
fi | |
DomainName="$1"; | |
moreDomains="$2"; |
This file contains hidden or 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
``` | |
python3 examples/image_ocr.py | |
Using TensorFlow backend. | |
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:541: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead. | |
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:4479: The name tf.truncated_normal is deprecated. Please use tf.random.truncated_normal instead. | |
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:4267: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead. | |
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:4432: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead. |
This file contains hidden or 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 | |
fonts_for_lang(){ | |
fc-list :lang=$1 | |
} | |
sshInTabs(){ | |
logins="$@" | |
for i in $logins; do |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
listProcessNameMib=.1.3.6.1.2.1.25.4.2.1.2 | |
listProcessArgsMib=.1.3.6.1.2.1.25.4.2.1.5 | |
snmpHost=$1 | |
snmpCommunity=$2 | |
shift | |
shift | |
processName=$@ |
This file contains hidden or 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 python2 | |
""" | |
This script will print package urls which need to be downloaded for 'distrubution upgrade' | |
Printed urls can be used for downloading packages in parallel. | |
For eg: we can use GNU parallel commanline tool along with wget/curl for parallel downloading | |
python2 zypper_dup_print_urls.py | parallel --tmuxpane -j4 --colsep ' ' mkdir -p '{1}/{2}' \; cd '{1}/{2}' \; wget -c {3} | |
will download packages with 4 simultaneous downloads | |
""" |