Check out the guideline here: https://github.com/aliyun/aliyun-cli ( using Google translator)
Install python pip if necessary
curl https://bootstrap.pypa.io/get-pip.py | sudo python
Install aliyuncli
| #!/bin/sh | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
| echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
| apt-get update | |
| apt-get install -y mongodb-org |
Check out the guideline here: https://github.com/aliyun/aliyun-cli ( using Google translator)
Install python pip if necessary
curl https://bootstrap.pypa.io/get-pip.py | sudo python
Install aliyuncli
| [1m [32m"Bee" careful [34m__ | |
| [32mwith sudo! [34m// \ | |
| \\_/ [33m// | |
| [35m''-.._.-''-.._.. [33m-(||)(') | |
| '''[0m |
| #!/bin/env python | |
| import fileinput | |
| import re | |
| import binascii | |
| for line in fileinput.input(inplace = 1): | |
| if re.search('X\'([a-fA-F0-9]+)\'', line) is not None: | |
| unhexed_string = binascii.unhexlify(re.search('X\'([a-fA-F0-9]+)\'', line).group(1)) | |
| unhexed_string = unhexed_string.replace("'", "''") |
| #!/bin/bash | |
| # nexusdeb builds a debian package of the Nexus repository manager. nexusdeb | |
| # downloads nexus by itself. You run it by | |
| # nexusdeb.sh <version> <maintainer> | |
| # Example: | |
| # nexusdeb.sh 2.0.5 "Denny Colt <d.colt@eisner.qcg>" | |
| # | |
| # The script has been tested with version 2.0.5. | |
| if [ -z $1 ] |
| 2a04:4e42::1 5742636757417984-fe1.pantheonsite.io | |
| 2a04:4e42::2 5724160613416960-fe2.pantheonsite.io | |
| 2a04:4e42::3 5746821397741568-fe3.pantheonsite.io | |
| 2a04:4e42::4 5714315743068160-fe4.pantheonsite.io | |
| 2a04:4e42::72 *.avvosites.com | |
| 2a04:4e42::74 www.aclu.org | |
| 2a04:4e42::78 *.twimg.com | |
| 2a04:4e42::79 *.wixstatic.com | |
| 2a04:4e42::80 admin.wes.bibbed.org | |
| 2a04:4e42::81 www.bbc.com |
| monitor: bundle exec ruby monitor.rb |
| #!/bin/bash | |
| # Prerequisites: http://wiki.openwrt.org/doc/howto/buildroot.exigence | |
| # Additionally JDK is needed | |
| generate_buildenv() { | |
| # Prepare build enviroment | |
| mkdir lede_build | |
| cd lede_build | |
| git clone https://github.com/lede-project/source.git |
| /* | |
| EXAMPLE MESSAGE | |
| /poll "question?" "option 1" "option 2" | |
| */ | |
| /** Global Helpers | |
| * | |
| * console - A normal console instance | |
| * _ - An underscore instance |
| ; /etc/fail2ban/jail.local | |
| [maltrail-iptables] | |
| enabled = true | |
| filter = maltrail | |
| bantime = 31536000 | |
| action = iptables-allports[name=MALTRAIL, protocol=all] | |
| ;action = vesta[name=MALTRAIL] | |
| echo "logpath = /var/log/maltrail/$(ls -1t /var/log/maltrail | grep -E '^[^error.log]' | head -1)" | |
| maxretry = 1 |