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
| function transfer | |
| if test (count $argv) -eq 0 | |
| echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md" | |
| return 1 | |
| end | |
| ## get temporarily filename, output is written to this file show progress can be showed | |
| set tmpfile ( mktemp -t transferXXX ) | |
| ## upload stdin or file |
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
| sh-3.2# export LC_CTYPE="utf-8" | |
| sh-3.2# gem install nokogiri -v '1.6.5' | |
| Building native extensions. This could take a while... | |
| Successfully installed nokogiri-1.6.5 | |
| Parsing documentation for nokogiri-1.6.5 | |
| unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/nokogiri/nokogiri.bundle, skipping | |
| 1 gem installed | |
| ----- | |
| This will skip the generation of docs, and suppress the error: | |
| sh-3.2# vim ~/.gemrc |
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
| ❯❯❯ vagrant plugin install vagrant-vmware-fusion ⏎ | |
| Installing the 'vagrant-vmware-fusion' plugin. This can take a few minutes... | |
| Bundler, the underlying system Vagrant uses to install plugins, | |
| reported an error. The error is shown below. These errors are usually | |
| caused by misconfigured plugin installations or transient network | |
| issues. The error from Bundler is: | |
| An error occurred while installing nokogiri (1.6.5), and Bundler cannot continue. | |
| Make sure that `gem install nokogiri -v '1.6.5'` succeeds before bundling. |
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
| func ipInMasks(ip net.IP, masks []interface{}) bool { | |
| for _, proxy := range masks { | |
| var mask *net.IPNet | |
| var err error | |
| switch t := proxy.(type) { | |
| case string: | |
| if _, mask, err = net.ParseCIDR(t); err != nil { | |
| panic(err) | |
| } |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "net/http" | |
| ) | |
| func main() { | |
| path := flag.String("path", ".", "path to static files") |
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
| # Options | |
| set block-policy drop | |
| set fingerprints "/etc/pf.os" | |
| set ruleset-optimization basic | |
| set skip on lo0 | |
| # Normalization | |
| # Scrub incoming packets | |
| scrub in all no-df |
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/sh | |
| find /mnt/ -name '*.bak' -mtime +7 | xargs rm -f |
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
| lxc-ls |grep -v u1|xargs -I % lxc-destroy --name % | true |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.IO; | |
| namespace dutchcoders.Sandbox | |
| { | |
| public class ApplicationProxy : MarshalByRefObject | |
| { |
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
| https://isc.sans.edu/feeds/suspiciousdomains_Low.txt | |
| 56 | |
| 6 Argentina | |
| 35 Australia | |
| 1 Austria | |
| 6 Belarus | |
| 1 Belgium | |
| 16 Brazil | |
| 92 British Virgin Islands |