Skip to content

Instantly share code, notes, and snippets.

@Jetchisel
Jetchisel / myweechat.md
Created September 27, 2018 15:11 — forked from pascalpoitras/1.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse

/mouse enable

Encrypted password in sec.conf

@Jetchisel
Jetchisel / datediff.sh
Created September 15, 2018 13:33 — forked from stranger777/datediff.sh
Simplest calculator two dates difference. By default in days
#!/bin/bash
#Simplest calculator two dates difference. By default in days
# Usage:
# ./datediff.sh first_date second_date [-(s|m|h|d) | --(seconds|minutes|hours|days)]
first_date=$(date -d "$1" "+%s")
second_date=$(date -d "$2" "+%s")
case "$3" in
@Jetchisel
Jetchisel / update.md
Created February 4, 2018 21:43
Updating your bash on mac

Updating bash on mac operating systems

Due to bash changing its license to GPLv3 in 4.0, Apple will no longer be shipping mac operating systems with updated versions of bash (3.2 is the highest version they will ship). The following steps can be used to successfully update your bash to the latest release (at this time, 4.4.12). This has been tested on the following releases:

  • Mac OSx El Capitan
  • macOS Sierra
  • macOS High Sierra

Installing homebrew

@Jetchisel
Jetchisel / README-Template.md
Created January 4, 2018 00:58 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Jetchisel
Jetchisel / sdb
Last active January 8, 2018 02:53 — forked from outcoldman/dbhist.sh
sdb: bash history in sqlite
# ============================================================================================ #
#: Title : sdb #
#: Sypnosis : sdb [OPTIONS]... [QUERY]... #
#: Date Created : Sat 25 Nov 2017 10:10:47 AM +08 / Sat Nov 25 02:10:47 UTC 2017 #
#: Last Edit : Mon 08 Jan 2018 10:03:37 AM +08 / Mon Jan 8 02:03:37 UTC 2018 #
#: License : MIT #
#: Version : 1.4.4 #
#: Maintainer : Jason V. Ferrer '<jetchisel@opensuse.org>' #
#: Description : log bash_history in a database (A fork of dbhist.sh from Dennis Gladkikh) #
#: Options : [abdehlmnprsuvwzEHS] #