A Pen by Amando Filipe on CodePen.
This file contains hidden or 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
# Create function | |
CREATE OR REPLACE FUNCTION get_organization_id_by_user_id(p_user_id INTEGER) | |
RETURNS INTEGER AS $$ | |
DECLARE | |
v_organization_id INTEGER; | |
BEGIN | |
SELECT organization | |
INTO v_organization_id | |
FROM users | |
WHERE id = p_user_id; |
This file contains hidden or 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
$ docker system prune | |
This will remove: | |
- all stopped containers | |
- all volumes not used by at least one container | |
- all networks not used by at least one container | |
- all dangling images | |
As below, this is nuclear. | |
To clean your system, first remove containers |
This file contains hidden or 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/perl | |
# | |
# Title: Slider Revolution/Showbiz Pro shell upload exploit | |
# Author: Simo Ben youssef | |
# Contact: Simo_at_Morxploit_com | |
# Discovered: 15 October 2014 | |
# Coded: 15 October 2014 | |
# Updated: 25 November 2014 | |
# Published: 25 November 2014 | |
# MorXploit Research |
This file contains hidden or 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
/* Likely is caught by vote-spamming filters, | |
but it's just to feel better anyway, | |
just copy and paste the following into your console and press enter | |
*/ | |
var simulateClick = function (elem) { | |
var evt = new MouseEvent('click', { | |
bubbles: true, | |
cancelable: true, | |
view: window | |
}); |
This file contains hidden or 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 EMPTY = null; | |
const isEmpty = (node) => node === EMPTY; | |
const pair = (first, rest = EMPTY) => ({first, rest}); | |
const list = (...elements) => { | |
const [first, ...rest] = elements; | |
return elements.length === 0 | |
? EMPTY | |
: pair(first, list(...rest)) |
This file contains hidden or 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
$(window).scroll(function() { | |
if ($(this).scrollTop() > 0){ | |
$('body').addClass("header-detached"); | |
} else { | |
$('body').removeClass("header-detached"); | |
} | |
}); |