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": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::ACCESSED_ACCOUNT_ID:root" | |
}, | |
"Action": "sts:AssumeRole", | |
"Condition": {} |
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
alias fixtouchpad='sudo rmmod i2c_hid; sudo modprobe i2c_hid' |
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
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=2M count=2048 | |
sudo /sbin/mkswap /var/swap.1 | |
sudo /sbin/swapon /var/swap.1 | |
sudo chmod 0600 /var/swap.1 |
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
sudo yum -y install nvme-cli; | |
sudo mkfs.xfs /dev/nvme1n1; | |
sudo mkdir -p /mnt/ephemeral; | |
sudo mount /dev/nvme1n1 /mnt/ephemeral; | |
sudo chown centos:centos /mnt/ephemeral; |
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 file=export | |
/tool e-mail send to="[email protected]" subject=([/system identity get name] . " Export " . [/system clock get date]) body="([/system clock get date] configuration file)" file=export.rsc |
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
# Check gist comments to verify system PATH and or adapt it. | |
wget https://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz | |
tar zxvf glibc-2.18.tar.gz | |
cd glibc-2.18 | |
mkdir build | |
cd build | |
../configure --prefix=/opt/glibc-2.18 | |
make -j4 | |
sudo make install | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib |
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
git submodule add [email protected]:user/repo a/submodule | |
git submodule update --init --recursive |
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
git submodule deinit -f -- a/submodule | |
rm -rf .git/modules/a/submodule | |
git rm -f a/submodule |
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
<VirtualHost *:80> | |
ServerName yourdomain.com | |
DocumentRoot /usr/share/icingaweb2/public | |
RedirectMatch permanent "^/$" "http://yourdomain.com/icingaweb2/" | |
Alias /icingaweb2 "/usr/share/icingaweb2/public" | |
<Directory "/usr/share/icingaweb2/public"> | |
Options SymLinksIfOwnerMatch | |
AllowOverride None |
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 | |
require_once '../private/config.php'; | |
require_once $CONF->private . 'Project.php'; | |
require_once $CONF->lib . 'aws/aws-autoloader.php'; | |
define('AWS_KEY', $CONF->AWS_KEY); | |
define('AWS_SECRET_KEY', $CONF->AWS_SECRET_KEY); | |
define('HOST', 'https://s3.amazonaws.com/'); | |
use Aws\S3\S3Client; |
OlderNewer