Skip to content

Instantly share code, notes, and snippets.

View rynmrtn's full-sized avatar

Ryan Morton rynmrtn

View GitHub Profile
@rynmrtn
rynmrtn / sample-report.json
Created May 2, 2022 18:30
sample stix report
{
"type": "bundle",
"id": "bundle--cf20f99b-3ed2-4a9f-b4f1-d660a7fc8241",
"objects": [
{
"type": "intrusion-set",
"spec_version": "2.1",
"id": "intrusion-set--da1065ce-972c-4605-8755-9cd1074e3b5a",
"created": "2015-05-15T09:12:16.432Z",
"modified": "2015-05-15T09:12:16.432Z",
@rynmrtn
rynmrtn / scan-2.txt
Last active October 13, 2017 15:18
openvas-output.txt
./entrypoint.sh
Stopping redis-server: redis-server.
Starting redis-server: redis-server.
* Restarting openvas-scanner openvassd [ OK ]
* Restarting openvas-manager openvasmd [ OK ]
* Restarting openvas-gsa gsad [ OK ]
Rebuilding NVT cache... done.
Checking setup
openvas-check-setup 2.3.7
Test completeness and readiness of OpenVAS-9
### Keybase proof
I hereby claim:
* I am rynmrtn on github.
* I am rynmrtn (https://keybase.io/rynmrtn) on keybase.
* I have a public key whose fingerprint is C04F B075 93E7 32AA 1EAE C39C C9D2 42D2 664D 81E7
To claim this, I am signing this object:
@rynmrtn
rynmrtn / timeout_and_tick.go
Created August 3, 2017 01:07 — forked from ngauthier/timeout_and_tick.go
Golang timeout and tick loop
// keepDoingSomething will keep trying to doSomething() until either
// we get a result from doSomething() or the timeout expires
func keepDoingSomething() (bool, error) {
timeout := time.After(5 * time.Second)
tick := time.Tick(500 * time.Millisecond)
// Keep trying until we're timed out or got a result or got an error
for {
select {
// Got a timeout! fail with a timeout error
case <-timeout:
@rynmrtn
rynmrtn / timeout_and_tick.go
Created August 3, 2017 01:07 — forked from ngauthier/timeout_and_tick.go
Golang timeout and tick loop
// keepDoingSomething will keep trying to doSomething() until either
// we get a result from doSomething() or the timeout expires
func keepDoingSomething() (bool, error) {
timeout := time.After(5 * time.Second)
tick := time.Tick(500 * time.Millisecond)
// Keep trying until we're timed out or got a result or got an error
for {
select {
// Got a timeout! fail with a timeout error
case <-timeout:
@rynmrtn
rynmrtn / keybase.md
Created July 6, 2017 14:32
Keybase proof

Keybase proof

I hereby claim:

  • I am rynmrtn on github.
  • I am rynmrtn (https://keybase.io/rynmrtn) on keybase.
  • I have a public key whose fingerprint is 0DA6 37DF 51D6 C6DF E01F 9396 F107 0AE1 85BA 74B1

To claim this, I am signing this object:

@rynmrtn
rynmrtn / ulimit-mods.sh
Created June 12, 2014 13:00
Change the ULIMIT
1. In /etc/ssh/sshd_config add:
UsePAM yes
2. Now add this in at the end of: /etc/security/limits.conf
* hard nofile 65000
* soft nofile 65000
3. reload SSH
@rynmrtn
rynmrtn / gist:3161468
Created July 23, 2012 00:27
Run a single test from gradle
gradle intTest -Dtest.single=FullTestName -Dorg.apache.cocoon.mode=dev
@rynmrtn
rynmrtn / jvm.sh
Created December 7, 2011 20:25
Java Performance Tools from the Command Line
$ jps
$ jmap -histo {pid}
$ jstat -gcutil -h10 {pid} 1000
@rynmrtn
rynmrtn / wiseconf_plans.mdown
Created June 14, 2011 01:14
WiseConf Plans

WiseConf

We have all been busy. Our focus is on other things. Programming doesn't always happen when we get together. I think it's important to put our computers down and have a conversation about the future. Consulting isn't all that fun and we all dream of working on a product or service that is challenging and allows us to be our own bosses.

What's the plan?

We all have ideas, skills, and small periods of available time. What we have not been successful at is coming together for a common purpose to pursue a single idea.

What should be brought?

A list of your ideas, your time, and your willingness to take the next step.

How should ideas be evaluated?