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
{ | |
"name": "PopUpSmart - Ghost Member", | |
"flow": [ | |
{ | |
"id": 1, | |
"module": "gateway:CustomWebHook", | |
"version": 1, | |
"parameters": { | |
"hook": 909090, | |
"maxResults": 1 |
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
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
# Ghost on port 2368 | |
proxy_pass http://127.0.0.1:2368; | |
# Multiple replacements |
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
YouTube IFRAME embed for faster page loads in privacy enhanced mode | |
https://magnushelander.se/youtube-no-cookies-embed-privacy/ |
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
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
# Native Instruments :: Traktor Audio 2 ALSA Configuration | |
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
# | |
# Device Channels Ports | |
# ------ -------- ----- | |
# TraktorAudio2ChannelA 2 12xx | |
# TraktorAudio2ChannelA 2 xx34 | |
# | |
# TraktorAudio2ChannelAB 4 1234 |
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 | |
# Pipe clipboard to pandoc and pipe the DokuWiki markup back to clipboard | |
xclip -o -selection clipboard | pandoc -f html -t dokuwiki | xclip -selection clipboard | |
# Display first five non-blank lines from clipboard cut to one hundred characters in the confirmation dialog | |
result=$(xclip -o -selection clipboard | tr -s '\n' '\n' | head -n 5 | cut -c -100 ) | |
# Info box with preview of clipboard contents | |
zenity --info --title="HTML to Dokuwiki markup" --text="Clipboard preview: \n\n $result" --width=300 --height=100 |
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
# Save this file to ~/.local/share/Thunar/sendto/ | |
[Desktop Entry] | |
Type=Application | |
Version=1.0 | |
Encoding=UTF-8 | |
TryExec=webimage.sh | |
Exec=webimage.sh %F | |
Icon=dialog-information | |
Name=Web image optimizer | |
MimeType=image/jpeg;image/png; |
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 | |
for f in $@ #can be list of files | |
do | |
imagename=$(echo "$f" | cut -f 1 -d '.') | |
imagetype=$(echo "$f" | cut -f 2 -d '.') | |
outfile=$imagename"-web."$imagetype | |
if [ "$imagetype" = "png" ] | |
then #it's a PNG | |
gm convert $f -resize 1200 -enhance +profile "*" $outfile |