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 -w | |
| require 'set' | |
| require 'open-uri' | |
| unique_sequences = {} | |
| duplicate_sequences = Set.new | |
| def get_sequences_from_word(word) |
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
| #include <sys/types.h> | |
| #include <security/pam_appl.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int conv_func(int msgs, const struct pam_message **msg, struct pam_response **resp, void *p ){ | |
| struct pam_response *aresp; |
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 ( | |
| "errors" | |
| "fmt" | |
| "sync" | |
| ) | |
| type counters struct { | |
| sum int |
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 kolide | |
| import ( | |
| "time" | |
| "github.com/WatchBeam/clock" | |
| ) | |
| type Createable interface { | |
| MarkCreated(clock.Clock) |
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 (d *Datastore) searchLabelsWithOmits(query string, omit ...uint) ([]kolide.Label, error) { | |
| sqlStatement := ` | |
| SELECT * | |
| FROM labels | |
| WHERE MATCH(name) | |
| AGAINST(? IN BOOLEAN MODE) | |
| AND NOT deleted | |
| AND id NOT IN (?) | |
| LIMIT 10 | |
| ` |
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 ( | |
| "crypto" | |
| "crypto/rsa" | |
| "crypto/ecdsa" | |
| "crypto/sha256" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "math/big" |
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 parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/' | |
| } | |
| function proml { | |
| local BLUE="\[\033[0;34m\]" | |
| local LIGHT_GREEN="\[\033[1;32m\]" | |
| local DEFAULT="\[\033[0m\]" | |
| PS1="\h:\W \u$LIGHT_GREEN\$(parse_git_branch) $DEFAULT\$ " | |
| } |
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
| apiVersion: troubleshoot.sh/v1beta3 | |
| kind: HostPreflight | |
| metadata: | |
| name: kurl-builtin | |
| spec: | |
| collectors: | |
| - cpu: {} | |
| - memory: {} | |
| - tcpPortStatus: | |
| collectorName: "Kubernetes API TCP Port Status" |
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 ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "net" | |
| "strings" | |
| "time" | |
| ) |