Skip to content

Instantly share code, notes, and snippets.

View dprevite's full-sized avatar
🐈

Dan Previte dprevite

🐈
View GitHub Profile
@dprevite
dprevite / stand-up.html
Created April 5, 2023 15:30
Shuffle team member names so every day stand up is just a little different
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shuffle Names</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<style>
.big { font-size: 2rem; }
.unselectable {
.expando-button, .thing .expando-button.image, .thing div.expando-button, .thing div.expando-button.collapsed {
margin: 2px 5px 2px 0;
height: 23px!important;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zd…gxPSIxNi41IiB5MT0iMTguNzUiIHgyPSIyMSIgeTI9IjE4Ljc1IiAvPgoJPC9nPgo8L3N2Zz4=);
}
@dprevite
dprevite / setup.md
Last active June 2, 2017 18:20
new homestead mailcatcher

First, Install rbenv

  1. git clone https://github.com/rbenv/rbenv.git ~/.rbenv
  2. Add the following to your .bashrc or .zshrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
  1. Run source ~/.zshrc or source ~/.bashrc
  2. git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
@dprevite
dprevite / install-comodo-ssl-cert-for-nginx.rst
Created October 24, 2015 18:45 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

find . -type f -iname '*.php' -not -path "./vendor/*" -exec bash -c 'echo $0 && expand -t 2 -i "$0" >"$0.expand.tmp" && mv "$0.expand.tmp" "$0"' {} \;
@dprevite
dprevite / post-commit
Created April 16, 2015 18:13
git post-commit for lolcommits
#!/bin/sh
export PATH="/usr/bin/ruby:$PATH"
lolcommits --capture --delay=3 --animate=8
slackup "#lolcommits" "$(ls ~/.lolcommits/${PWD##*/}/$(git rev-parse HEAD | cut -c1-11).*)" &
@dprevite
dprevite / update_post_commits.php
Last active August 29, 2015 14:17
Search computer for all git repos and add lolcommits hook to all the post-commit files
<?php
/**
* Search forward starting from end minus needle length characters
*
* @param string $haystack The string to search within
* @param string $needle The string to search for
*
* @return boolean
**/
@dprevite
dprevite / tabfix.sh
Created November 23, 2014 07:43
tabfix tabs to spaces
# https://github.com/mar10/tabfix
sudo pip install -U tabfix
tabfix --input-tab-size=2 -r --match="*.html" -v target_dir/

Keybase proof

I hereby claim:

  • I am dprevite on github.
  • I am dprevite (https://keybase.io/dprevite) on keybase.
  • I have a public key whose fingerprint is A98D 75AB D814 79AD 11E9 BE13 B7B8 013A 8498 380A

To claim this, I am signing this object:

@dprevite
dprevite / osx-for-hackers.sh
Last active November 28, 2016 05:43 — forked from brandonb927/osx-for-hackers.sh
My fork of osx-for-hackers.sh
#!/bin/sh
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until script has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Set the colours you can use
black='\033[0;30m'