Skip to content

Instantly share code, notes, and snippets.

View perfectayush's full-sized avatar

Ayush Goyal perfectayush

  • Delhi, India
View GitHub Profile
@perfectayush
perfectayush / keybase.md
Created June 25, 2021 20:10
keybase.md

Keybase proof

I hereby claim:

  • I am perfectayush on github.
  • I am perfectayush (https://keybase.io/perfectayush) on keybase.
  • I have a public key ASDZ5c8dS6VQ9VYrkSzgi_y588A02LQbV0Fc09tIQ2fQpwo

To claim this, I am signing this object:

@perfectayush
perfectayush / lsyncd-config
Created May 2, 2013 13:35
lsyncd-config used for logging
scriptdir="/opt/lsyncd/"
file_mod_dir="/opt/lsyncd/tmp/modify"
file_del_dir="/opt/lsyncd/tmp/delete"
function split_path(filename)
local root, dir, basename
local i, j = filename:find("[^/]*$")
if filename:sub(1, 1) == "/" then
root = "/"
dir = filename:sub(2, i - 1)