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
<script type="text/javascript"> | |
function functionName() { | |
var url = "pathToFileToDownload.extention"; | |
window.open(url, 'Download');} | |
</script> |
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
/\(?[2-9][0-8][0-9]\)?[-. ]?[0-9]{3}[-. ]?[0-9]{4}/ |
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
<?php | |
function haha() | |
{ | |
$a = uniqid(); | |
$b = sha1(uniqid()); | |
$c = md5(uniqid()); | |
$d = $a . $b . $c; | |
return $d; | |
} | |
echo haha(); |
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
Get Country | |
----------- | |
<?php | |
$country = file_get_contents('http://api.hostip.info/country.php?ip='.$_SERVER['REMOTE_ADDR']); | |
echo $country; //Remove this line | |
?> |
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
::-webkit-scrollbar | |
{ | |
width: 12px; /* for vertical scrollbars */ | |
height: 12px; /* for horizontal scrollbars */ | |
} | |
::-webkit-scrollbar-track | |
{ | |
background: rgba(0, 0, 0, 0.1); | |
} |
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
function init() { | |
var n = 0; | |
e = document.getElementById("output"); | |
setInterval(function() { e.innerHTML = ++n; }, 1000); | |
} | |
window.onload = init; |
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
'Does not have to be hardcoded like below, can be pulled from a text box or something | |
Dim strPostURL = "http://www.google.com" | |
AddText("URL TO POST: " + strPostURL) | |
Dim requestStream As Stream = Nothing | |
Dim fileStream As FileStream = Nothing | |
Dim uploadResponse As Net.HttpWebResponse = Nothing | |
Try |
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
If e.KeyChar = Convert.ToChar(1) Then | |
DirectCast(sender, TextBox).SelectAll() | |
e.Handled = True | |
End If |
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
Dim FileToDelete As String | |
FileToDelete = "file to delete" | |
If System.IO.File.Exists( FileToDelete ) = True Then | |
System.IO.File.Delete( FileToDelete ) | |
MsgBox("File Deleted") | |
End If |
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
Imports System.Security.Cryptography | |
Imports System.Text | |
Module mod_Globals | |
Public EncryptionKey As String = "justsomewordstobeusedasacryptionkey" | |
Public Function EncryptString128Bit(ByVal vstrTextToBeEncrypted As | |
String, ByVal vstrEncryptionKey As String) As String |