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
<?php | |
require_once("src/Google/Client.php"); | |
require_once("src/Google/Service/Storage.php"); | |
/** | |
* Connect to Google Cloud Storage API | |
*/ | |
$client = new Google_Client(); | |
$client->setApplicationName("App Name"); |
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
String packageName = "com.android.browser"; | |
String className = "com.android.browser.BrowserActivity"; | |
Intent intent = new Intent(Intent.ACTION_VIEW); | |
intent.addCategory(Intent.CATEGORY_LAUNCHER); | |
intent.setClassName(packageName, className); | |
intent.setData(Uri.parse("https://google.com")); | |
startActivity(intent); |
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://rootzwiki.com/topic/41985-enable-wifi-tether-through-adb/ | |
adb shell input keyevent 3 # home | |
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.Settings | |
adb shell input keyevent 20 # down | |
adb shell input keyevent 20 # down |
Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.
I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
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
license: gpl-3.0 | |
height: 960 | |
border: no |
An analysis of Censys Public Scan 20180807 (only port 22) to estimate the number of servers {potentially} vulnerable to the recent Libssh bug.
nssm.exe install SERVICE_NAME "C:\path\to\exe\or\bat\file.ext" "argument1 argument2"
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
<?php | |
/* | |
based on: http://stackoverflow.com/questions/7160899/websocket-client-in-php/16608429#16608429 | |
FIRST EXEC PYTHON SCRIPT TO GET HEADERS | |
*/ | |
$ws = new ws(array | |
( | |
'host' => '127.0.0.1', | |
'port' => 8080, |
- http://wiki.imacros.net/Command_Reference
- http://wiki.imacros.net/iMacros_for_Firefox#Javascript_Scripting_Interface
iMacros supports 3 types of variables
- The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro.
OlderNewer