-
Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.
-
Update system packages in Termux:
$ pkg update -y
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
diff --git a/pkgs/by-name/uf/ufetch/0001-optimize-packages-command.patch b/pkgs/by-name/uf/ufetch/0001-optimize-packages-command.patch | |
deleted file mode 100644 | |
index e303db4968a8..000000000000 | |
--- a/pkgs/by-name/uf/ufetch/0001-optimize-packages-command.patch | |
+++ /dev/null | |
@@ -1,20 +0,0 @@ | |
-diff --git a/ufetch-nixos b/ufetch-nixos | |
-index 2ca8f9d..5102cd7 100755 | |
---- a/ufetch-nixos | |
-+++ b/ufetch-nixos |
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
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' | |
local uv = vim.uv or vim.loop | |
-- Auto-install lazy.nvim if not present | |
if not uv.fs_stat(lazypath) then | |
print('Installing lazy.nvim....') | |
vim.fn.system({ | |
'git', | |
'clone', | |
'--filter=blob:none', |
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
package main | |
import ( | |
"errors" | |
"log" | |
"strings" | |
"syscall" | |
"unsafe" | |
) |
# to install this exact revision
scoop install https://gist.githubusercontent.com/phanirithvij/721ad13ee857e0dbb695161812625a81/raw/cf89b9a6c996867becf169e8f85d221ceab1990f/bucketlist.json
# can also install from my bucket (which I might keep upto-date)
scoop bucket add scoop-rithvij https://github.com/phanirithvij/scop
scoop install scoop-rithvij/bucketlist
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
#!/bin/bash | |
# Compiled by following instructions on https://wiki.cacert.org/FAQ/ImportRootCert | |
ADB="/home/christian/android-sdk-linux/platform-tools/adb" | |
ROOT_CRT="cacert-root.crt" | |
INT_CRT="cacert-class3.crt" | |
curl -o "$ROOT_CRT" "https://www.cacert.org/certs/root.crt" | |
curl -o "$INT_CRT" "https://www.cacert.org/certs/class3.crt" |
- audio files genereated from ffmpeg from the video, trimming first 9 secs
ffmpeg.exe -i input.mkv -acodec flac -bits_per_raw_sample 16 -ar 44100 output.flac
ffmpeg -i input.mkv output.wav
ffmpeg.exe -i output.wav -vn -ar 44100 -ac 2 -b:a 320k output_320k.mp3
ffmpeg.exe -i output.wav -vn -ar 44100 -ac 2 -b:a 128k output_128k.mp3
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
package main | |
import ( | |
"fmt" | |
"io" | |
"net" | |
) | |
func main() { | |
ln, err := net.Listen("tcp", ":8080") |
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
@-moz-document domain("notion.so") { | |
::-webkit-scrollbar { | |
width: 10px; | |
} | |
::-webkit-scrollbar-track { | |
background: #414141; | |
} |
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
package main | |
import ( | |
"archive/zip" | |
"errors" | |
"io" | |
"log" | |
"os" | |
"path/filepath" |
NewerOlder