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
require 'google/apis/identitytoolkit_v3' | |
require 'googleauth' | |
require 'json' | |
# Creates user accounts with email and password | |
class FirebaseAccountManager | |
# Konstanten ruhig in die Klassen ziehen, wenn die einen direkten Bezug haben | |
SCOPE = [ | |
'https://www.googleapis.com/auth/firebase', | |
'https://www.googleapis.com/auth/identitytoolkit', |
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
settings.SearchEnginesBrowserProxyImpl.prototype.getSearchEnginesList().then(function(val){ | |
val.others.forEach(function(engine) { | |
console.log(engine.displayName); | |
settings.SearchEnginesBrowserProxyImpl.prototype.removeSearchEngine(engine.modelIndex); | |
}); | |
}); |
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
namespace :db do | |
desc 'Truncate all tables of the database' | |
task :truncate => :environment do | |
ActiveRecord::Base.establish_connection | |
tables = ActiveRecord::Base.connection.tables-["schema_migrations"] | |
ActiveRecord::Base.connection.execute("TRUNCATE #{tables.join(', ')} RESTART IDENTITY") | |
end | |
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
#!/bin/bash | |
# | |
# => $ sudo apt-get install -y --force-yes curl; sudo su - -c "bash < <(curl -sL http://is.gd/..........)" | |
# | |
# Deploy Fat Free CRM (rails3 branch) to a freshly installed Ubuntu machine. | |
# -------------------------------------------------------------------------- | |
# | |
# Steps: | |
# | |
# *) Install required packages (git, postgresql, etc.) |
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
#! /bin/sed -f | |
# remove configuration settings | |
/^SET /d | |
# remove comments | |
/^--/d | |
# remove sequence values | |
/^SELECT pg_catalog.setval/d |
I hereby claim:
- I am hgebhardt on github.
- I am hgebhardt (https://keybase.io/hgebhardt) on keybase.
- I have a public key whose fingerprint is C8DF 6890 83AC 02D4 1711 3E39 7F06 3992 D7D6 A711
To claim this, I am signing this object: