Skip to content

Instantly share code, notes, and snippets.

View MewX's full-sized avatar
🙀
Backing to the office!

MewX MewX

🙀
Backing to the office!
View GitHub Profile
@MewX
MewX / disable.sh
Created October 19, 2019 05:14
Disable gnome animation to reduce CPU load
gsettings set org.gnome.desktop.interface enable-animations false
@MewX
MewX / settings.json
Last active September 6, 2020 14:12
My Windows Terminal App Settings
// This file was initially generated by Windows Terminal 1.2.2381.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@MewX
MewX / dl.sh
Last active November 6, 2020 10:46
Download from Dubox using curl
curl -b cookies.txt -L '<URL from developer tool>' -C - --retry 999 --retry-max-time 0 -o movie.mkv
# OR repeatively
while true; do curl -b cookies.txt -L '<URL from developer tool>' -C - --retry 999 --retry-max-time 0 -o movie.mkv; date; sleep 5; done
@MewX
MewX / com.b.a.a.a.c.a.java
Last active March 27, 2021 13:00
ConTenDo Viewer debugging logs
package com.b.a.a.a.c;
import com.b.a.a.a;
import com.b.a.a.a.b.b;
import java.util.WeakHashMap;
public class a implements a {
private static WeakHashMap<Object, byte[]> b = (WeakHashMap)new WeakHashMap<>();
public static Object a(byte[] paramArrayOfbyte) {
@MewX
MewX / downsampler-threaded.sh
Created June 4, 2021 09:28
downsampler-threaded.sh v4
#!/bin/bash
#########################
#
# NAME:
# downsampler-threaded.sh - A Bash script to automate resampling of 24 bit FLAC files using multiple threads.
#
# SYNOPSIS:
# downsampler-threaded.sh [OPTION [ARGUMENT]...] [--] FILE_OR_FOLDER [FILE_OR_FOLDER...]
#
@MewX
MewX / oursteps.user.js
Last active May 16, 2022 05:05
Disquz auto enter full mode
// ==UserScript==
// @name Disquz auto full mode
// @namespace http://mewx.org/
// @version 0.1
// @description Automatically load the full text version.
// @author MewX
// @match https://www.oursteps.com.au/bbs/archiver/*
// @match http://www.oursteps.com.au/bbs/archiver/*
// @match https://oursteps.co/bbs/archiver/*
// @match http://oursteps.co/bbs/archiver/*
@MewX
MewX / jump_car.py
Created October 12, 2021 02:21
deluge jump car
import deluge_client
import time
import logging
import traceback
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
logging.basicConfig(level=logging.INFO, format=LOG_FORMAT)
client = deluge_client.DelugeRPCClient("10.0.0.1", 53274, "xxxxxxx", "xxxxxxxxxx")
client.connect()
logging.info("is connected: {}".format(client.connected))
@MewX
MewX / pt.highlight.user.js
Last active April 19, 2022 02:42 — forked from LostInsight/NexusPHP Hightlight.user.js
A script for highlighting free and 2xfree items in PT sites for MewX's own use.
// ==UserScript==
// @name MewX Row Free Highlight
// @version 0.7
// @description A script for highlighting free and 2xfree items in PT sites.
// @author MewX, LostMelody
// @note 大量站点未测,特别是CHD,影客,U2,HDChina
// @note 网址和入口参考PT-Plugin-Plus内置地址
// @note 部分识别接口参考Juszoe的flexget-nexusphp但具体未测
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @match *://*.52pt.site/*
@MewX
MewX / hdbits.js
Last active April 18, 2022 13:07
HDBits Freeleech highlights and downloads
// ==UserScript==
// @name HDBits Showing Free Leech Info
// @namespace http://tampermonkey.net/
// @version 0.12
// @description Let HDB torrent list show freeleech information (and auto download).
// @author MewX
// @match https://hdbits.org/browse.php*
// @icon https://hdbits.org/pic/favicon/favicon.ico
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @grant GM_download
@MewX
MewX / main.tf
Last active February 19, 2022 11:18
Get oracle free arm64 instance in high demand area
# Not required after running "$ oci session authenticate".
provider "oci" {
region = "<your region>"
config_file_profile = "<your profile>
}
resource "oci_core_instance" "generated_oci_core_instance" {
agent_config {
is_management_disabled = "false"
is_monitoring_disabled = "false"