Skip to content

Instantly share code, notes, and snippets.

@xserveraws
xserveraws / he-dns-update.sh
Created September 20, 2019 03:16 — forked from joemiller/he-dns-update.sh
script for updating dynamic DNS records on he.net (hurricane electric)
#!/bin/bash
#
# Script for updating DNS records on Hurricane Electirc's DNS system (https://dns.he.net).
#
# The record will be updated with the IP address that originates the request.
#
# Usage
# -----
#
# Create config file `/etc/he-dns-update.conf`:
@xserveraws
xserveraws / Activate Office 2019 for macOS VoL.md
Created September 25, 2019 20:06 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@xserveraws
xserveraws / install-apktool.sh
Created October 23, 2019 15:08 — forked from bmaupin/install-apktool.sh
Install apktool in Linux
# Get latest version from https://bitbucket.org/iBotPeaches/apktool/downloads
export apktool_version=2.3.1
sudo -E sh -c 'wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_$apktool_version.jar -O /usr/local/bin/apktool.jar'
sudo chmod +r /usr/local/bin/apktool.jar
sudo sh -c 'wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O /usr/local/bin/apktool'
sudo chmod +x /usr/local/bin/apktool
# To use:
# apktool d TelephonyProvider.apk -o TelephonyProvider
@xserveraws
xserveraws / nginx-tuning.md
Created November 8, 2019 14:13 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@xserveraws
xserveraws / README.md
Created November 24, 2019 04:03 — forked from yesidlazaro/README.md
Fix OpenGApps permissions on CyanogenMod 13

Fix OpenGApps permissions on CyanogenMod 13

Updating to CyanogenMod 13 with OpenGApps is problematic and results in issues including repeated warnings such as

Unfortunately, setup wizard has stopped working

Or

Unfortunately, Google Play Services has stopped working

@xserveraws
xserveraws / admin
Created January 8, 2020 22:55
Plesk Trial License Update Automation
A00M00-R0MZ05-YMNH13-15YM73-XMQB25
@xserveraws
xserveraws / gist-build-armian-using-docker-centos-rhel7.sh
Created February 26, 2020 20:05 — forked from rfrht/gist-build-armian-using-docker-centos-rhel7.sh
Building a Tinkerboard Armbian Kernel in a RHEL / CentOS 7 using Docker
=== CONSOLE FALLBACK: SERIAL PORT, SINCE NO HDMI SUPPORT IS PROVIDED IN THIS BUILD ===
Tinkerboard Kernel console serial port: UART2.
Using: Raspberry Pi as a console client. Disable local console so it can be used by minicom:
# systemctl mask serial-getty@ttyAMA0.service
==PINOUTS==
RASPI: PIN 6 (GND, GREEN), PIN 8 (TX, WHITE), PIN 10 (RX, BLUE)
TINKERBOARD: ====== Uses UART2 and NOT UART0!!!!!!!! ======
PIN30 (GND, GREEN), PIN 32 (TX, BLUE), PIN 33 (RX, WHITE)
@xserveraws
xserveraws / setup.md
Created April 11, 2020 11:05 — forked from foxlet/setup.md
macOS Installation Media Guide (Windows)

Download macOS

  1. Get FetchMacOS and place it in a known folder.

  2. Open Command Prompt and use cd to go to the known folder.

  3. Run fetch-macos.exe -p PRODUCTID -o SharedSupport where PRODUCTID is the macOS package you want to download.

Edit Downloaded Files

  1. Rename InstallESDDmg.pkg inside the SharedSupport folder to InstallESD.dmg
@xserveraws
xserveraws / innodb2myisam.sh
Created April 19, 2020 23:24 — forked from matriphe/innodb2myisam.sh
BASH script to convert InnoDB to MyISAM
#!/bin/bash
# MySQL info
DB_USER='your-db-user'
DB_PSWD='your-db-password'
DB_HOST='localhost'
# Backup path, no trailing slash!
BACKUP_PATH='/backup/sql/path'
@xserveraws
xserveraws / default.prop
Created April 28, 2020 18:52
HOW TO: Modify boot.img to allow usb debugging from recovery adb
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.sys.usb.config=adb
ro.adb.secure=0