As soon as zapier launch the new
multi step zap feature, I have this idea of creating service without actually doing any programming.
Here is the plan:
I try to follow event source architecture that is really suitable with zapier. Then it will be backed with Google spreadsheet to persist the events and data. I will also use some of excel function only if other approach is not possible. Typeform will provide a nice user interface to gather user input. And twilio will act as notification sender.
@iwan, I am going to use our varius use case
I always telling my self to make this draft more blog-y. But doing so actually is only my reason to not publish stuff. So from now, please forgive the directness. I use this post as my own self reminder and maybe could be useful for somebody else.
– install sublime text 3
– add package control
3 all auto complete
4 TrailingSpaces –> edit key configuration, I normally switch command key with control
how about you guys, do you have any other plugin to recommend?
- Model and deploy your database, which yet has nothing to do with your rails app.
- Point your rails app config/database.yml to such database
- Open terminal
- Change directory to you rails app root (run in terminal cd /path/to/my/rails/app/) .
- Run in terminal rake db:schema:dump (Generates schema.rb)
- Install gem ‘schema_to_scaffold’ (https://github.com/frenesim/schema_to_scaffold/)
- Run in terminal scaffold to generate rails scaffold commands and follow what is requested
- copy “rails scaffold commands” generated by step 7 on a separated .txt file
- Run each “rails scaffold command” separately
- Be happy!
Credit to original stack overflow answer here
Silly me, I encounter error saying that my pem file is too open.
Yup when you generate new pem file from EC2 for example, you need to
chmod 400 file.pem before using it with ssh.
for more ways to do it checkout http://askubuntu.com/questions/192798/reading-the-output-from-any-process-using-its-pid
Today I was run a long process from crontab. But I forget to set the output of the command. Checking with ps aux | grep command_name shows me the pid. After that I can do the following command to actually shows the stdout of the process. really cool right?
tail -f /proc//fd/1
Be careful with this value, or if you are not aware about this option. When set to true (which is default for selenium), you will not be able to get the element using method find, first, or all.
I spent like two hours questioning the website’s html haha. When it turns out that capybara have such configuration.
Today I experienced corrupt zsh history file. Which simply kills my most favorite terminal command ever (j). After quick googling, the fix is simple too.
First edit ~/.zsh_history and remove line with a lot of @@@@. And that’s it! there is no second step.
On a normal day, I keep several console connected with ssh to my servers. Often, I encountered my ssh console frozen or
Write failed: Broken pipe
In order to avoid such issue, we can simply add these lines to ~/.ssh/config
The normal installation of passenger usually require you to either do
1. passenger-install-nginx-module, or
2. go to nginx source and reinstall manually with extra –add-module /path-to-passenger-module
I am a bit reluctant to do option-1 because I already have some modules running with my nginx and option-2 is a bit troublesome because I install nginx with apt-get so I dont keep the source code.
Instead I found the official instruction which show me how to upgrade nginx installation in ubuntu.
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 561F9B9CAC40B2F7
sudo apt-get install apt-transport-https
Create a file /etc/apt/sources.list.d/passenger.list and insert one of the following lines, depending on your distribution.
##### !!!! Only add ONE of these lines, not all of them !!!! #####
# Ubuntu 13.10
deb https://oss-binaries.phusionpassenger.com/apt/passenger saucy main
# Ubuntu 12.04
deb https://oss-binaries.phusionpassenger.com/apt/passenger precise main
# Ubuntu 10.04
deb https://oss-binaries.phusionpassenger.com/apt/passenger lucid main
sudo chown root: /etc/apt/sources.list.d/passenger.list
sudo chmod 600 /etc/apt/sources.list.d/passenger.list
sudo apt-get update
sudo apt-get install nginx-extras passenger
Edit /etc/nginx/nginx.conf and uncomment passenger_root and passenger_ruby.
sudo service nginx restart
add config file to your site-available
if you don’t have nodejs already, install it with this command:
sudo apt-get install nodejs
I am starting to work fulltime on my new startup. Co-founding startup is not easy.. haha. Anyway, here is the link to it: http://www.sirclo.com