Skip to content

Instantly share code, notes, and snippets.

View Raz0rwire's full-sized avatar

Kevin Hoogerwerf Raz0rwire

View GitHub Profile

Keybase proof

I hereby claim:

  • I am raz0rwire on github.
  • I am kevinh (https://keybase.io/kevinh) on keybase.
  • I have a public key whose fingerprint is 264D 7BFF 3B3D 1926 1C91 7AB3 D858 783B FE5F 9795

To claim this, I am signing this object:

@Raz0rwire
Raz0rwire / gief.sh
Last active February 17, 2016 12:31
Bash/Zsh alias for GiefIP.com
gief(){
if [ $# -eq 0 ];
then
wget http://giefip.com -qO -
else
wget http://giefip.com/$1 -qO -
fi
echo ""
}
<script>
(function() {
var style_tag = document.createElement('style');
var rules = [
'.mc-modal{ top: 150px !important;',
'.mc-closeModal{ line-height: 17px; width: 30px; height: 30px; overflow:visible; color: rgba(0,0,0,0); top: 0px; right:0px; z-index:1000;}',
'.mc-closeModal:before{ transition:all 0.3s; width: 20px; height: 2px; background-color: rgba(0,0,0,0.7); content: ""; display:block; top: 19px; transform:rotate(45deg); -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); position:relative; }',
'.mc-closeModal:after{ transition:all 0.3s; width: 20px; height: 2px; background-color: rgba(0,0,0,0.7); content: ""; display:block; transform:rotate(-45deg); -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); }',
'.mc-closeModal:hover:before, .mc-closeModal:hover:after{ background-color: rgba(0,0,0,1); }'
(function() {
var style_tag = document.createElement('style');
var rules = [
'.mc-modal{ top: 150px !important;',
'.mc-closeModal{ line-height: 17px; width: 30px; height: 30px; overflow:visible; color: rgba(0,0,0,0); top: 0px; right:0px; z-index:1000;}',
'.mc-closeModal:before{ transition:all 0.3s; width: 20px; height: 2px; background-color: rgba(0,0,0,0.7); content: ""; display:block; top: 19px; transform:rotate(45deg); -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); position:relative; }',
'.mc-closeModal:after{ transition:all 0.3s; width: 20px; height: 2px; background-color: rgba(0,0,0,0.7); content: ""; display:block; transform:rotate(-45deg); -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); }',
'.mc-closeModal:hover:before, .mc-closeModal:hover:after{ background-color: rgba(0,0,0,1); }'
];
<!DOCTYPE html>
<html>
<head>
<script>
var DINST = 'your-api-key-here-in-reverse-order';
</script>
<script src="https://api.dinst.nl/js/v1/widgets.js" type="text/javascript"></script>
</head>
<body>
<div class="dinst-widget" data-dinst-type="average" data-dinst-profile-id="360"></div>
@Raz0rwire
Raz0rwire / remove-empty-html-elements.js
Last active September 30, 2015 09:41
Replace all empty HTML Elements from string with Javascript, matching elements only :)
//Nested empty elements will need some iterating to clear those out
function removeEmtpyElements(str, iterations){
var re = /<([A-z]+)([^>^/]*)>\s*<\/\1>/gim;
var subst = '';
for(var i = 0; i < iterations; i++){
str = str.replace(re, subst);
}
@Raz0rwire
Raz0rwire / ElasticSearch.sh
Last active August 29, 2015 14:28 — forked from ricardo-rossi/ElasticSearch.sh
Installing ElasticSearch on Ubuntu 14.04
### USAGE
###
### ./ElasticSearch.sh 1.5.0 will install Elasticsearch 1.5.0
### ./ElasticSearch.sh 1.4.4 will install Elasticsearch 1.4.4
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
### ElasticSearch version