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 [email protected]: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 / printDictToListAsTable.py
Last active December 29, 2018 01:25
Pretty print dict to list as tabular table
#!/usr/bin/python3
# -*- coding:utf-8 -*-
'''
Pretty print list as tabular table
'''
crop = {
"农业用地通用": "AGRL", "农业行种作物": "AGRR", "近距离种植作物": "AGRC", "果园": "ORCD", "干草": "HAY", "混交林": "FRST", "落叶林": "FRSD", "常绿林": "FRSE", "湿地混合": "WETL", "森林湿地": "WETF", "非森林湿地": "WETN", "牧场": "PAST", "夏季牧场": "SPAS", "冬季牧场": "WPAS", "禾本科牧草": "RNGE", "灌木": "RNGB", "美国西南部山脉": "SWRN", "水": "WATR", "玉米": "CORN", "玉米青贮": "CSIL", "甜玉米": "SCRN", "东部Gamagrass": "EGAM", "高粱": "GRSG", "高粱干草": "SGHY", "约翰逊草": "JHGR", "甘蔗": "SUGC", "春小麦": "SWHT", "冬小麦": "WWHT", "硬粒小麦": "DWHT", "黑麦": "RYE", "春大麦": "BARL", "燕麦": "OATS", "水稻": "RICE", "珍珠粟": "PMIL", "蒂莫西": "TIMO", "无芒雀麦": "BROS", "草甸雀麦草": "PECD", "高羊茅": "FESC", "肯塔基蓝草": "BLUG", "狗牙根": "BERM", "有冠麦草": "DCCY", "西麦草": "WWGR", "细麦草": "ZHCY", "意大利黑麦草": "RYEG", "俄罗斯野生蜀葵": "RYER", "阿尔泰野生蜀葵": "SFZB", "侧翼格拉马": "SIDE", "大须芒草": "BBLS", "小须芒草": "LBLS", "阿拉莫柳枝稷": "SWCH", "印度草": "INDN", "紫花苜蓿": "ALFA", "草木樨": "CLVS", "红三叶草": "CLVR", "Alsike三叶草": "CLVA", "黄豆": "SOYB", "豇豆": "CWPS", "绿豆": "MUNG", "利马豆"
@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
}