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
| sudo su -l www-data -s /bin/bash -c "cd $PWD; composer install" |
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
| // Original script: https://gist.github.com/leodevbro/2987e8874a18b2086ea6cc1aa3c494e8 | |
| // v2.5 | |
| // Google Apps Script is a coding language based on JavaScript. | |
| // This Apps Script code helps us to sort addresses by most threads. | |
| // A thread is a group of messages, as a conversation. | |
| const modes = { | |
| inbox: "inbox", // to analyze threads in the "Inbox" folder | |
| outbox: "outbox", // to analyze threads in the "Sent" folder |
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
| ** This is a Test | |
| asfasdf asdf asdf asdf asdfa sdfa sdfas dfasdf | |
| * 1 | |
| * 2 | |
| - 3 | |
| - 4 |
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
| /** | |
| * Wrapper for easy cURLing | |
| * | |
| * @author Viliam Kopecký | |
| * | |
| * @param string HTTP method (GET|POST|PUT|DELETE) | |
| * @param string URI | |
| * @param mixed content for POST and PUT methods | |
| * @param array headers | |
| * @param array curl options |
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 | |
| # | |
| # PostgreSQL Backup Script Ver 1.0 | |
| # http://autopgsqlbackup.frozenpc.net | |
| # Copyright (c) 2005 Aaron Axelsen <[email protected]> | |
| # | |
| # This script is based of the AutoMySQLBackup Script Ver 2.2 | |
| # It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
| # | |
| # The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
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
| find ./templates/ -type d -exec rename 's/(.*)\/([^\/]*)/$1\/\u$2/' {} \; |
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/sh | |
| git --no-pager log -n 20 --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative |
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
| sudo amazon-linux-extras install epel -y | |
| sudo yum install epel-release -y | |
| sudo yum update -y | |
| sudo amazon-linux-extras install "php7.4" -y | |
| sudo yum install -y httpd php7.4 php-pgsql php-pdo_pgsql php-gd php-intl php-mbstring php-json git awscli certbot certbot-apache | |
| #open ports | |
| aws ec2 authorize-security-group-ingress --group-id sg-XXXXXXXXXXXXXXXXX --protocol tcp --port 80 --cidr 0.0.0.0/0 | |
| aws ec2 authorize-security-group-ingress --group-id sg-XXXXXXXXXXXXXXXXX --protocol tcp --port 443 --cidr 0.0.0.0/0 |
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 | |
| NONE='\033[00m' | |
| RED='\033[01;31m' | |
| GREEN='\033[01;32m' | |
| YELLOW='\033[01;33m' | |
| PURPLE='\033[01;35m' | |
| CYAN='\033[01;36m' | |
| WHITE='\033[01;37m' | |
| BOLD='\033[1m' |
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 os, re, sys | |
| emails = [] | |
| current_file = "" | |
| try: | |
| files = os.listdir("msgs") | |
| for f in files: | |
| current_file = f |