Skip to content

Instantly share code, notes, and snippets.

View rys's full-sized avatar
🤙
you're great

Rys Sommefeldt rys

🤙
you're great
View GitHub Profile
@rys
rys / domain-0.0.rb
Created March 16, 2012 01:29
simple DNS record finder plugin for rbot
require 'domain_info.rb'
class ExtendedDomainInfoPlugin < Plugin
def help(plugin, topic="")
"!edi domain [ip,ptr,spf,all]"
end
def edi_get_all(domain)
s = ''
begin
@rys
rys / dpi-0.1.rb
Created April 8, 2012 23:55
DPI calculator plugin for rbot
class DpiPlugin < Plugin
def help(plugin, topic="")
"!dpi width height diagonal"
end
def dpi(m, params)
begin
x = params[:width].to_f
y = params[:height].to_f
d = params[:diagonal].to_f
@rys
rys / CONTRIBUTING.md.diff
Created March 28, 2013 09:40
Update to CONTRIBUTING to let people know how best to interact with us on IRC or via the google group.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 58c7410..8af29e9 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -13,6 +13,10 @@ RVM: https://github.com/wayneeseguin/rvm/issues/new
If you wish to file a bug, the only thing we ask is that you provide a [gist](https://gist.github.com) of the command you used and if you are on stable, make sure that the case is the same on head too, this way you and us know whether the issue has been addressed, and always note that if there is a lot of `debug` or `trace` output you can redirect it to a file with the `>` character like so `rvm [command] > output.txt`. Further information on how to file can be seen below. Also, please always make sure to split up each command into it's own fenced codeblock, this means that each command and it's output should be in it's own code block.
+## IRC and Mailing List
+
@rys
rys / gist:5274314
Last active December 15, 2015 14:28
Updated CPU count detection for BSD-based OSes
diff --git a/scripts/functions/build_config b/scripts/functions/build_config
index a58ac98..44fb6a5 100755
--- a/scripts/functions/build_config
+++ b/scripts/functions/build_config
@@ -370,7 +370,21 @@ __rvm_detect_max_threads()
{
case "$(uname)" in
(Darwin|FreeBSD)
- sysctl -n hw.ncpu
+ if
@rys
rys / gist:5274725
Created March 30, 2013 00:47
__rvm_package_extract error (FreeBSD 9.1, 1.9.3)
[rys@bsd91test ~]$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: freebsd/9.1-RELEASE/x86_64/ruby-1.9.3-p392.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for freebsd, might require sudo password.
Installing Ruby from source to: /home/rys/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
ruby-1.9.3-p392 - #extracting ruby-1.9.3-p392 to /home/rys/.rvm/src/ruby-1.9.3-p392.....
Error running '__rvm_package_extract /home/rys/.rvm/archives/ruby-1.9.3-p392.tar.bz2 /home/rys/.rvm/tmp/rvm_src_51570',
please read /home/rys/.rvm/log/ruby-1.9.3-p392/extract.log
@rys
rys / gist:5485269
Created April 29, 2013 22:19
rvm --trace requirements, rvm head, OS X 10.8.3
+__rvm_parse_args:675> [[ -n 5.0.2 ]]
+__rvm_parse_args:710> [[ -z '' && -n '' ]]
+__rvm_parse_args:713> [[ error == || 0 -eq 1 || -n '' ]]
+__rvm_parse_args:16> [[ -n requirements ]]
+__rvm_parse_args:18> rvm_token=requirements
+__rvm_parse_args:20> (( 0 > 0 ))
+__rvm_parse_args:25> next_token=''
+__rvm_parse_args:28> case requirements ([[:alnum:]]*|@*)
+__rvm_parse_args:31> case requirements (use)
+__rvm_parse_args:31> case requirements (install|uninstall|reinstall|try_install)
@rys
rys / id_rsa.pub
Created October 29, 2013 01:04
ssh pubkey
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEudw9IyLEO/wA78oQNCq0v72CzySoj3SjG+/CQ8YTsrHFu9RNnbJFNRygkVo/L8qGyDSy4lvfc4AgG8fP1BDWq/UxPNlJALmUDI3nPMV0GTE5fnGu10bLb6e7Elru8wk9UMP2JBtSQp7vW5Luo20wpsjI4vjE8ciW3lNOI5c9up8UbENhExtXmxvNA0VExUhNlabfpuRcCc8na6kLdv7G02vuaZnwatUZuXQO3sYPbAUckjuf5J8q5tLcQcP5dOCEC8NphyGU6QVPYSecVFD3I0GMRHaWyh4gayqgp/1Y9CvUx3ULJ4+7ukasS53KzFT1fFa0FgLdIbQPa5wR6cTl rys@sommefeldt

Keybase proof

I hereby claim:

  • I am rys on github.
  • I am rys (https://keybase.io/rys) on keybase.
  • I have a public key whose fingerprint is 445F AF5E 0311 84CD BDB2 C7D9 DBFD 10B8 B8A0 C001

To claim this, I am signing this object:

@rys
rys / he.net-tunnelbroker-setup-edgeos.txt
Last active August 17, 2024 18:04
HE.net Tunnelbroker IPv6 tunnel on EdgeOS
# this assumes WAN is eth0 and LAN is switch0. Please adjust for your own setup
configure
# Tunnel first
edit interfaces tunnel tun0
set encapsulation sit
set local-ip xxx.xxx.xxx.xxx # your WAN IP
set remote-ip xxx.xxx.xxx.xxx # HE.net Server IPv4 Address
set address xxxx:xxxx:xxxx:xxxx::2/64 # Client IPv6 Address
@rys
rys / l2tp-ipsec-edgerouter-x.txt
Created March 11, 2016 21:47
L2TP/IPSec VPN configuration on EdgeRouter X
configure
set vpn ipsec ipsec-interfaces interface eth0 # your WAN interface
set vpn ipsec auto-firewall-nat-exclude enable
set vpn ipsec nat-networks allowed-network 0.0.0.0/0 # check that's OK before you set it
set vpn l2tp remote-access authentication mode local
set vpn l2tp remote-access authentication local-users username <user> password <password>
set vpn l2tp remote-access client-ip-pool start <starting IP>
set vpn l2tp remote-access client-ip-pool stop <end IP>
set vpn l2tp remote-access dns-servers server-1 <DNS server IP>
set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret