Skip to content

Instantly share code, notes, and snippets.

View zingi's full-sized avatar
🦀

Aaron Zingerle zingi

🦀
View GitHub Profile
@zingi
zingi / get_environment_variables_used_in_rust_code.md
Created May 7, 2021 07:38
Filter all environment variable names, used in rust code with env::var("MY_NAME")

Get Enivronment Variables Used in Rust Code

rg -o 'env::var\(".*"\)' project_root/src | rg -o '".*"' | sort | sd '"' ''
@zingi
zingi / cargo_rust_project_list_all_direct_dependencies.md
Created April 21, 2021 08:42
List all direct dependencies of a cargo project.

Cargo Rust Project: list all direct dependencies

Lists all direct dependencies (name+version) of current cargo project.

# ~/.zshrc
alias cargo-list="cargo tree --prefix depth | rg '^1.*' | xargs -I % echo % | sd '^\d' ''"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am zingi on github.
  • I am zingi (https://keybase.io/zingi) on keybase.
  • I have a public key ASAsvXnMRp2JuGQHqyM4wV172aRcGF9t0elKU1WI9Hy4ggo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1E7xKN66J67VPBAeMKa67sRWqzHUrpxDux https://explorer.blockstack.org/address/1E7xKN66J67VPBAeMKa67sRWqzHUrpxDux
@zingi
zingi / mattermost_status_online.py
Last active July 26, 2019 06:13
Set Mattermost Status to online on Mouse move
from pynput import mouse
from mattermostdriver import Driver
import time
import datetime
'''
Since the Mattermost desktop client, only sets the status to _online_
if you interact with the client window: this script was created,
to set the status to online even if you only move the mouse cursor.
@zingi
zingi / docker-compose.yml
Created February 17, 2019 10:59
matrix using traefik; ${xyz} tags are stored in an .env file in same directory
version: '3'
services:
matrix:
image: avhost/docker-matrix:${TAG}
container_name: matrix
restart: always
ports:
- '8448:8448'
- '8008:8008'
- '3478:3478'
@zingi
zingi / bounty.js
Last active December 17, 2017 09:25 — forked from lenilsonjr/bounty.js
Keybase WarpWallet Bounty Challenge
var attempts = [];
var attemptCount = 0;
let simultaneousCount = 10;
var found = false;
function randomString(length, chars)
{
var result = '';
for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
return result;