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
#!/bin/bash | |
# Generate a Github Personal Access token and use it here | |
API_TOKEN="<YOUR GITHUB TOKEN>" | |
#Update the URL Below | |
GITHUB_URL="https://api.github.com/repos/<USER NAME>/<REPO NAME>" | |
# Getting the Base64 for your image |
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
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; | |
import org.aspectj.lang.reflect.MethodSignature; | |
import org.springframework.stereotype.Component; | |
import org.springframework.util.StopWatch; | |
import java.io.DataOutputStream; | |
import java.net.HttpURLConnection; | |
import java.net.URL; |
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
var messageContent = ""; | |
if(msg.payload.includes ("playing")) { | |
messageContent = "Now Playing on PLEX: " + msg.session.title + " (" + msg.session.year + ")"; | |
} else if(msg.payload.includes ("stopped")) { | |
messageContent = "Stopped Playing on PLEX: " + msg.session.title + " (" + msg.session.year + ")"; | |
} | |
if(msg.payload.includes ("playing")) { |
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
#!/bin/bash | |
TOKEN="<BOT_TOKEN>" | |
ID="<GROUP_CHAT_ID>" | |
URL="https://api.telegram.org/bot$TOKEN/sendMessage" | |
if [ "$PAM_TYPE" != "open_session" ] | |
then | |
exit 0 | |
else |
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
#Install Postgres Database | |
docker run -d --name kong-database \ | |
-p 5432:5432 \ | |
-e "POSTGRES_USER=kong" \ | |
-e "POSTGRES_DB=kong" \ | |
-e "POSTGRES_PASSWORD=kong" \ | |
postgres:9.6 | |
# DB Migration | |
docker run --rm \ |
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
#!/bin/bash | |
# Author: Amith Chandrappa | |
# Usage | |
# Options: | |
# -t: To Emails, Separated by ";" | |
# -c: CC Emails, Separated by ";" | |
# -b: BCC Emails, Separated by ";" | |
# -s: Subject | |
# -o: Email body |