Skip to content

Instantly share code, notes, and snippets.

@fredjoseph
fredjoseph / AwesomeCliApps.md
Last active December 6, 2025 07:47
Awesome CLI/Terminal Apps

Awesome Apps

  • description: Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, fish, tmux, IPython, Awesome, i3 and Qtile.
  • language: Python
  • description: If you like the interface of HTTPie but miss the features of curl, curlie is what you are searching for. Curlie is a frontend to curl that adds the ease of use of httpie, without compromising on features and performance. All curl options are exposed with syntax sugar and output formatting inspired from httpie.
  • language: Go
@fredjoseph
fredjoseph / Zsh.md
Last active November 22, 2025 16:52
Zsh

Config files

To configure Zsh for your user’s session, you can use the following files:

  • $ZDOTDIR/.zshenv
  • $ZDOTDIR/.zprofile
  • $ZDOTDIR/.zshrc
  • $ZDOTDIR/.zlogin
  • $ZDOTDIR/.zlogout

By default, Zsh will try to find the user’s configuration files in the $HOME directory. You can change it by setting the environment variable $ZDOTDIR.

@fredjoseph
fredjoseph / tmux.md
Last active March 12, 2022 13:36
Tmux

Intro

When you launch tmux, it will create a tmux-server, a session, a window and a pane.

tmux Server

The tmux server manage every single tmux session. If you kill it, you kill every session as well. You can try it by yourself with the command tmux kill-server.

Sessions

We spoke about sessions before. You can detach them from a client (and let them run in the background) and attach them back.

Windows

In tmux, a window represent an entire screen. You can have multiple windows open in one session. You can access each window via a tab in the tmux status bar, at the bottom.

@fredjoseph
fredjoseph / jq.md
Last active October 23, 2021 14:48
jq

jq

See Manual for further examples

Samples

  • Parse an array of JSON documents and decode a field (payload) encoded in base64 (requires jq v1.6)
jq '[.[] | {source: ., payload: (.payload | @base64d | fromjson)}]' RabbitMQ.log -C | less -R
  • Removing Quotes From jq Output
@fredjoseph
fredjoseph / Mongo.md
Last active June 20, 2020 12:34
MongoDB

Mongo

  • Launch Mongo shell
    mongo
  • List databases
    db.adminCommand( { listDatabases: 1 } )
    show dbs
  • Connect to databases
    use <dbName>
  • Show collections
    show collections
@fredjoseph
fredjoseph / RabbitMQ.md
Last active January 5, 2024 06:35
RabbitMQ

RabbitMQ

rabbitmqadmin

  • Get a list of exchanges for the specified vhost rabbitmqadmin -V / list exchanges
  • Get a list of queues, with some columns specified rabbitmqadmin list queues vhost name node messages message_stats.publish_details.rate
  • Get a list of queues with all details we can take rabbitmqadmin -f long -d 3 list queues
  • Publish a message
@fredjoseph
fredjoseph / VSCode.md
Last active April 26, 2023 20:42
VSCode - Tips

Une version light est disponible en ligne à l'adresse vscode.dev et permet de consulter/éditer rapidement des fichiers dans le cas où vous n'êtes pas sur votre poste personnel ou dans l'impossibilité d'installer VsCode sur celui-ci.

Tips

  • Save extensions
    code --list-extensions > vscode-extensions.list
  • Restore extensions
    cat vscode-extensions.list | xargs -L 1 code --install-extension
  • Disable all Extensions for a session
    code --disable-extensions
  • Load with an alternate extensions directory
@fredjoseph
fredjoseph / IntelliJ.md
Last active September 20, 2021 18:09
IntelliJ - Tips

Tips

Invalid Target byte code

I have multiple modules, and some modules keep having their Target byte code being changed/reset to 1.5 I have set the Target byte code version to 1.8 (many many times), yet idea keeps changing the setting. Additionally, when I goto Project Settings > Modules the language level is also being changed by Idea from 8 to 5.

  • Solution You can stop IntelliJ IDEA from importing maven-compiler configuration by adding the following into Help | Edit Custom VM Options, then restart IntelliJ IDEA :
-Didea.maven.disable.MavenCompilerConfigurer=true
@fredjoseph
fredjoseph / VirtualBox.md
Last active May 5, 2022 13:44
VirtualBox - Tips and tricks

Tips

Mouse click lost after a while

The solution is to search and kill the processes named /usr/bin/VBoxClient --draganddrop

  • Search pgrep -a VBoxClient
  • Kill kill <pid> (or do both with tools like htop)

Shared clipboard lost after a while

The solution is to kill the current processes named /usr/bin/VBoxClient --clipboard and start a new one.

  • Search pgrep -a VBoxClient
  • Kill kill <pid> (or do both with tools like htop)
@fredjoseph
fredjoseph / Snap.md
Last active June 22, 2022 07:26
Snap App - CheatSheet
  • Search Snap app snap find vlc

  • Show App info snap info vlc

  • Install App sudo snap install vlc

  • List all apps