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 without password | |
sudo visudo | |
username ALL=(ALL) NOPASSWD: ALL # At the end of the file | |
# Get the latest updates | |
sudo add-apt-repository universe | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# Manage the repositories that you install |
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
* * * * * root /bin/aws --region <REGION> cloudwatch put-metric-data --namespace="<NAMESPACE>" --metric-name "CPULoad" --value $(cat /proc/loadavg | awk '{print $1}') --dimensions AutoScalingWebGroup="ASG-NAME" > /tmp/cpuload-lastrun.log 2>&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
# This is the ProFTPD configuration file | |
# | |
# See: http://www.proftpd.org/docs/directives/linked/by-name.html | |
ServerName "ProFTPD server" | |
ServerIdent off | |
ServerAdmin root@localhost | |
ServerType standalone | |
DefaultServer on |
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
# This is the ProFTPD configuration file | |
# $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $ | |
ServerName "ProFTPD server" | |
ServerIdent off | |
ServerAdmin root@localhost | |
ServerType standalone | |
DefaultServer on | |
AccessGrantMsg "User %u logged in." | |
DeferWelcome 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
[Desktop Entry] | |
Comment=Strem.io | |
Terminal=false | |
Name=Strem.io | |
Exec=/opt/stremio/Stremio.sh %F | |
Type=Application | |
Icon=/opt/stremio/stremio-white-small.png |
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
amixer -c 0 sset Headphone 100% unmute |
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
########################################## | |
# To run: | |
# curl -sSL https://gist.githubusercontent.com/sirkkalap/e87cd580a47b180a7d32/raw/d9c9ebae4f5cf64eed4676e8aedac265b5a51bfa/Install-Docker-on-Linux-Mint.sh | bash -x | |
########################################## | |
# Check that HTTPS transport is available to APT | |
if [ ! -e /usr/lib/apt/methods/https ]; then | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https | |
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
# Clone the repository from GitHub | |
git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.8.0 rdm && cd ./rdm | |
# Compile the source | |
cd src/ | |
./configure | |
source /opt/qt56/bin/qt56-env.sh && qmake && make | |
sudo checkinstall -D --install | |
sudo gdebi /home/$USER/rdm/src/src_*.deb | |
cd /usr/share/redis-desktop-manager/bin |
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
def lambda_handler(event, context): | |
import subprocess | |
result = subprocess.call("curl -I http://foo.bar", shell=True) | |
return result | |
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 | |
# Issue: Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. | |
# | |
DEVICE_USB=/dev/sdb | |
sudo dd if=/dev/zero of=$DEVICE_USB bs=2048 count=32 |
OlderNewer