Skip to content

Instantly share code, notes, and snippets.

View KohaAloha's full-sized avatar

mjames KohaAloha

View GitHub Profile
@joaofl
joaofl / Clean Samsung Galaxy A40 bloatwares
Last active January 20, 2024 16:36
Script I used to clean preinstalled shit out of my brand new Samsung A40 (while there is still no LineageOS for it)
#!/bin/sh
# ref: https://piunikaweb.com/2019/03/25/samsung-galaxy-s10-remove-bundled-bloatwares-without-root/
# install the following app to see the packages names:
# use the following command to generate the unistall command, for easy copy and paste:
# adb shell 'pm list packages' | sed -e 's/^/adb uninstall --user 0 /' | grep FILTER_HERE | sort
#things to install if removing keyboard
# F-Droid
# APK Analyser
@koninka
koninka / a2ensite.sh
Created October 11, 2017 14:40
OSx a2ensite
#!/bin/sh
APACHE_DIR="/usr/local/etc/httpd"
CONF="$1"
if [ ! -f "$APACHE_DIR/sites-available/$CONF" ]; then
echo "$APACHE_DIR/sites-available/$CONF does not exist"
exit
@sarkarshuvojit
sarkarshuvojit / a2ensite
Created April 9, 2017 15:57
a2ensite for manjaro/arch
#!/bin/bash
if test -d /etc/httpd/conf/sites-available && test -d /etc/httpd/conf/sites-enabled ; then
echo "-------------------------------"
else
mkdir /etc/httpd/conf/sites-available
mkdir /etc/httpd/conf/sites-enabled
fi
avail=/etc/httpd/conf/sites-available/$1.conf
enabled=/etc/httpd/conf/sites-enabled
site=`ls /etc/httpd/conf/sites-available/`
@d3m3vilurr
d3m3vilurr / README.md
Last active August 26, 2022 00:49
Fix LineageOS ANT+ HAL of MSM8996 devices

Update.zip

Just install antfix.zip on your recovery.

Manual

Copy libbt-vendor.so file to /system/vendor/lib64/. Tested Xiaomi Mi5 (gemini)

adb push libbt-vendor.so /sdcard/
@purplejacket
purplejacket / williams_defender_settings.txt
Last active April 16, 2023 05:24
Williams Defender Settings -- of particular interest are Functions 08, 17, 18, 19, 21: bonus ship level, free play, start difficulty, progressive difficulty, planet restore frequency
BOOKKEEPING AND EVALUATION TOTALS (Functions 1-7)
=================================================
1. In game over mode, set switch to AUTO-UP and depress ADVANCE. The CRT
indicates Function 1 and total left chute coins.
2. Record audit totals and depress ADVANCE for functions 1-7. To review a
total that has been advanced past, set switch to MANUAL-DOWN and depress
ADVANCE. Functions are displayed one at a time as follows:-
Function Total Description
--------------------------------
@sloria
sloria / bobp-python.md
Last active June 18, 2024 08:18
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@mateusg
mateusg / ensite.sh
Created August 3, 2012 21:22
Script for enabling a site, just like a2ensite, from Apache2.
#! bin/bash
# Enables a site, just like a2ensite command, from Apache2.
SITES_AVAILABLE_CONFIG_DIR="/opt/nginx/sites-available";
SITES_ENABLED_CONFIG_DIR="/opt/nginx/sites-enabled";
if [ $1 ]; then
if [ -f "${SITES_ENABLED_CONFIG_DIR}/${1}" ]; then
echo "Site ${1} was already enabled!";
elif [ ! -w $SITES_ENABLED_CONFIG_DIR ]; then