Skip to content

Instantly share code, notes, and snippets.

View ekickx's full-sized avatar
👨‍🌾
tháng năm

Ekickx ekickx

👨‍🌾
tháng năm
View GitHub Profile
@GBarthos
GBarthos / spaceship.zsh
Last active December 18, 2020 09:22
ZSH config for "spaceship" theme
#! /bin/zsh
#################################################################################
### User Custom Config for ZSH theme "spaceship" ###
#################################################################################
#echo "inside user custom spaceship configs"
###
# utf8 chars
@fnky
fnky / ANSI.md
Last active November 16, 2024 21:14
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
/*
my indicator in lightdm-gtk-greeter.conf
indicators = ~host;~power;~spacer;~~Arch Linux;~spacer;~session;~clock
*/
@define-color bg rgba(20, 45, 50, 0.9);
@define-color bg_darken rgba(20, 45, 50, 0.75);
@define-color clear rgba(0, 0, 0, 0);
@define-color bg_alt #b13041;
@sebastiencs
sebastiencs / volume.sh
Last active February 13, 2024 11:19
Script to get volume notification with dunst http://imgur.com/a/qWgAw
#!/bin/bash
# You can call this script like this:
# $./volume.sh up
# $./volume.sh down
# $./volume.sh mute
function get_volume {
amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1
}
@hackerb9
hackerb9 / sixcat
Created June 3, 2017 03:36
sixcat: Like 'cat' but show images directly in the terminal using SIXEL graphics
#!/bin/bash
# sixcat: Use sixel graphics to show an image inside a terminal.
# sixgif: Use sixel graphics to play an animation inside a terminal.
# Version 1.0
# hackerb9, June 2017
# Sixel graphics are supported by terminals such as the DEC VT340 and
# emulators, such as 'xterm -ti vt340'.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 16, 2024 16:15
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@XVilka
XVilka / TrueColour.md
Last active October 29, 2024 09:43
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@sp3c73r2038
sp3c73r2038 / screenshot
Last active April 14, 2023 19:52
a script using ImageMagick to take screenshots
#!/bin/bash
DIR="${HOME}/images/screenshots"
DATE="$(date +%Y%m%d-%H%M%S)"
NAME="${DIR}/screenshot-${DATE}.png"
LOG="${DIR}/screenshots.log"
# Check if the dir to store the screenshots exists, else create it:
if [ ! -d "${DIR}" ]; then mkdir -p "${DIR}"; fi
@febuiles
febuiles / songs.md
Last active July 1, 2022 03:45
Fetching lyrics in Unix

Fetching lyrics in the command line

Objective: Print the lyrics for the current playing song.

How: We'll create a small bash script to do the fetching for us (using curl) and then we'll display it either in the terminal or in our $EDITOR

Get the current song

First we'll need to get the name of the current song and its artist: