Places to eat/drink and have a good time
Here are Ksenia's recommendations for Budapest, Hungary 🇭🇺
Places to eat:
- Zeller https://goo.gl/maps/MV5RJKNqnvs
- Mazel Tov https://goo.gl/maps/kP8gEtDVYrm
- Menza https://goo.gl/maps/gJSpZx7V8cG2
- Szimply https://goo.gl/maps/GXBpP5d4ea52
- Kiosk https://goo.gl/maps/wUd4eEKDaKK2
- Liberté https://goo.gl/maps/nCDtd33jqmw
- Vintage Garden https://goo.gl/maps/JAGyPdB6ET32
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 credentials json file | |
# 1. Go to Google API Console | |
# 2. Create credentials (Service Account Key). Note 'Service account ID' | |
# 3. Download key as 'google_auth.json' | |
# 4. Go to Google Analytics -> Admin -> View Settings. Note 'View ID' | |
# 5. Go to User Management -> Add permissions for: (Service account ID) [Read & Analyze] | |
# Terminal | |
export GOOGLE_APPLICATION_CREDENTIALS='config/google_auth.json' |
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
# lib/paperclip/copy_attachments.rb | |
# Copies S3-stored Paperclip attachments from one AR model to another. | |
# | |
# This module should be mixed into the target AR model. | |
if Gem::Version.new(::AWS::VERSION) >= Gem::Version.new(2) | |
raise NotImplementedError, 'coded for aws-sdk v1' | |
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
Places to eat/drink and have a good time | |
1. El Borrego Viudo (24 hours tacos, Revolución 241 esq. Viaducto, Tacubaya) Speciality: Tacos de cabeza | |
2. El Huequito (Pennsylvania 73, Col. Nápoles) Speciality: Tacos de pastor | |
3. El Vilsito (Petén 248 (esq. Av. Universidad)) Speciality: Costilla con queso | |
4. Fonda 99.99 (Calle Moras 347, Benito Juárez) Speciality: Tacos de cochinita pibil | |
5. El Tizoncito (Tamaulipas 122, Col. Condesa.) Speciality: Tacos de pastor | |
6. Los Parados (Monterrey 333, Col. Roma Sur) Speciality: Tacos de arrachera, vegetarian friendly | |
7. Los Cocuyos (Bolívar 56, Col. Centro) Speciality: Tacos de suadero (Go here if you feel adventurous) | |
8. La Tia Yeya (Citlaltepetl No. 25 entre Campeche y Amsterdam Col. Condesa) Speciality: Breakfast chilaquiles, vegetarian friendly |
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
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
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
# Timezone extension to Sidetiq | |
Sidetiq::Schedulable::ClassMethods.class_eval do | |
# Sets the time zone for the recurrence rules. | |
# | |
# Example: | |
# | |
# class MyWorker | |
# include Sidekiq::Worker | |
# include Sidetiq::Schedulable | |
# |
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
module Paperclip | |
module CopyAttachments | |
def copy_attachments_from(source_obj, source_bucket = nil, destination_bucket = nil) | |
self.class.attachment_definitions.keys.each do |attachment_name| | |
source_attachment = source_obj.send(attachment_name) | |
next if source_attachment.blank? | |
destination_attachment = self.send(attachment_name) | |
connection = destination_attachment.send(:connection) |
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 generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rvm' | |
# Usually mina focuses on deploying to one host and the deploy options are therefore simple. | |
# In our case, there is a number of possible servers to deploy to, it is therefore necessary to | |
# specify the host that we are targeting. | |
server = ENV['server'] | |
# Since the same host can have multiple applications running in parallel, it is necessary to |
NewerOlder