Skip to content

Instantly share code, notes, and snippets.

View benfortuna's full-sized avatar
💥

Ben Fortuna benfortuna

💥
View GitHub Profile
@benfortuna
benfortuna / password-generator.md
Created May 3, 2022 02:56
Password Generator

User Profiles

A profile is a mechanism for providing context to an actor in a particular role. Profiles allow us to collect and isolate data and functions that should remain separate.

Example profile types include:

  • Investor - Financial transactions and details
  • Family member - activities relating to the (immediate and extended) family unit
  • Employee - relationships with colleagues and coworkers within an organization
@benfortuna
benfortuna / data-portability.md
Last active May 3, 2022 00:52
Data Portability

Data Portability

Application data that is meaningful or usable with more than one application or service. Some examples of portable data include:

  • Email
  • iCalendar
  • vCard
  • Various XML-based standards (e.g. BPMN, MathML, etc.)
  • RSS/Atom feeds
  • ...
@benfortuna
benfortuna / wsl-hyperv-endtask.md
Created May 2, 2022 00:23
How to reset WSL when `wsl.exe --shutdown` doesn't work

Open Windows Task Manager, find and select the Hyper-V Host Compute Service and click the End Task button.

image

@benfortuna
benfortuna / git-branch-cleanup.sh
Last active May 2, 2022 05:19
Cleanup stale git branches
#!/bin/bash
# list merged branches
BRANCHES=`git branch -r --merged | grep -v "*" | grep -v master | grep -v develop | grep -v release/ | grep -v hotfix/ | sed 's/origin\///'`
printf "Removing branches: \n$BRANCHES"
# delete all remote branches merged into the current branch (i.e. develop), excluding release/master/develop branches
git branch -r --merged | grep -v "*" | grep -v master | grep -v develop | grep -v release/ | grep -v hotfix/ | sed 's/origin\///' | xargs -n 1 git push --delete origin
/etc/map
+-- http
+-- example.com.80
| +-- sling:redirect = "http://www.example.com/"
+-- www.example.com.80
| +-- sling:internalRedirect = "/example"
+-- any_example.com.80
| +-- sling:match = ".+\.example\.com\.80"
| +-- sling:redirect = "http://www.example.com/"
+-- localhost_any
@benfortuna
benfortuna / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@benfortuna
benfortuna / add.svg
Created August 21, 2012 14:01
Error in generated class: Keyframe fractions must be increasing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.