Skip to content

Instantly share code, notes, and snippets.

View canh25xp's full-sized avatar
🙂
breathing

Ngô Văn Cảnh canh25xp

🙂
breathing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active November 13, 2025 15:48
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@Pulimet
Pulimet / AdbCommands
Last active November 15, 2025 02:36
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@JuneKelly
JuneKelly / BaselineTest.txt
Created December 12, 2017 13:45
Full text of the Baseline Test from Blade Runner 2049
A blood black nothingness began to spin.
Began to spin.
Let's move on to system.
System.
Feel that in your body.
@kurlov
kurlov / mkv embed soft subtitles
Created December 16, 2017 23:41
ffmpeg command to add .srt based subtitles to an .mkv file
ffmpeg -i in.mkv -f srt -i in.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt out.mkv
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active November 2, 2025 23:00
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@kha-dinh
kha-dinh / SioyekNeovim.md
Last active September 14, 2025 16:40
Lunarvim/Neovim+Sioyek+Synctex

This took me some time to figure out. Works like a charm, VimtexInverseSearch as well as texlab did not work for me. I use Lunarvim so I haven't try it on vanilla Neovim.

You first need to install the package neovim-remote on your platform.

Then, use the following configuration in your Packer declaration where vimtex is declared:

 {
        'lervag/vimtex',
        ft = { 'tex', 'bib' }, -- for lazy loading
@stekks
stekks / nvims.ps1
Last active August 3, 2024 18:43
Start Neovim with different configs in Powershell
# Start NeoVim (>0.9) with different configurations. See: https://www.youtube.com/watch?v=LkHjJlSgKZY
# Unfortunately aliases are very limited so I opted for a function and it isn't possible to bind hotkeys AFAIK.
#
# Add this to $PROFILE
# in $items add the name of the config directory (in the same root as the orginal 'nvim' directory)
#
# The 'nvim_lazy' function is an 'alias' to directly start an nvim with a configuration.
# The 'nvims' function lets you choose a config using 'fzf'. (be sure to have 'fzf' installed, I use Scoop to install Powershell tools)
#
@devmaars
devmaars / Termux SSH Tutorial.md
Created April 5, 2024 15:05
This guide will show you how to set up an ssh server on your phone using Termux and connect to it from your computer. This is useful if you want to access your phone's files or run commands on your phone from your computer.

How to ssh to termux the right way

Termux

Requirements

  • Termux (From F-Droid)
  • ADB (Android Debug Bridge)
  • USB Cable (Wireless connection is also possible but it's slower)
@zadjii-msft
zadjii-msft / README.md
Last active October 14, 2025 23:37
Warp Workflows for the Windows Terminal

Add all the Warp Workflows to Windows Terminal

With a combination of features all available in Windows Terminal 1.22, you can now add all your favorite Warp Workflows directly to the Windows Terminal.

image image

This works by adding the workflows to your settings via a "settings fragment". You can then open a menu with all these workflows with the openSuggestions action.