Skip to content

Instantly share code, notes, and snippets.

View harry159821's full-sized avatar
⛩️
Cross Life wwwwwwwwwwww

黑月です harry159821

⛩️
Cross Life wwwwwwwwwwww
  • Earth, U Know
View GitHub Profile
@harry159821
harry159821 / GPT4all-langchain-demo.ipynb
Created April 5, 2023 16:43 — forked from psychemedia/GPT4all-langchain-demo.ipynb
Example of running GPT4all local LLM via langchain in a Jupyter notebook (Python)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harry159821
harry159821 / install_cuda_11_ubuntu_2204.md
Last active March 24, 2023 17:17 — forked from ksopyla/install_cuda_11_ubuntu_2004.md
How to install CUDA toolkit 11 at ubuntu 22.04

Step by step instruction how to install CUDA 11 Ubuntu 22.04

NVidia Ubuntu 22.04 repository for CUDA 11

If you need CUDA Tolkit 11 with nvcc, other tools and libraries you can install it from NVIDIA Ubunutu 22.04 repository.

Add Ubuntu 22.04 repository

// License: https://github.com/parsec-cloud/parsec-sdk/blob/master/LICENSE.md
// PARSEC API AND SDK TERMS OF USE AGREEMENT (199746555 v3)
// https://github.com/parsec-cloud/parsec-sdk/commit/07b96ec445a4f800633c5fdc5f1aaceea9856625
'use strict';
const k = {
0: 0,
1: 1,
2: 2,
3: 3,
4: 9,
@harry159821
harry159821 / ue4-slim.bat
Created June 11, 2022 16:51 — forked from mfoda/ue4-slim.bat
UE4 slim installation (Win64 only)
./Setup.bat -exclude=WinRT -exclude=Mac -exclude=MacOS -exclude=MacOSX -exclude=osx -exclude=osx64 -exclude=osx32 -exclude=Android -exclude=IOS -exclude=TVOS -exclude=Linux -exclude=Linux32 -exclude=Linux64 -exclude=linux_x64 -exclude=HTML5 -exclude=PS4 -exclude=XboxOne -exclude=Switch -exclude=Dingo -exclude=Win32 -exclude=GoogleVR -exclude=GoogleTest -exclude=LeapMotion
@harry159821
harry159821 / ue4-slim.bat
Created June 11, 2022 16:51 — forked from mfoda/ue4-slim.bat
UE4 slim installation (Win64 only)
./Setup.bat -exclude=WinRT -exclude=Mac -exclude=MacOS -exclude=MacOSX -exclude=osx -exclude=osx64 -exclude=osx32 -exclude=Android -exclude=IOS -exclude=TVOS -exclude=Linux -exclude=Linux32 -exclude=Linux64 -exclude=linux_x64 -exclude=HTML5 -exclude=PS4 -exclude=XboxOne -exclude=Switch -exclude=Dingo -exclude=Win32 -exclude=GoogleVR -exclude=GoogleTest -exclude=LeapMotion
@harry159821
harry159821 / gist:51d3d002e4d7d890ccf1b0f2da983288
Created October 7, 2020 16:06 — forked from chenshaoju/for_new_version.txt
Oneplus 5T OxygenOS bloatware cleanup.
cd /system/app/
rm -rf Account
rm -rf card
rm -rf Drive
rm -rf Duo
rm -rf GooglePay
rm -rf Gmail2
rm -rf Maps
rm -rf Music2
rm -rf NVBackupUI
@harry159821
harry159821 / migrate_repo.sh
Created April 25, 2019 15:53 — forked from mariozig/migrate_repo.sh
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
# Assume we are in your home directory
cd ~/
# Clone the repo from GitLab using the `--mirror` option
$ git clone --mirror git@your-gitlab-site.com:mario/my-repo.git
# Change into newly created repo directory
$ cd ~/my-repo.git
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks.
@harry159821
harry159821 / movingsub.lua
Created October 4, 2018 11:30 — forked from jonniek/movingsub.lua
moving external subs for mpv
--mpv.conf -> input-ipc-server=/tmp/mpvsocket
--$ echo 'script-message addscrollingsub "hello world"' | socat - /tmp/mpvsocket
local assdraw = require("mp.assdraw")
local utils = require("mp.utils")
local settings = {
ass_style = "\\1c&HC8C8B4\\fs33\\bord2",
speed = 0.3
}
@harry159821
harry159821 / micropython-esp8266-scheduler.py
Created November 14, 2017 02:54 — forked from hiway/micropython-esp8266-scheduler.py
First draft of a rudimentary async/ await based scheduler that can run coroutines that share time by sleeping and handing over control.
import gc
import time
CLOCK_PERIOD = 0x3fffffff # ACTUAL: overflows at 1073741823 microseconds (1073.74 seconds)
# CLOCK_PERIOD = 0x3ffffff # TESTING: overflow at: 67108863 (67.10 seconds)
# CLOCK_PERIOD = 0x3fffff # IMPATIENT TESTING: overflow at: 4194303 (4.19 seconds)
MAX_TIMEOUT = CLOCK_PERIOD // 2
MAX_SECONDS = MAX_TIMEOUT // (10 ** 6) # 536.87 seconds
PLATFORM_ESP = 1