Skip to content

Instantly share code, notes, and snippets.

@ohaal
ohaal / clean-up-boot-partition-ubuntu.md
Created March 7, 2019 17:29 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@ohaal
ohaal / column-toggle-and-size-for-jira-rapid-boards.js
Last active June 13, 2017 11:51 — forked from hestenet/column-toggle-and-size-for-jira-rapid-boards.js
A javascript hack for JIRA that allows resizing of RapidBoard columns and toggling their display on/off - just add to your Announcement Banner
/////////////////////
//
// DO NOT DELETE ME!
// Please take care when editing the announcement banner - it contains custom Javascript/CSS to improve Jira's UI.
//
/////////////////////
/////////////////////
// Inspired by
// https://jira.atlassian.com/browse/GHS-3690?focusedCommentId=693585&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-693585
@ohaal
ohaal / README.md
Created December 14, 2015 11:15 — forked from atenni/README.md
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

@ohaal
ohaal / +README.md
Last active September 14, 2015 13:19
Lync Push To Talk

Lync Push To Talk

Using the Lync mute/unmute hotkey (Win + F4), allows another key to be used for push to talk.

Prereqs:

Install AutoHotkey. Note - needs to be a recent version to support the splash image.
Direct link here.

Usage

@ohaal
ohaal / ufw.md
Last active August 29, 2015 14:15 — forked from kimus/ufw.md

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

// source: https://github.com/Conlectus/WhoAmI
var rawSites = {
'programming': [
'http://blog.codinghorror.com/',
'http://thedailywtf.com/',
'http://www.hanselman.com/blog/',
'http://code.tutsplus.com',
'https://news.ycombinator.com/',
'http://www.reddit.com/r/programming/',
'http://codebetter.com',
# Set ctrl-a as prefix
set -g prefix C-a
unbind C-b
# ctrl-a passthrough by sending ctrl-a 2 times
bind C-a send-prefix
# Less delay
set -sg escape-time 1

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2

Results