Skip to content

Instantly share code, notes, and snippets.

PermitRootLogin no
UsePAM no
PasswordAuthentication no
ChallengeResponseAuthentication no
# disable ipv6 at all
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1
javascript: (function() {
var tn = window.prompt("Enter Czech Post tracking number:");
if (input) {
window.location.href = 'https://www.postaonline.cz/trackandtrace/-/zasilka/cislo?parcelNumbers=' + tn;
}
})();
@midlan
midlan / beta_bookmarklet_jump_to_jira_issue.js
Last active September 11, 2019 14:40
Bookmarklet to jump on JIRA issue in new tab. Make sure, you put your's JIRA workspace name.
javascript: (function() {
new Promise(setIssue => {
var issueCode = prompt('Issue code:').trim();
if (issueCode) { setIssue(issueCode); }
}).then(issueCode => {
window.open('https://<YOUR JIRA WORKSPACE>.atlassian.net/browse/' + issueCode);
});
})();
@midlan
midlan / download_adminer.sh
Last active July 13, 2020 08:40
Download latest adminer-mysql-en.php
wget -q -O - https://api.github.com/repos/vrana/adminer/releases/latest | jq -r '.assets[] | select((.name | endswith("-mysql-en.php")) and (.name | startswith("adminer"))) | .browser_download_url' | xargs wget -q -O - > adminer.php
@midlan
midlan / bookmarklet_jump_to_jira_issue.js
Last active January 27, 2022 08:18
Bookmarklet to jump on JIRA issue in current tab. Make sure, you put your's JIRA workspace name.
javascript: (function() {
var issueCode = prompt('Issue code:');
if (issueCode) {
var url = 'https://<YOUR JIRA WORKSPACE>.atlassian.net/browse/' + issueCode.trim();
window.location.href = url; /*redirect*/
console.log('JIRA opened URL:', url);
}
@midlan
midlan / bookmarklet_inject_script_to_page.js
Last active February 16, 2024 13:32
Bookmarklet to inject script by url to page, e.g. jquery.
javascript: (function() {
var url = prompt('URL of script to inject:', 'https://code.jquery.com/jquery-3.4.1.min.js');
if (url) {
console.log('Script inject request URL:', url);
var script = document.createElement('script');
script.src = url;
@midlan
midlan / instagram_high_resolution.css
Created December 30, 2018 15:30
Shows instagram images in higher resolution.
/* width of posts on homepage */
.cGcGK {
max-width: initial !important;
}
/* right menu margin on homepage */
.COOzN {
right: -321px !important;
}
# install basic linux network tools
apt-get install netbase
apt-get install whois
apt-get install dnsutils #dig
apt-get install curl