Skip to content

Instantly share code, notes, and snippets.

View OtakuNekoP's full-sized avatar

OtakuNekoP OtakuNekoP

View GitHub Profile
@khang06
khang06 / output.txt
Created October 29, 2020 20:19
Genshin Impact Windows 1.0.1 String Literals
This file has been truncated, but you can view the full file.
0 || [Min: {0} Max: {1}]
1 || Data/_ExcelBinOutput/ShopGoodsExcelConfigData
2 || SetCombatFixedMovePoint
3 || value
4 || Transparent/Diffuse
5 || Diffuse
6 || AttachToStateIDMixin
7 || _Color
8 || _MainColor
9 || ConfigGuideInfoDialogAction
// ==UserScript==
// @name U2 Show Peer location
// @namespace https://u2.dmhy.org
// @version 1.2.1
// @description Show Peer location
// @author Husky
// @match https://u2.dmhy.org/details.php?id=*
// @match https://u2.dmhy.org/userdetails.php?id=*
// @grant none
// @require https://unpkg.com/xhook@latest/dist/xhook.min.js
@unnikked
unnikked / README.md
Last active February 19, 2024 02:58
How to host your Telegram bot on Google App Script

Telegram Bot on Google App Script

This is the source code of one of my blog post. To read the full blog post please click here.

@mo10
mo10 / getCard.js
Last active May 22, 2018 12:46
特卖每日浏览队列拿卡
javascript:!function e(){function o(){l=!1,p.Dismiss()}function i(){o(),ShowConfirmDialog("错误","是否重试?","重试","放弃").done(e)}function n(){if(l){r();var e=a.shift();e?$J.post(a.length?"/app/"+e:"/explore/next/",{sessionid:g_sessionID,appid_to_clear_from_queue:e}).done(n).fail(i):t()}}function t(){l&&$J.post("/explore/generatenewdiscoveryqueue",{sessionid:g_sessionID,queuetype:0}).done(s).fail(i)}function s(){l&&$J.get("/explore/").done(function(e){var s,l=e.match(/<div class="subtext">\D+(\d)\D+<\/div>/);return l?(s=e.match(/0,\s+(\[.*\])/))?(a=JSON.parse(s[1]),d=l[1],0==a.length?t():n(),void r()):void i():(o(),void ShowAlertDialog("完成","已完成全部3轮探索队列"))})}function r(){$J("#progressContainer").html("<br>剩余"+d+"个待探索队列, 当前队列剩余"+a.length+"个待探索游戏")}var a,d,l=!0,p=ShowAlertDialog("探索中",$J("<div/>").append($J("<div/>",{"class":"waiting_dialog_throbber"})).append($J("<div/>",{id:"progressContainer"}).text("获取进度...")),"停止").done(o);s()}();
@Hengjie
Hengjie / tutorial.md
Last active May 1, 2024 02:33
How to passthrough SATA drives directly on VMWare ESXI 6.5 as RDMs

How to passthrough SATA drives directly on VMWare EXSI 6.5 as RDMs

There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.

A word about VMWare ESXI 6.7

There is now an option while editing your VM's settings to add a New raw disk when you click `Add ha

@mattbell87
mattbell87 / iptables.md
Last active December 22, 2023 20:25
IPtables for routing over OpenVPN on Linux

Enable forwarding:

sysctl -w net.ipv4.ip_forward=1

Create this script eg sudo nano iptables.sh

eth=$1
proto=$2
@amadio
amadio / libffi-3.2.1-k1om.patch
Last active July 17, 2021 16:27
Workaround for compiling libffi for K1OM architecture (Intel® Xeon Phi™)
diff -ur libffi-3.2.1.orig/src/raw_api.c libffi-3.2.1/src/raw_api.c
--- libffi-3.2.1.orig/src/raw_api.c 2016-08-11 10:02:18.561329225 -0300
+++ libffi-3.2.1/src/raw_api.c 2016-08-11 10:03:43.853948157 -0300
@@ -29,7 +29,7 @@
#include <ffi.h>
#include <ffi_common.h>
-#if !FFI_NO_RAW_API
+//#if !FFI_NO_RAW_API
@hollodotme
hollodotme / Install-nginx-with-http2-support.md
Created April 9, 2016 17:07
Install nginx with http2 support on ubuntu 14.04 LTS (Trusty)

How to install nginx (>= 1.9.5) with http2 support on Ubuntu 14.04 LTS (Trusty)

IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available)!

Remove old nginx

Remove old nginx incl. nginx-common:

apt-get autoremove --purge nginx nginx-common
@JosefJezek
JosefJezek / ntop.md
Last active December 17, 2020 15:50
How to use ntop
@mustafaturan
mustafaturan / latest-ffmpeg-centos6.sh
Last active October 25, 2022 20:14
Installs latest ffmpeg on Centos 6
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0