This gist uses the idf-release/v4.2 release of arduino-esp32, can be found here: https://github.com/espressif/arduino-esp32/tree/idf-release/v4.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
#include "Player.h" | |
class AccountMounts : public PlayerScript | |
{ | |
static const bool limitrace = true; //Disable share mounts between faction | |
static const bool limitlevel = true; //Disable share riding with level 1 characters | |
static const uint8 minRidingLevel = 20; //Minimum level for shared riding skill | |
public: |
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 | |
/** | |
* Based on https://github.com/laravel/ideas/issues/514#issuecomment-299038674 | |
*/ | |
namespace App\Http\Middleware; | |
use Illuminate\Foundation\Http\Middleware\TransformsRequest; |
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
# First install figlet as this is required to render the text | |
sudo apt-get install figlet | |
# Add below lines to your ~./bashrc file. You can remove fonts from the list by adding an # in front of their entry. | |
# Create a data file if none does exist | |
if [[ ! -e ~/.terminal-welcome-message ]]; then | |
echo "Welcome" > ~/.terminal-welcome-message | |
fi | |
# Define available fonts (showfigfonts) |
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 | |
# | |
# Automate mysql secure installation for debian-baed systems | |
# | |
# - You can set a password for root accounts. | |
# - You can remove root accounts that are accessible from outside the local host. | |
# - You can remove anonymous-user accounts. | |
# - You can remove the test database (which by default can be accessed by all users, even anonymous users), | |
# and privileges that permit anyone to access databases with names that start with test_. |
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
# Use Ubuntu 20.04 LTS | |
FROM ubuntu:20.04 | |
# Install common software | |
RUN apt update && apt install -y software-properties-common | |
# Add SteamCMD repository | |
RUN add-apt-repository multiverse \ | |
&& dpkg --add-architecture i386 |
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
#!/usr/bin/env bash | |
# Download Node Exporter | |
wget https://github.com/prometheus/node_exporter/releases/download/v1.1.1/node_exporter-1.1.1.linux-amd64.tar.gz | |
tar xvfz node_exporter-*.*-amd64.tar.gz | |
cd node_exporter-*.*-amd64 | |
# Install node_exporter to /usr/local/bin as grafana-agent | |
cp node_exporter /usr/local/bin/grafana-agent |
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
#/usr/bin/env bash | |
# Helper script to determine if a given list of software is installed and available on the system. | |
# The script will fail and output the missing software in case a software can not be found. | |
# | |
# Author: Patrick Henninger <privat@skyraptor.eu> | |
# License: GPLv3 | |
# Examples: | |
# ./installed.sh "pv rsync vim" && echo "Everything is installed" | |
# ... |
OlderNewer