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
@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
# 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'
@hofmannsven
hofmannsven / README.md
Last active May 3, 2024 15:30
Git CLI Cheatsheet
@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);
@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"
'-=====================================================-
' -= +------------------------------------------------+ =-
' -= | |\ =-
' -= | |¯¯|\ |¯¯|\ |¯¯|\ |¯¯¯¯¯¯|\ |¯¯¯¯¯¯|\ |\\ =-
' -= | | |\/ /\| |__|\||__|| |\||___ |\| |\\| =-
' -= | | |/ /\/ |¯¯¯¯¯|\ \\\\| \\|¯ |\| /¯¯___/\| |\\| =-
' -= | | /\/ | |\||¯¯|\ |¯¯|| |\|| ¯¯¯|\ |\\| =-
' -= | | \/ | | |\|| |\||______|\||______|\| |\\| =-
' -= | | |\ \ | |\|| |\| \\\\\\\\| \\\\\\\\| |\\| =-
@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
@malarkey
malarkey / Contract Killer 3.md
Last active May 17, 2024 15:28
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………