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] #
@Jetchisel
Jetchisel / gist:eaa56eaf334dabe42f3e3859ea32038b
Created October 28, 2016 11:30
Password for bootloader
#!/usr/bin/env bash
# =========================================================================================== #
#: Title : Grub2Passwd #
#: Sypnosis : Grub2Passwd #
#: Date Created : Sat Aug 9 16:23:31 PHT 2014 / Sat Aug 9 08:23:31 UTC 2014 #
#: Last Edit : Mon Aug 18 03:49:08 PHT 2014 / Sun Aug 17 19:49:08 UTC 2014 #
#: License : WTFPL version 1 or 2 (https://en.wikipedia.org/wiki/WTFPL) #
#: Version : 1.0.0 #
#: Author : Jason V. Ferrer '<jetchisel@opensuse.org>' #
This file has been truncated, but you can view the full file.
Loading repository data...
Reading installed packages...
S | Name
@Jetchisel
Jetchisel / snmap
Created November 19, 2014 03:09
A port scanner on the subnet you are in.
#!/bin/bash
#
# Description: Port scanner on a subnet you are in.
# Author: jechisel '<jetchisel@opensuse.org>'
# License: WTFPL http://www.wtfpl.net/
# Note: Kids make sure you are allowed to scan the subnet :-)
Opts=(-P0 -n -sS --max_hostgroup 1 --max_retries 0 --max_parallelism 10)
@Jetchisel
Jetchisel / download13.2
Created November 4, 2014 01:36
script to download 13.2 iso
#!/bin/bash
isolink='http://195.135.221.134/distribution/13.2/iso/openSUSE-13.2-DVD-x86_64.iso'
nseconds=5
directory=$HOME/Downloads/13.2
until wget --spider "$isolink" >/dev/null 2>&1; do
echo '13.2 iso is still not available'
sleep "$nseconds"
#!/usr/bin/env bash
# ============================================================================================ #
#: Title : VBoxAutoSave #
#: Sypnosis : VBoxAutoSave #
#: Date Created : Mon Jul 29 23:25:50 PHT 2013 #
#: Last Edit : Sat May 24 20:46:17 PHT 2014 / Sat May 24 12:46:17 UTC 2014 #
#: License : GPLv3 #
#: Version : 1.0 #
#: Author : Jason V. Ferrer '<jetchisel@opensuse.org>' #