// jQuery
$(document).ready(function() {
// code
})
This file contains 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(){window.API.on(window.API.HISTORY_UPDATE,function(){setTimeout(function(){window.jQuery("#woot").click();},1000);});window.onbeforeunload=function(){window.API.off(window.API.HISTORY_UPDATE);};}()); |
This file contains 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
#!/bin/bash | |
web_service='nginx' | |
FILES=/usr/local/etc/letsencrypt/*.ini | |
for f in $FILES | |
do | |
echo "Renewing for $f file..." | |
config_file="$f" |
This file contains 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
#!/bin/bash | |
##### | |
# Created by PMK | |
# https://github.com/PMK | |
# | |
# License: Public Domain | |
# | |
# Creates a tar archive of the current active profile of Mozilla Firefox. | |
# The profile contains sessions, addons, bookmarks and history. |
This file contains 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
<!DOCTYPE html> | |
<html><head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>SVG Helper Tool</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<p>click and drag on the canvas ... you're making a polygon ... <button id="reset">reset</button><button id="undo">undo</button></p> | |
<canvas id="x" width="500" height="500" style="border: 1px solid black;"></canvas> |
This file contains 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
#!/bin/bash | |
function convertMp4ToMp3 { faad -q -w -f 2 "$1" | lame --quiet -r -h -b 320 - "${1%.mp4}.mp3"; } |
This file contains 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
// Creates a "negative border-radius" | |
// | |
// Author: PMK | |
// License: MIT | |
@mixin negative-border-radius($color: #000, $contrast: transparent, $position: all, $size: 1rem) { | |
background-repeat: no-repeat; | |
@if $position == all { | |
background: | |
radial-gradient(circle at 0 100%, $contrast $size, $color $size), |
This file contains 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
RED=`tput setaf 1` | |
GREEN=`tput setaf 2` | |
NC=`tput sgr0` | |
for hostnameFile in $(find ~/umbrel/tor/data/app* -name 'hostname' | sort) ; do | |
APPNAME=$(echo ${hostnameFile} | cut -d/ -f 7-7) | |
HOSTNAME=$(cat ${hostnameFile}) | |
printf "%-40s" ${RED}${APPNAME} | |
printf "%s" ${GREEN}${HOSTNAME} | |
printf "${NC}\n" |