Skip to content

Instantly share code, notes, and snippets.

View lwd-temp's full-sized avatar
💭
I may be slow to respond.

Sunset Mikoto lwd-temp

💭
I may be slow to respond.
View GitHub Profile
@lwd-temp
lwd-temp / index.js
Created October 27, 2023 13:02 — forked from abersheeran/llama2-2-7b-chat-int8-worker.js
llama2-2-7b-chat-int8 in Cloudflare workers
import { Ai } from './vendor/@cloudflare/ai.js';
export default {
async fetch(request, env) {
const ai = new Ai(env.AI);
// prompt - simple completion style input
// let simple = {
// prompt: 'Tell me a joke about Cloudflare'
// };
@lwd-temp
lwd-temp / vmwk17key.txt
Created October 19, 2023 09:01 — forked from PurpleVibe32/vmwk17key.txt
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
*No spam just license key
@lwd-temp
lwd-temp / Genshin Impact 4.x Wish URL Android.md
Created September 28, 2023 16:11 — forked from jogerj/Genshin Impact 4.x Wish URL Android.md
Get Wish URL in Genshin Impact 4.0 on Android using Android Debugging Tools

Using Termux on Android

  1. Open and Download Termux (Do not download from Play Store as it is not up-to-date)
    • Android 11 and above: Enable Wireless Debugging on your Android phone.
    • Android 10 or below: You need a PC to enable port 5555, follow these instructions to connect then skip step 5-7.
  2. Open Termux and run pkg update && pkg install android-tools termux-api (if failed, run apt update && apt install android-tools termux-api instead)
  3. Open Settings > System > Developer Options > Wireless Debugging. Open the app switcher then tap and hold the Settings app icon. Select "Split top", then select Termux as the bottom half.
  4. Tap on "Pair device with pairing code" and a window will appear. Go to Termux and run adb pair localhost:12345 replacing 12345 with the port number shown in the window (192.168.x.x:12345).

Downloading

  • Get latest version from Github actions from here , if you dont have account you can use site like nightly.link to download it , Latest build
  • Extract zip file somewhere
chrome_bBlpF4CYiz.webm.mov

Running

  • open AssetStudioGUI then click on Options -> specify game and pick your game name , for games like GI you might have to disable shader in Options -> Export Options check Disable Shader and Disable AnimationClip
@lwd-temp
lwd-temp / docker.md
Created August 31, 2023 04:53 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@lwd-temp
lwd-temp / VMware_Keys.md
Created August 7, 2023 14:22 — forked from Vichingo455/VMware_Keys.md
VMware Workstation Pro Serial Keys

VMware Workstation Pro Serial Keys

Updated: 2022-11-18

NOTE: I DON'T GUARANTEE THE KEYS WORK, DON'T CONTACT ME IF ONE IS NOT WORKING, JUST TRY ANOTHER ONE OR QUIT THE PAGE

VMware Workstation 4.x.x

ZHDH1-UR90N-W844G-4PTN6

G1NP0-T88AL-M016F-4P8N2

ZC14J-4U16A-0A04G-4MEZP

ffmpeg -t 5 -f lavfi -i color=c=black:s=1280x720 -c:v libx265 output.mp4
@lwd-temp
lwd-temp / docker-registry-mirrors.md
Created June 30, 2023 05:12 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@lwd-temp
lwd-temp / hash.js
Created June 4, 2023 03:23
Returns a hash code from a string
/**
* Returns a hash code from a string
* @param {String} str The string to hash.
* @return {Number} A 32bit integer
* @see http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
*/
function hashCode(str) {
let hash = 0;
for (let i = 0, len = str.length; i < len; i++) {
let chr = str.charCodeAt(i);
@lwd-temp
lwd-temp / string.hashcode.js
Created June 4, 2023 03:22 — forked from hyamamoto/ string.hashcode.js
JavaScript Implementation of String.hashCode() .
/**
* Returns a hash code for a string.
* (Compatible to Java's String.hashCode())
*
* The hash code for a string object is computed as
* s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
* using number arithmetic, where s[i] is the i th character
* of the given string, n is the length of the string,
* and ^ indicates exponentiation.
* (The hash value of the empty string is zero.)