Skip to content

Instantly share code, notes, and snippets.

@etcook
etcook / ip-down
Created November 6, 2019 01:07 — forked from blt04/ip-down
OSX VPN Scripts: The built in Mac VPN client doesn't have too many options but you can easily apply custom settings via scripts. Here are some examples of how to customize your VPN connections. Just put these two files in /etc/ppp and customize. Make sure you `chmod 0755 /etc/ppp/ip-up /etc/ppp/ip-down`. For more information, see `man pppd`.
#!/bin/bash
#
# /etc/ppp/ip-down
#
# When the ppp link goes down, this script is called with the following
# parameters
# $1 the interface name used by pppd (e.g. ppp3)
# $2 the tty device name
# $3 the tty device speed
# $4 the local IP address for the interface
Verifying my Blockstack ID is secured with the address 1GGzCLAb3yarWQ9nVRDK7jrfX55tUWDuR1 https://explorer.blockstack.org/address/1GGzCLAb3yarWQ9nVRDK7jrfX55tUWDuR1
#initializer to new initialized object
class petClass:
name = ""
type = ""
owner = ""
age = ""
def __init__(self, name, age, type, owner):
self.name = name
<VirtualHost *:80>
ServerName pow
ServerAlias *.dev
ServerAlias *.xip.io
ProxyPass / http://localhost:20559/
ProxyPassReverse / http://localhost:20559/
ProxyPreserveHost On
</VirtualHost>

Keybase proof

I hereby claim:

  • I am etcook on github.
  • I am etc (https://keybase.io/etc) on keybase.
  • I have a public key whose fingerprint is 8C7F 189C 5903 4EAE 1014 FA86 44B6 D695 3D87 D2F9

To claim this, I am signing this object:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html><head><title>Computers list on your network</title></head>
<body>
<h3>Computers list on your network</h3>
<br><h4>Created by using <a href="http://www.nirsoft.net/" target="newwin">WakeMeOnLan</a></h4><p><table border="1" cellpadding="5"><tr bgcolor="E0E0E0">
<th>IP Address
<th>Computer Name
<th>MAC Address
<th>Network Adapter Company
@etcook
etcook / dssh
Last active August 29, 2015 14:19 — forked from kareemk/dssh
#!/usr/bin/ruby
require 'net/http'
require 'json'
raise "Invalid arguments: dssh [container-name] [command=/bin/bash]" if ARGV.length < 1
service_name = "#{ARGV[0]}"
ARGV[1] ||= "/bin/bash"
command = ARGV[1..-1].join(' ')

Keybase proof

I hereby claim:

  • I am etcook on github.
  • I am etc (https://keybase.io/etc) on keybase.
  • I have a public key whose fingerprint is 1746 1F83 BA36 C4CD 8D64 B892 AEA5 31FE D666 4A64

To claim this, I am signing this object:

<?php
/*
* Plugin Name: wpMandrill MS
* Plugin URI: trepmal.com
* Description: Network-wide settings for wpMandrill.
* Version: 2013.04.01
* Author: Kailey Lampert
* Author URI: kaileylampert.com
* License: GPLv2 or later
* TextDomain: wpmandrill-ms
@etcook
etcook / time_output.rb
Created December 8, 2013 22:51
Output User Creation Time
<%= user.created_at.strftime('%Y.%m.%d - %l:%M %p') %>