I hereby claim:
- I am nealhardesty on github.
- I am nealhardesty (https://keybase.io/nealhardesty) on keybase.
- I have a public key ASCqfHI0CbEc309kWuXyZRi4wt-RGcF5l4t1pL-fH1PaYQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| import argparse | |
| import re | |
| import os | |
| if __name__ == "__main__": | |
| parser = argparse.ArgumentParser(description="Bulk File Rename With Regexes!") | |
| parser.add_argument("pattern", help="Pattern (or Regex) to look for in the file names. Required.", nargs=1) | |
| parser.add_argument("replacement", help="Substitution value in the file name. Required.", nargs=1) |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| /* | |
| OpenGarden Code Challenge |
| 1) Edit /etc/network/interfaces | |
| auto br0 | |
| iface br0 inet static | |
| address xxx.xxx.xxx.xxx | |
| netmask xxx.xxx.xxx.xxx | |
| gateway xxx.xxx.xxx.xxx | |
| bridge_ports eth0 | |
| bridge_stp off | |
| bridge_maxwait 5 |
| * Run 'gpedit.msc' | |
| * Navigate to 'Local Computer Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options' | |
| * Set 'Microsoft network client: Send unencrypted password to third-party SMB server' to "Enabled". | |
| * Set 'Network security: LAN Manager authentication level' to 'Send LM & NTLM - use NTLMv2 session security if negotiated. | |
| * Reboot |
| #!/bin/bash | |
| # | |
| # init-sbt | |
| # | |
| # Initializes an sbt project with ScalaTest, ENSIME and idea-gen support | |
| # Created by Neal Hardesty 2013, released under an MIT License | |
| # | |
| function usage() { |
| ``` | |
| sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | |
| sudo sysctl -w net.ipv4.ip_forward=1 | |
| ``` |
| /* | |
| smtpd.js is SMTP server written for node.js | |
| MIT License | |
| */ | |
| var tcp = require('tcp'); | |
| var sys = require('sys'); |