Skip to content

Instantly share code, notes, and snippets.

View sijojlouis's full-sized avatar
...

Sijo Joe Louis sijojlouis

...
View GitHub Profile
@sijojlouis
sijojlouis / macos_dock_spacing
Last active September 26, 2018 15:31
Script for adding "space" separator to Dock in macOS.
#!/bin/bash
# Script for adding "space" separator to Dock in macOS.
# Before running make the file "macos_dock_spacing" executable.
# In the terminal, run
# $ chmod 700 macos_dock_spacing
# then run from the terminal as
# $ ./macos_dock_spacing
echo
@gagarine
gagarine / install-clamav-osx.md
Last active June 10, 2024 15:36
Howto Install clamav on OSX with brew

Howto Install clamav on OSX with brew

Note: on legacy intel system the path may be /usr/local/etc/clamav instead of /opt/homebrew/etc/clamav/

$ brew install clamav
$ cd /opt/homebrew/etc/clamav/
$ cp freshclam.conf.sample freshclam.conf
@James1x0
James1x0 / momentjs.humanized.triplesplit.time.js
Created January 15, 2014 19:42
Get a humanized, "Morning", "Afternoon", "Evening" from moment.js **Great for user greetings!**
function getGreetingTime (m) {
var g = null; //return g
if(!m || !m.isValid()) { return; } //if we can't find a valid or filled moment, we return.
var split_afternoon = 12 //24hr time to split the afternoon
var split_evening = 17 //24hr time to split the evening
var currentHour = parseFloat(m.format("HH"));
if(currentHour >= split_afternoon && currentHour <= split_evening) {