# put stock boot.img into /sdcard/boot.img
# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 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
# Contributor: NicoHood <archlinux {cat} nicohood {dog} de> | |
# Maintainer: Matthew Sexton <wsdmatty (at) _gmail_ (dot) _com_> | |
# PGP ID: 97928FA059F8050487930EAFACF6C1A315EDCB52 | |
pkgname=notes-up | |
_pkgname=Notes-up | |
pkgver=2.0.2 | |
pkgrel=2 | |
pkgdesc="Markdown style notes manager written for elementary OS" | |
arch=('i686' 'x86_64') |
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 | |
# Based on https://gist.github.com/thrimbor/67d109004db28820bf918c8ac80f75d2 | |
# BEFORE RUNNING THIS, go into the game's properties in steam and set "Force the use of a specific Steam Play compatability tool" to "Proton 4.2-9". Other versions may work as well, but that's what worked for me. | |
# Also click "SET LAUNCH OPTIONS" and input: WINEDLLOVERRIDES="mscoree=n" %command% | |
# If you have been experimenting with other workarounds to get the game running you might also want to "VERIFY INTEGRITY OF GAME FILES" on the "LOCAL FILES" tab. | |
# Finally in this script change the following line to point to your steamapps directory if it dowsn't already: | |
steamappsDir="$HOME/.local/share/Steam/steamapps" |
cd /Library/Preferences
sudo rm com.sophos.sav.plist
cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove
Make your Arch fonts beautiful easily! This is what I do when I install Arch Linux to improve the fonts.
You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):
Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts
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
void Main(string argument) | |
{ | |
List<IMyTerminalBlock> solarRotors = new List<IMyTerminalBlock>(); | |
IMySolarPanel mainSolarPanel = GridTerminalSystem.GetBlockWithName("Main Solar Panel Optimised") as IMySolarPanel; | |
int currentPower = GetPanelPower(mainSolarPanel); | |
GridTerminalSystem.SearchBlocksOfName("Solar Rotor", solarRotors); | |
if (currentPower <= 100) { | |
RotateSolarRotors(solarRotors); |
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
package com.zackehh.example; | |
import com.zackehh.example.MinimalBrowser; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.text.Layout; | |
import android.text.Spannable; | |
import android.text.method.MovementMethod; | |
import android.text.style.URLSpan; |
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
CREATE TABLE IF NOT EXISTS `tag_info_counter` ( | |
`tag_value` varchar(32) DEFAULT NULL, | |
`req_count` int(11) DEFAULT NULL, | |
`req_per_sec` float DEFAULT NULL, | |
`hit_count` int(11) DEFAULT NULL, | |
`hit_per_sec` float DEFAULT NULL, | |
`timer_value` float DEFAULT NULL | |
) ENGINE=PINBA COMMENT='tag_info:counter'; | |
CREATE TABLE IF NOT EXISTS `tag_info_group` ( |
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 | |
NOBOLD="\033[0m" | |
BOLD="\033[1m" | |
BLACK="\033[30m" | |
GREY="\033[0m" | |
RED="\033[31m" | |
GREEN="\033[32m" | |
YELLOW="\033[33m" | |
BLUE="\033[34m" |