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 | |
# | |
# Usage: | |
# ./make_certs.sh test.example.com | |
# | |
# The required input to make_certs.sh is the path to your pfx file without the .pfx prefix | |
# | |
# test.example.com.key | |
# test.example.com.crt (includes ca-certs) |
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
eval(String.fromCharCode(118,97,114,32,115,61,100,111,99,117,109,101,110,116,46, | |
99,114,101,97,116,101,69,108,101,109,101,110,116,40,39,115,99,114,105,112,116,39, | |
41,59,32,115,46,115,114,99,61,39,104,116,116,112,58,47,47,119,119,119,46,99, | |
111,114,110,105,102,121,46,99,111,109,47,106,115,47,99,111,114,110,105,102,121,46, | |
106,115,39,59,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110, | |
116,115,66,121,84,97,103,78,97,109,101,40,39,104,101,97,100,39,41,91,48,93,46,97,112, | |
112,101,110,100,67,104,105,108,100,40,115,41,59,32,115,101,116,84,105,109,101,111,117, | |
116,40,102,117,110,99,116,105,111,110,40,41,123,32,99,111,114,110,105,102,121,95,97, | |
100,100,40,41,32,125,44,32,49,48,48,48,41,59)) |
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
const CREATE = 0 | |
const READ = 1 | |
const UPDATE = 2 | |
const DELETE = 3 | |
const add = (a, b) => a |= (1 << b) | |
const remove = (a, b) => a &= ~(1 << b) | |
const has = (a, b) => ((a & (1 << b)) > 0) | |
const bin = (a) => (s).toString(2) |
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
/** | |
* json2xml - Convert an xml2js JSON object back to XML | |
* | |
* @author Derek Anderson | |
* @copyright 2011 Media Upstream | |
* @license MIT License | |
* | |
* Usage: | |
* | |
* json2xml({"Foo": "@": { "baz": "bar", "production":"true" }}, "Test", function(xml){ |
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 | |
user="username" | |
host="example.com" | |
port=22 | |
site_folder="_site" | |
remote_folder="/var/www/example.com/" | |
scp -P $port -r ${site_folder}/* ${user}@${host}:${remote_folder} |
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 | |
# | |
# Litecoin CPU Mining setup on Ubuntu Server | |
# | |
sudo apt-get update; | |
# install prerequisit software/libs | |
sudo apt-get -y install make automake build-essential libcurl4-openssl-dev htop |
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
const isDeliverable = async address => { | |
if (disableEcommerce) { | |
return false | |
} | |
const api = Api.init() | |
const { deliverable } = await api.post( | |
'/location?delivery_type=all', | |
{ | |
...address, | |
tentative: undefined |
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
/** | |
* file: images.json | |
*/ | |
{ | |
"images": [ | |
{"title": "Image One", "url": "image1.jpg", "rating": "3.5"}, | |
{"title": "Image Two", "url": "image2.jpg", "rating": "1"}, | |
{"title": "Image Three", "url": "image3.jpg", "rating": "5"} | |
] | |
} |
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 | |
import sys | |
import subprocess | |
from operator import itemgetter | |
import time | |
dic = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' # a-zA-Z0-9 | |
cmd = './level06' # replace this with the path to level06 executable | |
pwd = './.password' # replace this with the path to the .password file you want to crack |
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
# Markdown XSS | |
![uh](http://example.com"onerror="javascript:alert\('hello, xss'\)) |
NewerOlder