Skip to content

Instantly share code, notes, and snippets.

@midlan
midlan / beta_bookmarklet_jump_to_jira_issue.js
Last active Sep 11, 2019
Bookmarklet to jump on JIRA issue in new tab. Make sure, you put your's JIRA workspace name.
View beta_bookmarklet_jump_to_jira_issue.js
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 Jul 13, 2020
Download latest adminer-mysql-en.php
View download_adminer.sh
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 Sep 11, 2019
Bookmarklet to jump on JIRA issue in current tab. Make sure, you put your's JIRA workspace name.
View bookmarklet_jump_to_jira_issue.js
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 Jul 15, 2021
Bookmarklet to inject script by url to page, e.g. jquery.
View bookmarklet_inject_script_to_page.js
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 Dec 30, 2018
Shows instagram images in higher resolution.
View instagram_high_resolution.css
/* width of posts on homepage */
.cGcGK {
max-width: initial !important;
}
/* right menu margin on homepage */
.COOzN {
right: -321px !important;
}
View linux-network-tools.sh
# install basic linux network tools
apt-get install netbase
apt-get install whois
apt-get install dnsutils
apt-get install curl