Skip to content

Instantly share code, notes, and snippets.

View salverde's full-sized avatar

salomonic salverde

View GitHub Profile
@salverde
salverde / keybase.md
Created April 23, 2024 20:11
keybase proof

Keybase proof

I hereby claim:

  • I am salverde on github.
  • I am s13e (https://keybase.io/s13e) on keybase.
  • I have a public key ASBGNrBfLsVubNLv7ymKIs6R7bOtQActXTaAuLztzDEQcgo

To claim this, I am signing this object:

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@salverde
salverde / convert_flac_to_aac.sh
Created January 13, 2022 11:07 — forked from kerma/convert_flac_to_aac.sh
Convert all flac files in folder to m4a using ffmpeg and libfdk_aac
# on os x use brew to get ffmpeg with libfdk_aac
brew install ffmpeg --with-fdk-aac
# convert and use m4a as file extension
find . -name '*.flac' -exec sh -c 'ffmpeg -i "$1" -c:a libfdk_aac -b:a 320k "${1%.flac}.m4a"' _ {} \;
@salverde
salverde / .tigrc
Created November 26, 2018 12:56 — forked from spicycode/.tigrc
my tigrc
# vim: set expandtab sw=4 tabstop=4:
# *color* 'area' 'fgcolor' 'bgcolor' '[attributes]'
# general
color default 15 235
color cursor 15 241
color title-focus 242 221
color title-blur 242 221
color delimiter 213 default
color author 156 default
@salverde
salverde / uninstall-chefdk-macos.sh
Last active August 10, 2018 13:11
Uninstalll chef on macOS
" Use the following commands to remove the Chef development kit on macOS.
" To remove installed files:
>$ sudo rm -rf /opt/chefdk
"To remove the system installation entry:
>$ sudo pkgutil --forget com.getchef.pkg.chefdk
" To remove symlinks:
" For chef-client version 12.x, under /usr/local/bin:
>$ sudo find /usr/local/bin -lname '/opt/chefdk/*' -delete
@salverde
salverde / tmux-cheatsheet.markdown
Created August 4, 2018 00:58 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@salverde
salverde / InstallingAgOnCentOS.md
Created December 1, 2017 00:02 — forked from rkaneko/InstallingAgOnCentOS.md
Installing ag: the silver searcher on CentOS.

Installing ag on CentOS

Prerequistes

  • libpcre
  • liblzma

Download, build and install

@salverde
salverde / check_docker_container.sh
Created November 21, 2017 08:07 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: [email protected]
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Depending on your docker configuration, root might be required. If your nrpe user has rights
# to talk to the docker daemon, then root is not required. This is why root privileges are not
@salverde
salverde / Build_Vim8.0_RHEL2.6.md
Last active October 19, 2017 00:08 — forked from junxie6/Build_Vim7.4_CentOS7.txt
Compile the latest Vim 8.0 on RHEL2.6.x

Compile the Vim 8.0 on RHEL 2.6.x

$ yum install gcc make ncurses ncurses-devel
$ yum install ruby ruby-devel lua lua-devel luajit \
  luajit-devel ctags git python python-devel \
  python3 python3-devel tcl-devel \
  perl perl-devel perl-ExtUtils-ParseXS \
  perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \
  perl-ExtUtils-Embed
$ yum clean all
@salverde
salverde / Sublime Text License Key
Last active September 15, 2017 05:10 — forked from abriemme/Sublime Text License Key
Sublime License Info
crack Sublime Text (2 and 3)
1. Open Sublime in a HEX editor (the executable file)
2. Find 43 33 33 42 30 32
3. Replace in the string 33 42 with 32 42
4. Save
5. Enter the license below:
—–BEGIN LICENSE—–
Patrick Carey