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
tee|tr " " "\n"|sed '1d'|sed '1~2d'|xargs -I% sh -c 'q=$(echo %|grep -o .|uniq -c|sort -nr);p=$(echo $q|grep -o "^\w*\b");printf $p" ";echo $q|grep -oP "$p\s(.)"|uniq|sort|awk {"print\$2"} ORS="";echo""' |
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
version: '3' | |
services: | |
drone-server: | |
image: drone/drone:1 | |
container_name: drone | |
ports: | |
- "80:80" | |
restart: always | |
environment: |
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
version: '3' | |
services: | |
drone-server: | |
image: drone/drone:1 | |
container_name: drone | |
ports: | |
- "80:80" | |
restart: always | |
environment: |
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
kind: pipeline | |
name: build-release | |
steps: | |
- name: publish | |
image: plugins/ecr | |
settings: | |
access_key: | |
from_secret: aws_access_key_id | |
environment: |
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
(() => { | |
// | |
// GLOBAL VARS AND CONFIGS | |
// | |
var lastMessageOnChat = false; | |
var ignoreLastMsg = {}; | |
var elementConfig = { | |
"chats": [1, 0, 5, 2, 0, 3, 0, 0, 0], | |
"chat_icons": [0, 0, 1, 1, 1, 0], | |
"chat_title": [0, 0, 1, 0, 0, 0, 0], |
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
# Update system packages | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Docker Installation | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce | |
sudo apt install docker-compose |
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
You are wasting your time here. You will not find the solution here. |
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
import smtplib | |
import email.utils | |
from email.mime.text import MIMEText | |
# Create the message | |
msg = MIMEText('This is the body of the message.') | |
msg['To'] = email.utils.formataddr(('Recipient', '[email protected]')) | |
msg['From'] = email.utils.formataddr(('Author', '[email protected]')) | |
msg['Subject'] = 'Simple test message' |
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
<?php | |
// parameters | |
$hubVerifyToken = 'TOKEN123456abcd'; | |
$accessToken = "xxx"; | |
// check token at setup | |
if ($_REQUEST['hub_verify_token'] === $hubVerifyToken) { | |
echo $_REQUEST['hub_challenge']; | |
exit; | |
} |