This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create fdf | |
pdftk form.pdf generate_fdf output data.fdf | |
fill form | |
pdftk form.pdf fill_form data.fdf output form_with_data.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To relink, run: | |
brew unlink git && brew link git | |
Use brew git | |
brew install git | |
brew link --overwrite git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://answers.microsoft.com/en-us/msteams/forum/msteams_tfb-msteams_tfmac/microsoft-teams-mac-os-client-is-not-recognizing/d9e863be-d9a4-4d03-a4b8-1b5c7df58828 | |
https://docs.microsoft.com/en-us/answers/questions/148337/virtual-cam-broken-for-teams-version-130028778-mac.html | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app" | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app" | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (GPU).app" | |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (Plugin).app" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config -s -a existing-heroku-app > config.txt | |
cat config.txt | tr '\n' ' ' | xargs heroku config:set -a new-heroku-app | |
or | |
heroku config -s -a existing-heroku-app | tr '\n' ' ' | xargs heroku config:set -a new-heroku-app | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Based on | |
* - EGM Mathematical Finance class by Enrique Garcia M. <egarcia@egm.co> | |
* - A Guide to the PMT, FV, IPMT and PPMT Functions by Kevin (aka MWVisa1) | |
*/ | |
var ExcelFormulas = { | |
PVIF: function(rate, nper) { | |
return Math.pow(1 + rate, nper); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use phantomjs. Start it: | |
$ phantomjs --webdriver=127.0.0.1:8910 | |
Use: | |
require_once('lib/__init__.php'); | |
$host = '127.0.0.1:8910'; | |
$capabilities = array( | |
WebDriverCapabilityType::BROWSER_NAME => 'phantomjs', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install glob --save-dev | |
npm install gulp-uncss --save-dev | |
var uncss = require('gulp-uncss'); | |
var glob = require('glob'); | |
gulp.task('uncss', function() { | |
gulp.src('public/css/dirty.css') | |
.pipe(uncss({ | |
html: glob.sync('app/views/**/*.*') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://wiki.postgresql.org/wiki/Apt | |
pgloader mysql://root@localhost/test2 postgresql://postgres:postgres@localhost:5432/tire_website_development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete folders db and app/models in subtree-api and subtree-admin | |
add remote | |
git remote add subtree-models git@github.com:michaellouieloria/subtree-models.git | |
git remote add subtree-db git@github.com:michaellouieloria/subtree-db.git | |
add subtree | |
git subtree add --prefix=app/models subtree-models master | |
git subtree add --prefix=db subtree-db master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis-cli -h <HOST> -p <PORT> KEYS "<PATTERN>" | xargs -i% redis-cli -h <HOST> -p <PORT> DEL % |
NewerOlder