- Backup stock SD card, do not format it yet
- Download the UnofficialOS image for R36 clones and follow these instructions. Other OSes might work, but take note that if your device comes with ArkOS as stock, you will need to generate a compatible DTB file which works with non-BSP OSes (see Links/Resources for BSP vs non-BSP Linux builds)
- Check that you can boot into Linux and have working D-pad and button controls (you should load into EmuStation after about 1 to 2 minutes of booting up). Depending on your requirements, you might want to ensure the analog sticks are working as well.
- Ensure you have a working USB OTG dongle/cable.
Plug it into your device (specifically for RX6H, it is the
HOST
port and not theDC/OTG
port).
This file contains hidden or 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 EDMW QOL | |
// @namespace forums.hardwarezone.com.sg | |
// @include https://forums.hardwarezone.com.sg/* | |
// @require https://code.jquery.com/jquery-3.6.0.min.js | |
// @version 1 | |
// @grant GM.addStyle | |
// ==/UserScript== | |
/* global $ */ | |
if ($('body').hasClass('gotoverlay')) { |
This file contains hidden or 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
function getRandomColor(excludeHex) { | |
let rgb = [ 255, 255, 255 ]; | |
return `${excludeHex ? '' : '#'}${rgb.map(x => Math.floor(Math.random() * 255 + 1).toString(16)).join("")}`; | |
} |
This file contains hidden or 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 LumiNUSAutoSort | |
// @description Sorts files alphabetically by default when you view the "Files" section of a module in LumiNUS | |
// @author Soh Thiam Hing | |
// @license OSL-3.0 | |
// @version 1.0 | |
// @match https://luminus.nus.edu.sg/* | |
// @namespace com.daffodilistic.tampermonkey | |
// @require https://cdn.jsdelivr.net/gh/CoeJoder/waitForKeyElements.js@6b9ca81bf32899b4274086aa9d48c3ce5648e0b6/waitForKeyElements.js | |
// ==/UserScript== |
This file contains hidden or 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
function doGet(e) { | |
const slackWebhookUrl = "https://hooks.slack.com/services/"; | |
const meetingUrl = "https://meet.google.com/"; | |
let today = new Date(); | |
today.setHours(today.getHours() + 8); | |
// Logger.log("Date and time is " + today.toISOString()); | |
if (today.getDay() >= 1 && today.getDay() <= 5) { | |
const formattedDate = Utilities.formatDate(today, "GMT+8", "E d MMM yyyy"); | |
const text = `*Standup - ${formattedDate} 10.10 AM Video Meeting*\n${meetingUrl}\n`; |
Synology DS418 on v6.2.4-25556 does not allow shrinking of volumes via the GUI. Thus, this must be done via an SSH terminal. This gist is written as generically as possible so that it works for the general use-case of shrinking volumes formatted with the BTRFS filesystem, and then expanding another one. For this scenario, it's a volume that's being used for Time Machine.
- SSH into the Synology NAS and switch to root account with
sudo su
. - Run
btrfs filesystem show
to list the volumes:
root@SynologyNAS:~# btrfs filesystem show
This file contains hidden or 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
# MINIMAL USB gadget setup using CONFIGFS for simulating Razer Gaming HID | |
# devices for triggering the vulnerable Windows Driver installer | |
# credits for the Windows Driver install vuln: @j0nh4t | |
# | |
# https://twitter.com/j0nh4t/status/1429049506021138437 | |
# https://twitter.com/an0n_r0/status/1429263450748895236 | |
# | |
# the script was developed & tested on Android LineageOS 18.1 |
This file contains hidden or 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=Odoo Docker Container Service | |
Requires=docker.service network.target | |
After=docker.service network.target | |
[Service] | |
Type=exec | |
User=root | |
Group=google-sudoers | |
WorkingDirectory=/var/docker |
This file contains hidden or 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 python | |
import subprocess | |
import os | |
import pipes | |
import argparse | |
from zipfile import ZipFile | |
from google.cloud import storage | |
from datetime import datetime | |
parser = argparse.ArgumentParser() |
This file contains hidden or 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
import os | |
from googleapiclient import discovery | |
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "./service-account-key.json" | |
HOSTNAME = "example.com" | |
GCP_PROJECT = 'project_name' | |
GCP_INSTANCE_ZONE = 'instance_zone' | |
GCP_INSTANCE_NAME = 'instance_name' | |
NewerOlder