# Example 1 - Update current query's `tab` value
Starting URL: https://github.com/justsml?tab=repositories
Transform W/: {tab: 'activity'}
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
/* | |
Credit and Source: https://www.owasp.org/index.php/OWASP_Validation_Regex_Repository | |
*/ | |
'use strict'; | |
module.exports = { | |
url: /^((((https?|ftps?|gopher|telnet|nntp):\/\/)|(mailto:|news:))(%[0-9A-Fa-f]{2}|[-()_.!~*';\/?:@&=+$,A-Za-z0-9])+)([).!';\/?:,][[:blank:]])?$/, | |
ip: /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, | |
email: /^[a-zA-Z0-9+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/, | |
safeText: /^[a-zA-Z0-9 .-]+$/, | |
date: /^(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{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
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold |
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 | |
/* | |
bcrypt class for PHP 5.3 and above. | |
An implentation by Marco Arment. | |
It uses Blowfish hashing. | |
Simplified by David Gasperoni <mcdado@gmail.com>. | |
Forked from Marco Arment <me@marco.org>. | |
This code is released in the public domain. |
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 | |
apt-get install -y unhide lsof file sudo | |
sleep 2s | |
cd ~/ | |
wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.2/rkhunter-1.4.2.tar.gz | |
tar xzvf rkhunter-1.4.2.tar.gz | |
cd rkhunter-1.4.2 | |
sudo ./installer.sh --install | |
rkhunter --update | |
rkhunter --propupd |
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
[push] | |
default = current | |
[alias] | |
# short aliases | |
me = config user.name | |
co = checkout | |
ci = commit | |
br = branch | |
rso = remote show origin | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cred\\ [%cn]" --decorate |
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
/** | |
* Key Value Helpers | |
* Features QueryString & Hash Helper Utils | |
* API for `QS` & `Hash` inspired by the `JSON` browser API. | |
* | |
* Implements `parse` & `stringify` | |
* | |
* JSON.stringify({ foo: 'bar' }) | |
* -> '{"foo":"bar"}' | |
* QS.stringify({ foo: 'bar' }) |
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 EventEmitter = require('events'); | |
class Eventry extends EventEmitter { | |
constructor(type = 'none', ...args) { | |
super(args); | |
this.type = type; | |
} | |
// overload .on and .emit func to | |
// support special event syntax | |
on(ev, fn) { |
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 | |
for f in *.css; do | |
echo $f ${f/.css/.scss}; | |
curl -s -X POST http://css2sass.heroku.com/xml --data-urlencode "page[css]@$f" -d commit="Convert 2 SCSS" | xmlstarlet sel -t -v /page/sass | xmlstarlet unesc > ${f/.css/.scss}; | |
done |
OlderNewer