Skip to content

Instantly share code, notes, and snippets.

View Kerruba's full-sized avatar
♥️

Luca Cherubin Kerruba

♥️
  • Milkman Technologies
  • Padova - IT
View GitHub Profile
@JPenuchot
JPenuchot / .zshrc
Last active July 8, 2021 04:39
~/.config/i3/config for my Dell XPS 13 HiDPI running on Solus
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/home/jpenuchot/node_modules/.bin:$HOME/.cargo/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
#!/usr/bin/env bash
origin=("${@: 1:$#-1}")
dest=${@: -1}
echo "Process started"
head -n 1 ${origin[0]} > ${dest}
echo "Combining files"
for f in ${origin[@]}
@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active June 3, 2024 07:24
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

@Itrulia
Itrulia / SmashingConf Oxford 2016 Talks.md
Last active July 17, 2016 20:15
SmashingConf Oxford 2016 Talks
@Kartones
Kartones / postgres-cheatsheet.md
Last active June 18, 2024 15:09
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)