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 | |
$plain_password = 'password'; | |
$user_salt = ''; | |
$hash = sha1('#' . $user_salt . '#' . sha1($plain_password)); | |
echo $hash . "\n"; | |
?> |
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
/* | |
* Get the current URL of the selected Chrome tab. Call to getCurrent | |
* By Javier Santos | |
* https://gist.github.com/javiersantos/c3e9ae2adba72e898f99 | |
*/ | |
var currentURL; | |
chrome.tabs.query({'active': true, 'windowId': chrome.windows.WINDOW_ID_CURRENT}, | |
function(tabs){ |
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
/* | |
* Return the uppercase letters of a string. Useful to return an acronym. | |
* By Javier Santos | |
* https://gist.github.com/javiersantos/58b7aa21338082d6c850 | |
*/ | |
public String getUppercase(String str) { | |
String res = ""; | |
String[] split = str.split(" "); |
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 | |
/* | |
* Check if APC Module is installed | |
* By Javier Santos | |
* https://gist.github.com/javiersantos/575929cc9985d0195fc0 | |
*/ | |
if (extension_loaded('apc')) { | |
echo "true"; |
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 | |
echo "=============================================" | |
echo "== Telegram Script Installer v 0.1 ==" | |
echo "== ==" | |
echo "== by Jalcaldea ==" | |
echo "=============================================" | |
echo "Downloading necesary files..." |