Skip to content

Instantly share code, notes, and snippets.

View mrjamiebowman's full-sized avatar
🚀
git er' done

Jamie Bowman mrjamiebowman

🚀
git er' done
View GitHub Profile
@cgarvey
cgarvey / pwd.php
Last active September 22, 2021 09:40
Utility PHP file to use WordPress' password utility to generate a hashed (and salted) version of a typed password. Why? So you can easily generate passwords for use in MySQL scripts / SQL command line, like resetting passwords or adding new users.
<?php
/*
Author
======
Author: Cathal Garvey.
Website: http://cgarvey.ie/
Help/Details Page: http://cgarvey.ie/blog/archive/2013/01/23/manually-generating-salted-hashed-wordpress-passwords/
Copyright
@derv82
derv82 / Kai32.bas
Created February 12, 2013 08:03
VB6 module for "interacting" with America Online (AOL). Developed between 1998-2000 when I was 15.
Attribute VB_Name = "Kai32"
'-=====================================================-
' -= +------------------------------------------------+ =-
' -= | |\ =-
' -= | |¯¯|\ |¯¯|\ |¯¯|\ |¯¯¯¯¯¯|\ |¯¯¯¯¯¯|\ |\\ =-
' -= | | |\/ /\| |__|\||__|| |\||___ |\| |\\| =-
' -= | | |/ /\/ |¯¯¯¯¯|\ \\\\| \\|¯ |\| /¯¯___/\| |\\| =-
' -= | | /\/ | |\||¯¯|\ |¯¯|| |\|| ¯¯¯|\ |\\| =-
' -= | | \/ | | |\|| |\||______|\||______|\| |\\| =-
' -= | | |\ \ | |\|| |\| \\\\\\\\| \\\\\\\\| |\\| =-
@kchristensen
kchristensen / php_watch.php
Last active April 18, 2016 20:45
Inotify example
<?php
$fd = inotify_init();
$watch_dir = '/tmp/';
$watch_email = 'kyle@crowdgather.com';
$new_files = array();
$last_event = time();
$interval = 10;
stream_set_blocking($fd, 0);
@hofmannsven
hofmannsven / README.md
Last active July 16, 2024 01:30
Git CLI Cheatsheet
# oh my posh
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\clean-detailed.omp.json" | Invoke-Expression
# vim aliases
New-Alias -Name vi -Value 'C:\Program Files\Vim\vim90\vim.exe'
New-Alias -Name vim -Value 'C:\Program Files\vim\vim90\vim.exe'
New-Alias -Name omp -Value oh-my-posh
New-Alias -Name notepad++ -Value 'C:\Program Files\Notepad++\notepad++.exe'
New-Alias -Name gt -Value 'git log --graph --abbrev-commit --decorate --oneline --all'
@pavel-agarkov
pavel-agarkov / kube-debug.sh
Last active February 11, 2021 15:29
Script for starting remote debugging of dotnet app in kubernetes from Visual Studio 2019
#!/bin/bash
set -e
while [ "$1" != "" ]; do
case $1 in
-n | --namespace)
NAMESPACE=$2
shift 2
;;
-s | --selector)
SELECTOR=$2