Skip to content

Instantly share code, notes, and snippets.

View vyk2rr's full-sized avatar
🌠
Deployed as developer, still suspect it’s a side quest

Victor De la Rocha vyk2rr

🌠
Deployed as developer, still suspect it’s a side quest
  • Colima, Mexico
  • 23:57 (UTC -06:00)
View GitHub Profile
@vyk2rr
vyk2rr / how to execute rake tasks from within the rails console.md
Last active October 22, 2022 21:38
how to execute rake tasks from within the rails console:

how to execute rake tasks from within the rails console:

require 'rake'
Rails.application.load_tasks 
Rake::Task['my_task'].invoke
@vyk2rr
vyk2rr / docs.aws.eb.env-variables.md
Last active October 22, 2022 18:39
How to add an env variable in a deployment to an eb environment

create a file like:

.ebextensions/temporarily_set_env_variable.config

add:

+option_settings:
+  aws:elasticbeanstalk:application:environment:
+ API_ENDPOINT: www.example.com/api
<style>
.container {
padding: 10px;
background-color: rgba(255, 255, 255, 0.5);
}
.logo {
position: absolute;
right: 0;
bottom: -200px;
}
@vyk2rr
vyk2rr / iso_to_usb.md
Created July 27, 2017 22:02 — forked from dcuadraq/iso_to_usb.md
Extract ISO image content on USB

When attenpting to install a Linux Distro, its common to download the ISO then use a tool (e.g. UNetbootin, Linux Live USB Creator, Universal USB Installer, Live USB Creator) to make a USB bootable with the installer of the distro. This is no the recommended way.

Source

https://wiki.archlinux.org/index.php/USB_flash_installation_media

Prefered method

On OS X

To list USB devices

@vyk2rr
vyk2rr / index.md
Created October 29, 2016 23:13 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

Why I love Javascript

  1. Because it has a humble origin... Designed in 10 days... was proclaimed death several times, and it was planned to be replaced by many other more "powerful" languages

  2. Because it has closures and lambdas, and the prototypal inheritance (the good parts)

  3. Because it is weird, in a very nice sense... (some bad parts... maybe?)

From the video WAT (https://www.destroyallsoftware.com/talks/wat)