This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def interpret(code) | |
| Befunge.new(code).interpret | |
| end | |
| class Array | |
| def second | |
| self[1] | |
| end | |
| def second=(val) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| ARGV.each do |filename| | |
| fileobject = File.new(filename, "r") | |
| next if fileobject.nil? | |
| occurences = 0 | |
| lines = fileobject.readlines | |
| lines.each do |line| | |
| next unless line.match(/\A *#.+\n/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| acl localnet src 0.0.0.1-0.255.255.255 | |
| acl localnet src 10.0.0.0/8 | |
| acl localnet src 100.64.0.0/10 | |
| acl localnet src 169.254.0.0/16 | |
| acl localnet src 172.16.0.0/12 | |
| acl localnet src 192.168.0.0/16 | |
| acl localnet src fc00::/7 | |
| acl localnet src fe80::/10 | |
| acl SSL_ports port 443 | |
| acl Safe_ports port 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| folder="$1" | |
| add_space_indentation () { | |
| for i in $(eval echo "{1..$1}") | |
| do | |
| echo -n '-' | |
| done | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global user.name "NAME" | |
| git config --global user.email "[email protected]" | |
| ssh-keygen -t rsa -C "[email protected]" | |
| git config --list #verify configs | |
| cat /home/USER/.ssh/id_rsa.pub | |
| #create new SSH key in git hub and copy the key, including email | |
| ssh -T [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| PS1='\e[38;5;10m\[[\u@\h\[\033[37m\]\w\e[38;5;10m\]]\[\033[33m\]$(git_branch)\e[38;5;10m\$ \e[0m' | |
| export PS1 |