Skip to content

Instantly share code, notes, and snippets.

@stenuto
stenuto / hls.sh
Created November 7, 2024 16:58
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@nikolovlazar
nikolovlazar / keybindings.json
Last active April 17, 2025 22:10
VSCode key bindings to navigate like Neovim
[
// Navigation
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
@nikolovlazar
nikolovlazar / dotfiles-install.sh
Last active June 16, 2023 01:14
Dotfiles installation script
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
git clone --bare https://github.com/nikolovlazar/dotfiles.git $HOME/.dotfiles
function dotfiles {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .config-backup
@nikolovlazar
nikolovlazar / .zshrc
Last active March 31, 2022 06:18
VSCode Settings
if [[ "${VSC}" == "yep" ]]
then
PS1='$ > '
fi
UPDATE wp_options SET option_value = replace(option_value, 'http://sezavino.mk', 'https://sezavino.mk') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://ivankarangelova.com','https://sezavino.mk');
UPDATE wp_posts SET post_content = replace(post_content, 'http://ivankarangelova.com', 'https://sezavino.mk');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://ivankarangelova.com','https://sezavino.mk');
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active August 3, 2024 16:45
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>