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 pysftp | |
import paramiko | |
# SSH jump server details | |
jump_server_host = '<host>' | |
jump_server_username = '<user>' | |
jump_server_password = '<password>' | |
# SFTP server details | |
sftp_server_host = '<host>' |
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 paramiko | |
# SSH jump server details | |
jump_server_host = '<host>' | |
jump_server_username = '<user>' | |
jump_server_password = '<password>' | |
# SFTP server details | |
sftp_server_host = '<host>' | |
sftp_server_username = '<user>' |
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
git diff --name-only --cached | xargs -L1 dirname | cut -d '/' -f-2 | uniq | grep "/." |
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
function change_expired_users_role() | |
{ | |
$args = array( | |
'role' => 'member_trial', | |
); | |
$users = get_users($args); | |
if (empty($users)) | |
return; |
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
version: '3.5' | |
services: | |
db: | |
container_name: db | |
image: mariadb:latest | |
volumes: | |
- ./run/var:/var/lib/mysql | |
- ./run/dump/:/docker-entrypoint-initdb.d/ # mount initial sql dump to container | |
restart: always |
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
{ | |
"arrowParens": "always", | |
"bracketSpacing": true, | |
"printWidth": 100, | |
"singleQuote": true, | |
"tabWidth": 4, | |
"trailingComma": "all" | |
} |