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 | |
#/scripts/pkgacct "${@: -1}" /backup/ | |
# Script Name: /usr/local/cpanel/scripts/prekillacct | |
# Purpose: Creates a backup of a cPanel user account before removing. | |
# License: MIT (refer to https://opensource.org/licenses/MIT for details) | |
argc=$# | |
argv=($@) | |
for (( j=0; j<argc; j++ )); do |
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 'dart:convert'; | |
void main() { | |
// Create Dart variables to store the name and mac_address values. | |
var name = "PC1"; | |
var macAddress = "1ssdsjdjsdjsdjs"; | |
// Create a map inside a map using a map literal. | |
var outerMap = { | |
"key1": "value1", |
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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"s3:GetObject" | |
], |
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
### Flutter Generated | |
.flutter-plugins-dependencies | |
# Miscellaneous | |
*.class | |
*.lock | |
*.log | |
*.pyc | |
*.swp | |
.DS_Store |
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
When trying to run ansbile from jenkins docker container (node : osx), ssh fails with this error: | |
"msg": "Failed to connect to the host via ssh: bind: File name too long\r\nunix_listener: cannot bind to path: /**jenkins home dir*/.ansible/cp/remote_host-remote_user.7QrNSMyakiT2YWdu", | |
---------------- | |
.ssh/config | |
Host * | |
ControlPath /tmp/%r@%h:%p | |
----------------- | |
.ansible.cfg |
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 | |
# Backup Sites Before Terminating on Cpanel Server | |
# /usr/local/cpanel/scripts/prekillacct | |
argc=$# | |
argv=($@) | |
cpuser="" | |
for (( j=0; j<argc; j++ )); do | |
if [ ${argv[j]} == "user" ];then | |
cpuser="${argv[j+1]}" | |
fi |
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
server { | |
listen 80; | |
root /home/rails/folder/public; | |
server_name sub.domain.ltd; | |
index index.htm index.html; | |
location ~ /.well-known { | |
allow all; | |
} | |
location / { |
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
server { | |
listen 80; | |
root /home/rails/example/public; | |
server_name _; | |
index index.htm index.html; | |
location ~ /.well-known { | |
allow all; | |
} |
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
==> /usr/local/apache/conf/includes/pre_virtualhost_global.conf <== | |
SSLHonorCipherOrder on | |
SSLCompression off |
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
# vim /usr/local/apache/conf/userdata/ssl/2_4/{user name}/{domain name }/proxy.conf | |
SSLProxyEngine on | |
SSLProxyVerify none | |
SSLProxyCheckPeerCN off | |
SSLProxyCheckPeerName off | |
SSLProxyCheckPeerExpire off | |
ProxyPass / https://0.0.0.0:8443/ | |
ProxyPassReverse / https://0.0.0.0:8443/ | |
ProxyPreserveHost On # pass hostname | |
ProxyVia on |
NewerOlder