id | name |
---|---|
3 | Linux |
4 | Nintendo 64 |
5 | Wii |
6 | PC (Microsoft Windows) |
7 | PlayStation |
8 | PlayStation 2 |
9 | PlayStation 3 |
11 | Xbox |
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 | |
CLOUDFRONT_DISTRIBUTION_ID=E2C3RNL2F4MRMQ | |
NEW_ORIGIN="origin2-zaid.s3.us-west-2.amazonaws.com" | |
ETAG=`aws cloudfront get-distribution --id $CLOUDFRONT_DISTRIBUTION_ID | jq -r .ETag` | |
aws cloudfront get-distribution --id $CLOUDFRONT_DISTRIBUTION_ID | \ | |
jq --arg NEW_ORIGIN "$NEW_ORIGIN" '.Distribution.DistributionConfig.Origins.Items[0].Id=$NEW_ORIGIN' | \ | |
jq --arg NEW_ORIGIN "$NEW_ORIGIN" '.Distribution.DistributionConfig.Origins.Items[0].DomainName=$NEW_ORIGIN' | \ | |
jq --arg NEW_ORIGIN "$NEW_ORIGIN" '.Distribution.DistributionConfig.DefaultCacheBehavior.TargetOriginId=$NEW_ORIGIN' | \ | |
jq .Distribution.DistributionConfig > config.json | |
aws cloudfront update-distribution --id $CLOUDFRONT_DISTRIBUTION_ID --distribution-config "file://config.json" --if-match $ETAG > /dev/null |
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 { | |
server_name test24.company.io; | |
index index.html; | |
root /home/ubuntu/project-source/company/entry; | |
location / { | |
root /home/ubuntu/project-source/company/entry; | |
} |
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 default_server; | |
root /var/www/html; | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name _; | |
location / { | |
try_files $uri $uri/ =404; | |
} |
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
export YourSSLDomain=mail.yourdomain.com | |
# Renew or generate cert | |
certbot renew | |
# Copy cert | |
cp /etc/letsencrypt/live/$YourSSLDomain/* /opt/zimbra/ssl/letsencrypt | |
chown zimbra:zimbra /opt/zimbra/ssl/letsencrypt/* | |
# if first time copy the key to the right place | |
cp /etc/letsencrypt/live/$YourSSLDomain/privkey.pem /opt/zimbra/ssl/zimbra/commercial/commercial.key | |
# fix permissions |
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
# Linode token | |
dns_linode_key = YOUR_ACCESS_TOKEN |
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
from __future__ import print_function # Python 2/3 compatibility | |
import json | |
import boto3 | |
# AWS_ACCESS = "" | |
# AWS_SECRET = "" | |
AWS_REGION = "eu-west-3" | |
TABLE_NAME = "users" | |
client = boto3.client( |
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
RewriteEngine On | |
RewriteRule ^$ http://127.0.0.1:3020/ [P,L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
#RewriteRule ^(.*)$ http://127.0.0.1:3020/$1 [P,L] | |
RewriteRule ^/?resources/(.*)$ http://127.0.0.1:3020/resources/$1 [L,P] |
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
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'the-password'; | |
SELECT user,authentication_string,plugin,host FROM mysql.user; | |
FLUSH PRIVILEGES; |
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
<!doctype html> | |
<html ng-app="app"> | |
<head> | |
</head> | |
<body> | |
<div ng-controller="LayoutViewController as $ctrl" class="container"> | |
<div class="row"> |
NewerOlder