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 | |
if test -e ~/FFMpeg/.compiled; then | |
exit 2; | |
fi | |
# Check if root | |
if test $EUID -ne 0; then | |
echo "This script must be run as root" | |
exit 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
#!/bin/bash | |
# Check if root | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
# Check if dphys-swapfile installed. If not, install it | |
if ! dpkg --get-selections | grep -q "^dphys-swapfile\(:.*\)\?[[:space:]]*install$" >/dev/null; then |
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 | |
#Roms | |
#https://archive.org/details/MAME0.37b5_MAME2000_Reference_Set_Update_2_ROMs_Samples | |
echo 'datasource_list: [ None ]' | sudo -s tee /etc/cloud/cloud.cfg.d/90_dpkg.cfg | |
apt remove --purge cloud-init lxd snapd open-iscsi accountsservice lxcfs -y | |
apt install alsa-base alsa-utils pulseaudio | |
#LABEL=cloudimg-rootfs / ext4 defaults,data=writeback,noatime,nodiratime 0 0 |
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 | |
#config.txt | |
enable_uart=1 | |
kernel=uboot.bin | |
device_tree_address=0x02008000 | |
dtparam=i2c_arm=on | |
dtparam=spi=on | |
#overclock to 1.4 GHz |
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 | |
mkdir -p /etc/systemd/system/[email protected] | |
cat >/etc/systemd/system/[email protected]/override.conf << 'EOF' | |
[Service] | |
ExecStart= | |
ExecStart=-/bin/su - retropie -c "/usr/bin/emulationstation" | |
StandardInput=tty |
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 | |
# Usage: | |
# cat Street\ Fighter\ 3.zip | ssh -p222 [email protected] process nes street_figter.zip | |
ROM_SAVE_FOLDER=/home/retropie/RetroPie/roms | |
ROM_TYPE=$1 | |
ROM_NAME=$2 |
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 | |
SCAN_FOLDERS="theme $(find plugins/ -maxdepth 1 -type d)" | |
for folder in $SCAN_FOLDERS; do | |
if test -e $folder/.git; then | |
echo "Checking $folder for changes..." |
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/sh | |
# Copyright 2018 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
# Perform first-time container setup if necessary, and start the container | |
# if it isn't already running. | |
. /usr/share/misc/shflags | |
DEFINE_boolean dummy "${FLAGS_FALSE}" \ | |
"Dummy run. Exit successfully immediately." | |
DEFINE_string container_name "" \ |
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 | |
# Lost your Lightsail private key (*.pem) file? Locked out of your server? Never fear, this script will fix that!! | |
# Step 1: Log into your Lighsail account | |
# Step 2: Create another in Lightsail | |
# Step 3: Generate a new public key from the private key you just downloaded `ssh-keygen -y -f .keys/newprivatekey.pem` | |
# Step 4: Copy the public key to the PRV_KEY bash variable below | |
# Step 5: Create a snapshot of your current server |
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 | |
ROOT_FOLDERS="WordpressSiteSync theme $(find plugins/ -maxdepth 1 -type d)" | |
for folder in $ROOT_FOLDERS; do | |
if test -e $folder/.git; then | |
echo "Checking $folder for changes..." |
OlderNewer