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
mkdir -p /synology/tarballs | |
cd /synology/tarballs | |
wget https://global.synologydownload.com/download/ToolChain/toolkit/7.1/base/base_env-7.1.txz | |
wget https://global.synologydownload.com/download/ToolChain/toolkit/7.1/apollolake/ds.apollolake-7.1.dev.txz | |
wget https://global.synologydownload.com/download/ToolChain/toolkit/7.1/apollolake/ds.apollolake-7.1.env.txz | |
wget https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/7.1.1-42962/apollolake/linux-4.4.x.txz | |
mkdir /synology/env | |
cd /synology/env |
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
// Usage: casperjs --ssl-protocol=any --engine=slimerjs paypal.js | |
// Open in browser: http://localhost:8083/get | |
var email = '', | |
password = ''; | |
var casper = require('casper').create({ | |
verbose: true, | |
logLevel: "debug" | |
}), |
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
Set objFSO = CreateObject("Scripting.FileSystemObject") | |
Set deviceNamesTextFile = objFSO.OpenTextFile("devices.txt", 1) | |
ReDim deviceNames(1) | |
Do Until deviceNamesTextFile.AtEndOfStream | |
deviceNames(UBound(deviceNames) - 1) = deviceNamesTextFile.ReadLine | |
ReDim Preserve deviceNames(UBound(deviceNames) + 1) | |
Loop | |
deviceNamesTextFile.Close |
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 | |
# | |
# Author: Mike Herwig | |
# Description: | |
# Copy a folder to another using tar. | |
# This way you can easily (one-way) synchronize whole folders and exclude files e.g. .metadata | |
# | |
# Usage: | |
# tarcp ~/directory1" "~/directory2 |
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 | |
# | |
# Author: Mike Herwig | |
# Description: | |
# Updated voice control demonstration using google's speech-api | |
# The main difference to the previous script I uploaded to my Gist is that it's using sox for recording now | |
# and only records your voice to the disc when sox detects sound | |
# Dependencies: sox, wget | |
LANG="en" |
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
HttpImage Listener (Android): | |
You can send images via cURL to an android device running HttpImage Listener: | |
e.g.: curl -F [email protected] http://192.168.0.2 | |
The follwoing options are available: | |
nohandler=true just save image, don't display | |
customapp=true let's you choose the app for handling the image | |
e.g: curl -d nohandler=true -F [email protected] http://192.168.0.2 |
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 | |
# Author: Mike Herwig | |
# Version: v12.8-24 | |
# Beschreibung: Assistent for copying easily content from a selected directory to several selected USB-devices in few steps. | |
# | |
# Edited by Kai Jansen | |
# Added unmountFinishedSticks and getSudo Function | |
# | |
# Translation (for github:gist) by Mike Herwig |
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 | |
# | |
# Author: Mike Herwig | |
# Description: | |
# Shell script for counting the total physical source lines of code (LOC) | |
# | |
# example: ./LOC.sh java h cpp xml | |
ARG_COUNT=1 |