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
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 [email protected]:michaellouieloria/subtree-models.git | |
git remote add subtree-db [email protected]: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 % |
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
# NullStorage provider for CarrierWave for use in tests. Doesn't actually | |
# upload or store files but allows test to pass as if files were stored and | |
# the use of fixtures. | |
class NullStorage | |
attr_reader :uploader | |
def initialize(uploader) | |
@uploader = uploader | |
end |
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
http://guides.rubyonrails.org/caching_with_rails.html | |
http://www.sitepoint.com/rails-model-caching-redis/ | |
http://www.nateberkopec.com/2015/07/15/the-complete-guide-to-rails-caching.html | |
https://github.com/mperham/dalli |
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. <[email protected]> | |
* - 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
wget -O - http://debian.neo4j.org/neotechnology.gpg.key| sudo apt-key add - | |
sudo -i | |
echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list | |
exit | |
sudo apt-get update | |
sudo apt-get install neo4j | |
http://neo4j.com/docs/1.6.2/configuration-linux-notes.html |
NewerOlder