This file contains 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
extern crate walkdir; | |
use walkdir::WalkDir; | |
use std::fs::File; | |
use std::io::Read; | |
fn main() { | |
let nul = 0; | |
let mut bytes_count: i32; |
This file contains 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 ( | |
"fmt" | |
"github.com/karrick/godirwalk" | |
"io/ioutil" | |
) | |
func main() { | |
godirwalk.Walk("./", &godirwalk.Options{ |
This file contains 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
// Primitive hash function that for a string returns a positive 32 bit int | |
// Do not use in production, use murmur3 or fnv1 | |
// You can improve this by changing 5 to 31 | |
Object.defineProperty(String.prototype, 'hashCode', { | |
value: function() { | |
var hash = 0, i, chr; | |
for (i = 0; i < this.length; i++) { | |
chr = this.charCodeAt(i); | |
hash = ((hash << 5) - hash) + chr; | |
hash |= 0; // Convert to 32bit integer |
This file contains 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
import random | |
def _replace(word): | |
replacements = { | |
'l': '1', | |
'i': '1', | |
's': '5', | |
't': '7', | |
'g': '9', | |
'q': '9', |
This file contains 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
# This is the default gitleaks configuration file. | |
# Rules and allowlists are defined within this file. | |
# Rules instruct gitleaks on what should be considered a secret. | |
# Allowlists instruct gitleaks on what is allowed, i.e. not a secret. | |
title = "gitleaks config" | |
[allowlist] | |
description = "global allow lists" | |
regexes = [ | |
'''219-09-9999''', |
OlderNewer