Skip to content

Instantly share code, notes, and snippets.

Daniel Vena vena

  • Philly
Block or report user

Report or block vena

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vena
vena / dhcp-client
Created Jul 8, 2019
Mikrotik scripts
View dhcp-client
{
# dhcp-client lease script
# Updates Namecheap DDNS
do {
:if ($bound=1) do={
:local ddnsURI "https://dynamicdns.park-your-domain.com/update"
:local ddnsHostname "myhostname"
:local ddnsDomain "mydomain.com"
:local ddnsPassword "REPLACE WITH NAMECHEAP DDNS PASSWORD"
# Delay to allow for new route to be established
View keybase.md

Keybase proof

I hereby claim:

  • I am vena on github.
  • I am vena (https://keybase.io/vena) on keybase.
  • I have a public key ASBxpVI-kZ4cBsHdtft-bZNv-oX2rBi30mZ5QkJNHQMa1Qo

To claim this, I am signing this object:

@vena
vena / gatekeeper
Last active Jan 14, 2017
easy dis/enabling gatekeeper in macOS 10.12. a tiny script i put in /usr/local/bin, filename "gatekeeper" so i don't have to remember spctl, just "gatekeeper on" and "gatekeeper off"
View gatekeeper
#!/bin/bash
# Allows easily dis/enabling gatekeeper
# Place in /usr/local/bin/ for easy-access,
# don't forget to chmod +x
case "$1" in
on)
sudo spctl --master-enable
sleep 0.25
sudo spctl --status
@vena
vena / gist:2856490
Created Jun 2, 2012
Netatalk 3.0 beta installation procedure (Ubuntu 12.04)
View gist:2856490

Install prerequisites:

$ sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev

Download src:

$ cd /usr/local/src
$ git clone git://netatalk.git.sourceforge.net/gitroot/netatalk/netatalk
$ cd netatalk
$ ./bootstrap
@vena
vena / mount-greyhole
Created Jun 2, 2012
[Greyhole] Upstart tools for mounting shares locally at startup
View mount-greyhole
#!/bin/sh
# Mounts available greyhole shares locally
# - Depends on "greyhole" in comment property for SMB share definition
# - Depends on .smb_credentials file in defined MGS_USER's home dir
# Default environment
[ -z "$MGS_USER" ] && MGS_USER=`id -u`
[ -z "$MGS_GROUP" ] && MGS_GROUP=`id -g`
[ -z "$MGS_ROOT" ] && MGS_ROOT=`pwd`
[ -z "$MGS_FILE_MODE" ] && MGS_FILE_MODE="0744"
@vena
vena / auto_smb
Created Feb 21, 2012
[OS X 10.7] autofs executable map to mount all SMB shared from a given server
View auto_smb
#!/bin/bash
#####################################
# Save this to /etc/auto_smb
# Set execution bit with chmod +x /etc/auto_smb
# Add this in /etc/auto_master as:
# /mountpoint auto_smb
#
# Create .smb_credentials file in user home dir
# format:
# username=[username]
View chroot_local-hooks..setup.chroot
#!/bin/sh
# Install into config/chroot_local-hooks
# chmod +x
export bold=`tput bold`
export normal=`tput sgr0`
echo "----------------------------------------------------------"
echo "----------------------------------------------------------"
echo "\n"
You can’t perform that action at this time.