-
https://docs.micropython.org/en/latest/develop/gettingstarted.html
-
https://docs.espressif.com/projects/esp-idf/en/release-v3.0/get-started/linux-setup.html
-
Ubuntu 20.04
-
You'll need at least 5GB free space
-
Build time approx: 30 mins with 4 cores i7-4770
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 | |
# Install required packages | |
apt -y update | |
apt -y install perl-doc libssl-dev libxml-libxml-perl libmodule-build-perl libsoap-lite-perl libdevel-stacktrace-perl libclass-data-inheritable-perl libconvert-asn1-perl libcrypt-openssl-rsa-perl libcrypt-x509-perl libexception-class-perl libclass-methodmaker-perl libdata-dump-perl libsoap-lite-perl libnet-inet6glue-perl libdata-uuid-libuuid-perl | |
# Install perl modules with specific version | |
PERL_MM_USE_DEFAULT=1 cpan install BINGOS/ExtUtils-MakeMaker-6.96.tar.gz LEONT/Module-Build-0.4205.tar.gz GBARR/libnet-1.22.tar.gz GAAS/libwww-perl-5.837.tar.gz PERLER/UUID-Random-0.04.tar.gz | |
# Unattended vspherecli 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
#!/usr/bin/python3 | |
# http://serverfault.com/questions/330069/how-to-create-an-sha-512-hashed-password-for-shadow | |
# http://stackoverflow.com/questions/2257441/random-string-generation-with-upper-case-letters-and-digits-in-python | |
# http://stackoverflow.com/questions/9079036/detect-python-version-at-runtime | |
# http://security.stackexchange.com/questions/51959/why-are-salted-hashes-more-secure-for-password-storage | |
# https://pymotw.com/2/getpass/ | |
# https://docs.python.org/2/library/crypt.html | |
import crypt |
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
{ | |
"dynamic": "true", | |
"properties": { | |
"current-time": {"type": "date", "format": "EEE MMM D HH:mm:ss yyyy"}, | |
"transfer-time": {"type": "integer", "index" : "not_analyzed"}, | |
"remote-host": {"type": "ip", "index" : "not_analyzed"}, | |
"file-size": {"type": "integer", "index" : "not_analyzed"}, | |
"filename": {"type": "string", "index" : "not_analyzed"}, | |
"transfer-type": {"type": "string", "index" : "not_analyzed"}, | |
"special-action-flag": {"type": "string", "index" : "not_analyzed"}, |
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
# | |
# 1. Edit Certificate details in this file | |
# 2. Always Generate a new 4096 strong private key for a new CSR: | |
# openssl genrsa -out <FQDN-NAME-HERE>.key 4096 | |
# 3. Generate new CSR: | |
# openssl req -config <FQDN-NAME-HERE>.conf -new -key <FQDN-NAME-HERE>.key -out <FQDN-NAME-HERE>.csr | |
# | |
### | |
### DO NOT EDIT THIS SECTION |
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
[Unit] | |
Description=HAProxy Load Balancer | |
After=syslog.target network.target | |
[Service] | |
EnvironmentFile=/etc/sysconfig/haproxy | |
ExecStartPre=/etc/haproxy/haproxy-merge-configs.sh | |
ExecStart=/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid $OPTIONS | |
ExecReload=/bin/kill -USR2 $MAINPID |
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 | |
# Drop me into: /usr/lib/zabbix/externalscripts | |
# Zabbix usage | |
# snmpwalk["OID","{HOST.CONN}","{$SNMPARGS}"] | |
# | |
if [ $# -gt 1 ]; then | |
/bin/snmpwalk -OQvs ${3} ${2} ${1} | |
else | |
echo "Error: No parameter specified." |
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
Updating everything on OnePlus One (bacon) Windows 10 | |
This will erase ALL your data, so your phone will be completely empty | |
1. Backup all your stuff, photos, etc. | |
2. Download latest files to your PC: | |
* TWRP: https://eu.dl.twrp.me/bacon/ | |
* LineageOS: https://download.lineageos.org/bacon | |
* Gapps Android 10 ARM PICO version: https://opengapps.org/ | |
* Android platform tools (adb): https://developer.android.com/studio/releases/platform-tools |
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
// ==UserScript== | |
// @name Extract TradingView Databox on keypress | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.tradingview.com/chart/IQRwR53e/?symbol=USI%3APCC | |
// @icon https://www.google.com/s2/favicons?domain=tradingview.com | |
// @grant none | |
// @run-at document-end |
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 | |
# | |
# 1. Read and validate config files in conf.d folder: NN_configname.conf | |
# 2. Merge them to '.haproxy-candidate.cfg' | |
# 3. Validate the candidate config with haproxy | |
# 4. If the candidate config is valid overwrite haproxy.cfg | |
# | |
MAIN_CONFIG="/etc/haproxy/haproxy.cfg" | |
TEMP_CONFIG="/etc/haproxy/.haproxy-candidate.cfg" | |
CONFD_DIR="/etc/haproxy/conf.d" |
OlderNewer