This text is italic
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 | |
# https://www.exploit-db.com/exploits/49520 | |
// default credentials | |
$admin_username = "admin"; | |
$admin_password = "Test@12345"; | |
$user_email = "test@gmail.com"; | |
$user_password = "Test@123"; |
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
#!/usr/bin/python | |
# Generate 2 linear equations in 2 variables and their solutions | |
# restrictions: a,b,c,d = positive integeers [1,9] | |
# matrix: | |
#| a b || x | = | e | | |
#| c d || y | | f | | |
from fractions import Fraction | |
from random import randint |
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://filter/convert.iconv.utf-8.utf-16/resource=$FILE | |
php://filter/convert.base64-encode/resource=$FILE | |
/etc/passwd | |
/proc/self/environ |
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
import java.util.Scanner; | |
public class Shop { | |
public static void main(String[] args) | |
{ | |
Scanner input = new Scanner(System.in); | |
Float total_price = new Float("0.00"); | |
String category = new String(""); | |
String code = new String(""); | |
Integer quantity = new Integer("0"); |
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
# YAML cheat sheet | |
# Reference: https://www.youtube.com/watch?v=cdLNKUoMc6c | |
# object | |
person: | |
# string value. single/double quotes | |
# anchoring | |
name: &name "daniel" # anchor name doesn't have to be the same as key name | |
occupation: 'student' |
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 | |
/** | |
* MyNakal Link Generator | |
* | |
* Feed it a (MyNakal) video link, and it will give out | |
* the direct video link (.mp4, .3gp, etc) | |
* This script was written in 2014 and it most likely does not work anymore | |
* This script is uploaded here for academic purposes | |
* No harm was intended during the writing of this script | |
* Use it at your own risk |
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 human_to_dog_years($human_age) { | |
if (!$human_age || $human_age < 0) { | |
throw new InvalidArgumentException('Only positive input is accepted!'); | |
} | |
$firstTwoHumanYear = 10.5; // 10.5 dog years | |
$oneHumanYear = $firstTwoHumanYear / 2; // 5.25 dog years |
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
// run in developer console | |
var resultset = document.getElementById('results'); | |
var children = resultset.children; | |
var output = new Array(); | |
for(var i = 1; i<children.length; i++){ | |
var c = children.item(i); | |
output.push('http://'+c.children[0].innerHTML); | |
} |