Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄

Jim Liu hldh214

🦄
View GitHub Profile
@hldh214
hldh214 / Default (Windows).sublime-keymap
Last active Jun 21, 2021
My sublime4 keymap && settings
View Default (Windows).sublime-keymap
[
{ "keys": [ "ctrl+alt+j" ], "command": "pretty_json_and_sort" },
{ "keys": [ "ctrl+alt+m" ], "command": "un_pretty_json" }
]
@hldh214
hldh214 / readme.md
Last active Feb 19, 2021
Least wasteful use of stamps to achieve a given postage
View readme.md

Problem

we have 2 kinds of stamp with values $A and $B, The

number of stamps is infinite, we have a letter to send out and need $T

postage, question is to find out the lowest cost required to get $T postage? Pls describe your method

and code it with any language you are good at( even we perfer C/C++ :)。

@hldh214
hldh214 / YunDunKiller.sh
Last active Sep 23, 2021
YunDunKiller
View YunDunKiller.sh
# Aliyun YunDun
rm -rf /usr/sbin/aliyun*
rm -rf /usr/local/share/aliyun-assist
pkill aliyun-service
rm -rf /usr/local/aegis
pkill AliYunDun
pkill AliYunDunUpdate
# Qcloud YunJing
/usr/local/qcloud/stargate/admin/uninstall.sh
@hldh214
hldh214 / gm4-polyfill.module.js
Created Aug 12, 2019 — forked from damoclark/gm4-polyfill.module.js
This helper script bridges compatibility between the Greasemonkey 4 APIs and existing/legacy APIs.
View gm4-polyfill.module.js
/*
This helper script bridges compatibility between the Greasemonkey 4 APIs and
existing/legacy APIs. Say for example your user script includes
// @grant GM_getValue
And you'd like to be compatible with both Greasemonkey 4 and Greasemonkey 4
(and for that matter all versions of Violentmonkey, Tampermonkey, and any other
user script engine). Add:
View gtav-casino-with-tesseract.py
import logging
import pytesseract
import pywinauto
# Code by Daniel Kukiela (https://twitter.com/daniel_kukiela)
import ctypes
from threading import Thread
from time import sleep
from queue import Queue
@hldh214
hldh214 / supervisord.service
Created Apr 15, 2019 — forked from mozillazg/supervisord.service
install and configure supervisord on centos 7.
View supervisord.service
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown
@hldh214
hldh214 / npm-using-https-for-git.sh
Created Apr 2, 2019 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
View npm-using-https-for-git.sh
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
View EnableAchievements.cs
namespace SkylinesMod
{
public class EnableAchievements : IUserMod
{
public string Name
{
get { return "Enable Achievements"; }
}
public string Description
View gist:f14ccde18e0babdc57e49e20787fdd22
https://code.google.com/p/android/issues/detail?id=32696#c5
If you have a certificate that is not
trusted by Android, when you add it, it goes in the personal cert store.
When you add a cert in this personal cert store, the system requires a
higher security level to unlock the device. But if you manage to add your
cert to the system store then you don't have this requirement. Obviously,
root is required to add a certificate to the system store, but it is quiet
easy.
View pubg_recoil_v0.1.py
import time
import win32api
import win32con
from ctypes import windll, c_uint
recoil = [20, 21, 22, 21, 22, 22, 23, 22, 23, 23, 24, 24, 25, 25, 25, 25, 26, 27, 28, 29, 30, 32,
34, 34, 35, 34, 35, 34, 35, 34, 35, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35,
35, 35]
a = 0