# put stock boot.img into /sdcard/boot.img
# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 2)
π¨βπ»
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download latest neovim release from GitHub releases and pipe it to tar to extract it to /usr | |
curl -sL https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz \ | |
| sudo tar -xzf - --strip-components=1 --overwrite -C /usr | |
This explains how to set up Vim on Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2) in order to share the clipboard between Windows and Ubuntu.
- Windows 10 Home
- Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2)
- Build Vim with the clipboard option enabled
- Set up VcXsrv Windows X Server
ngrok allows you to expose a web server running on your local machine to the internet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jenkinsfile VIM syntax highlighting | |
echo 'au BufNewFile,BufRead Jenkinsfile setf groovy' >> ~/.vimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************* | |
* File Name : surfingkeys_config.js | |
* Created By : Ye Chang | |
* Creation Date : [2017-12-22 21:55] | |
* Last Modified : [2023-11-19 13:35] | |
* Description : | |
**************************************************************/ | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// - Surfingkeys: https://github.com/brookhong/Surfingkeys#properties-list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------------------------------------------------------------------------------------- | |
// // Surfingkeys: https://github.com/brookhong/Surfingkeys#properties-list | |
// // Dracula Theme: https://github.com/dracula/dracula-theme#color-palette | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Map Keys | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change default search engine | |
//settings.defaultSearchEngine = "w"; | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change hints styles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { OnDestroy } from '@angular/core'; | |
import { Subject } from 'rxjs/Subject'; | |
export abstract class BaseComponent implements OnDestroy { | |
protected destroyed$: Subject<boolean> = new Subject(); | |
protected constructor() {} | |
ngOnDestroy(): void { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ββββββββββ | |
// β€ NOTES | |
//βββ | |
// | |
// | |
// Vivaldi keyboard shortcuts are preferred when they need to: | |
// β work on browser chrome windows :- always available | |
// β happen in an independent process, not blocked by page events :- faster, snappier | |
// | |
// Surfingkeys keyboard shortcuts are preferred otherwise as they: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function combinationsCount(m, n) { | |
if (m < n) { | |
return 0; | |
} else if (m === n || n === 0) { | |
return 1; | |
} else { | |
var c = 1, i; | |
for (i = n + 1; i <= m; i ++) { | |
c *= i; | |
} |
NewerOlder