Skip to content

Instantly share code, notes, and snippets.

View chocobn69's full-sized avatar
🏸
Working

chocobn69 chocobn69

🏸
Working
View GitHub Profile

new pg server

compilation

./configure \
--with-systemd \
--with-libxml \
--with-pam \
--with-system-tzdata=/usr/share/zoneinfo \
--with-uuid=e2fs \
--with-openssl \
@VladimirPal
VladimirPal / neomuttrc
Last active March 30, 2024 11:59
Minimal neomutt config for gmail imap
set imap_user="mail.vpal@gmail.com"
set imap_pass=`/usr/bin/security find-generic-password -w -a 'mail.vpal@gmail.com' -s 'Gmail'`
set folder=imaps://imap.gmail.com/
set spoolfile=+INBOX
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
# https://www.neomutt.org/guide/reference search sleep_time for additional info
set sleep_time=0 # be faster
@chocobn69
chocobn69 / vrack.service
Created August 2, 2016 07:57
vrack @ ovh with archlinux / systemd
[Unit]
Description=Vrack Connectivity
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-eth1.device
After=sys-subsystem-net-devices-eth1.device
[Service]
Type=oneshot
RemainAfterExit=yes
@TaurusOlson
TaurusOlson / venv_temp.sh
Last active June 30, 2016 06:00
A bash sript creating a temporary Python virtual environment with optional packages.
#! /bin/bash
function usage() {
cat <<EOF
Create a temporary Python virtual environment with optional packages.
Usage:
$(basename $0) [package1 package2...]
@jmkim
jmkim / README.md
Last active November 3, 2017 21:07
HHKB layout for standard keyboard, using xkb

HHKB layout for standard keyboard, using xkb

Fully working on Ubuntu 16.04 LTS

This symbol will do:

  • Swap Backspace and Backslash
  • Swap CapsLock with Right Ctrl
@apolloclark
apolloclark / postgres cheatsheet.md
Last active March 7, 2024 13:53
postgres cheatsheet

Postgres Cheatsheet

This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.

Setup

installation, Ubuntu

http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL

@pascalpoitras
pascalpoitras / config.md
Last active May 11, 2024 04:13
My WeeChat configuration

WeeChat Screenshot

Mouse


enable