Skip to content

Instantly share code, notes, and snippets.

@timelf123
timelf123 / infra-secret-management-overview.md
Created March 4, 2018 22:27 — forked from maxvt/infra-secret-management-overview.md
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

@timelf123
timelf123 / bcrypt-example
Created February 16, 2018 08:19 — forked from roycewilliams/bcrypt-example
bcrypt-example
$ cat ~/bcrypt.hash
$2a$05$LhayLxezLhK1LhWvKxCyLOj0j1u.Kj0jZ0pEmm134uzrQlFvQJLF6
$ cat ~/bcrypt.dict
$ ./hashcat64.bin -a 0 -m 3200 ~/bcrypt.hash ~/bcrypt.dict
hashcat (v3.10-143-g7f59a82) starting...
OpenCL Platform #1: NVIDIA Corporation
======================================
- Device #1: GeForce GTX 970, 1023/4095 MB allocatable, 13MCU
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@timelf123
timelf123 / gist:cca548a119e685e34adbd82c288bc6a7
Last active March 5, 2018 21:55
boxstarter windows 10 node dev
# Description: Boxstarter Script
# Author: Jess Frazelle <[email protected]>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
if (process.version.startsWith("v6")) throw new Error("This Bot requires Node 7v+ because of async/await")
const Discord = require("discord.js")
const express = require("express")
const app = express()
const superagent = require("superagent")
//Config
let INVITE = process.env.INVITE || "", //An Infinite Invite to your discord server.
GUILD = process.env.GUILD || "", //The ID of the Guild for this invite ^
@timelf123
timelf123 / index.js
Created January 24, 2018 13:22
Generate ETH address with 00 at the end.
const Web3 = require('web3');
const provider = new Web3.providers.HttpProvider('http://localhost:8549');
const web3 = new Web3(provider);
let acc = web3.eth.accounts.create();
let last = acc.address[acc.address.length-2];
let last2 = acc.address.slice(acc.address.length - 2, acc.address.length );
console.log(last2);
while(last2 != '00' ){
@timelf123
timelf123 / export_repo_issues_to_csv.py
Created January 23, 2018 20:27 — forked from mmoelli/export_repo_issues_to_csv.py
[python] Fetch Issues from GitHub API (v3) with Auth token and put them into a CSV
"""
Exports Issues from a list of specified repository to a CSV file
Credits go to https://gist.github.com/unbracketed/3380407#file-export_repo_issues_to_csv-py for the initial work, but I had to adjust it a bit
FYI: you need to install 'requests' before, best via pip: "$ sudo pip installs requests"
"""
import csv
import requests
@timelf123
timelf123 / getnames.py
Created January 23, 2018 04:25 — forked from ErikBoesen/getnames.py
Given a file ./tokens.txt containing many Discord bot tokens, this script will attempt login with each, and write valid tokens (plus their names and how many servers they're in) to ./valid.csv.
import discord
import asyncio
class Bot(discord.Client):
def __init__(self, token):
super().__init__()
self.token = token
print('%s->' % token, end='')
async def on_ready(self):
@timelf123
timelf123 / base.Dockerfile
Created December 3, 2017 18:54 — forked from alexellis/base.Dockerfile
Docker swarm service to mine into the Nice Hash pool
# Published on Docker Hub with above user alexellisio.
# If you want to rebuild your own copy, follow below instructions
# Build this on each type of machine so you have the correct CPU extensions.
FROM alexellisio/boostbase
RUN git clone -b Linux https://github.com/nicehash/nheqminer.git
RUN cd nheqminer/cpu_xenoncat/Linux/asm/ && sh assemble.sh && cd ../../../Linux_cmake/nheqminer_cpu && cmake . && make
ENTRYPOINT ["./nheqminer/Linux_cmake/nheqminer_cpu/nheqminer_cpu"]
@timelf123
timelf123 / description.md
Created September 22, 2017 14:08 — forked from honza/description.md
Ranking algorithm - Lower bound of Wilson score confidence interval for a Bernoulli parameter All implementations use 95% probability.

Ranking algorithm

Lower bound of Wilson score confidence interval for a Bernoulli parameter

All implementations use 95% probability.

pos is the number of positive votes, n is the total number of votes.

Source