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
# numbers | |
if [ $var -ge 3 ]; then # >= 3 | |
if [ $var -gt 3 ]; then # > 3 | |
if [ $var -lt 3 ]; then # < 3 | |
if [ $var -le 3 ]; then # <= 3 | |
if [ $var -eq 3 ]; then # == 3 | |
# strings | |
if [ -z "$str" ]; then # if empty string | |
if [ "$str1" == "$str2" ]; then |
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
// ==UserScript== | |
// @name Jira: "Add comment" form above Activity panel | |
// @namespace https://github.com/phts/ | |
// @version 0.0.2 | |
// @description "Add comment" form above Activity panel on Jira issue page - convinient when sorting is set to "Newest first" | |
// @author Phil Tsaryk | |
// @match https://jira.willhillatlas.com/browse/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Jira: Fix Agile Wallboard Gadget content scroll | |
// @namespace https://github.com/phts/ | |
// @version 0.0.0 | |
// @description Fix Agile Wallboard Gadget content scroll | |
// @author Phil Tsaryk | |
// @match https://jira.willhillatlas.com/secure/Dashboard.jspa | |
// @match https://jira.willhillatlas.com/secure/MyJiraHome.jspa | |
// @grant none | |
// ==/UserScript== |
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
path/to/gource.exe -1280x720 --seconds-per-day 0.2 --date-format "%d %B %Y" -o gource.ppm path/to/repo | |
# avi | |
path/to/ffmpeg.exe -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 -preset medium -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.x264.mp4 | |
# webm | |
path/to/ffmpeg.exe -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libvpx -b:v 10000K gource.x264.webm |
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
{ | |
"accessor-pairs": "off", | |
"array-bracket-newline": "off", | |
"array-bracket-spacing": "off", | |
"array-callback-return": "off", | |
"array-element-newline": "off", | |
"arrow-body-style": "off", | |
"arrow-parens": "off", | |
"arrow-spacing": "off", | |
"block-scoped-var": "off", |
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
// ==UserScript== | |
// @name OLX up! | |
// @namespace https://github.com/phts/ | |
// @version 1.0.2 | |
// @author Phil Tsaryk | |
// @match https://www.olx.pl/mojolx/ | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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
// ==UserScript== | |
// @author Phil Tsaryk | |
// @description Automatically check available visits in Luxmed | |
// @grant none | |
// @match https://portalpacjenta.luxmed.pl/PatientPortal/Reservations/Reservation/* | |
// @name Luxmed live | |
// @namespace https://github.com/phts/ | |
// @version 1.1.1 | |
// ==/UserScript== |
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
// ==UserScript== | |
// @grant none | |
// @match https://baraholka.onliner.by/search.php?type=ufleamarket&id=* | |
// @name Onliner up! | |
// @namespace https://github.com/phts/ | |
// @version 1.0.1 | |
// ==/UserScript== | |
const $upBtn = $('.mass-up .btn-up-2-orange') | |
if ($upBtn.length) { |
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
// ==UserScript== | |
// @grant none | |
// @match https://catalog.onliner.by/* | |
// @name USD prices on Onliner catalog | |
// @namespace https://github.com/phts/ | |
// @version 1.0.2 | |
// ==/UserScript== | |
setTimeout(() => { | |
const rateText = $('.helpers_hide_desktop .js-currency-widget').text().replace(/[^0-9,]/g, '').replace(/,/g, '.') |
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
javascript:(function() { | |
let bodycontent = document.querySelectorAll('.bodycontainer')[0]; | |
bodycontent.childNodes[1].remove(); /* <hr> */ | |
bodycontent.childNodes[0].remove(); /* <table> with logo */ | |
let maincontent = document.querySelectorAll('.maincontent')[0]; | |
let table = maincontent.childNodes[2]; | |
maincontent.childNodes[1].remove(); /* <hr> */ | |
maincontent.childNodes[0].remove(); /* <table> with email title */ | |
NewerOlder