Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🍗

Maurice Svay mauricesvay

💭
🍗
View GitHub Profile
@mauricesvay
mauricesvay / git-clean.sh
Created Apr 29, 2021
Remove deleted branches
View git-clean.sh
git branch -vv | grep gone | awk '{ print $1 }' | xargs git branch -D
View programming-words.md
  • engine
  • height
  • integer
  • charset
  • any word that has "ough" (through, though, dough, thought, etc.)
View dashlane-to-1password.php
<?php
/*
How to use:
- In Dashlane, export data as CSV
- Copy this file in the same folder as the exported csv
- Run in a terminal: php dashlane-to-1password.php
- This should generate 2 files: Dashlane_passwords.csv and Dashlane_others.csv
- In 1Password, import Dashlane_passwords.csv
- Do whatever you want with Dashlane_others.csv
@mauricesvay
mauricesvay / model-tools.js
Created Sep 2, 2016
Model tools tampermonkey script
View model-tools.js
// ==UserScript==
// @name Sketchfab Model tools
// @namespace http://svay.com/
// @version 0.1
// @description Useful tools for Sketchfab models
// @author Maurice Svay
// @match https://sketchfab.com/models/*
// @grant GM_addStyle
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
@mauricesvay
mauricesvay / composer.json
Created Apr 26, 2016
Sketchfab RSS Feed for Staff Picks
View composer.json
{
"require": {
"suin/php-rss-writer": "^1.3",
"erusev/parsedown": "^1.6"
}
}
View pre-commit
#!/bin/bash
# update hooks; note that this hook will still execute its current version and not
# the updated one
#git pull --rebase &>/dev/null
branch_name=$( git rev-parse --abbrev-ref HEAD )
is_special_branch=$( echo "${branch_name}" | grep -i "^\(hotfix\|develop\|master\|HEAD\)" )
if [ ! "${is_special_branch}" ]
@mauricesvay
mauricesvay / detector.js
Created Jan 9, 2014
Original js implementation of face detection
View detector.js
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.