Skip to content

Instantly share code, notes, and snippets.

View vtorves's full-sized avatar
🚀
☕️ Lets talk! 👨‍💻 🏠

Vinicius Torves vtorves

🚀
☕️ Lets talk! 👨‍💻 🏠
View GitHub Profile
@vtorves
vtorves / .rspec
Created December 17, 2022 17:31 — forked from alistairtweed/.rspec
Testing Rails with RSpec, Factory Bot, Faker and Shoulda Matchers
--require spec_helper
@vtorves
vtorves / 2019-https-localhost.md
Created June 17, 2022 20:29 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@vtorves
vtorves / Date+ISO8601.swift
Created March 27, 2022 21:01 — forked from norsez/Date+ISO8601.swift
Swift 3: Date <-> ISO 8601 String conversion
extension Date {
static func ISOStringFromDate(date: Date) -> String {
let dateFormatter = DateFormatter()
dateFormatter.locale = Locale(identifier: "en_US_POSIX")
dateFormatter.timeZone = TimeZone(abbreviation: "GMT")
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS"
return dateFormatter.string(from: date).appending("Z")
}
@vtorves
vtorves / youtube-video-commands
Created February 21, 2021 16:57 — forked from ThomasBush/youtube-video-commands
Ubuntu 20.04 Focal Fossa Rails server setup
# Generate Random Passwords
curl 'https://www.random.org/passwords/?num=2&len=24&format=plain&rnd=new'
# Create deploy user
sudo adduser deploy
sudo adduser deploy sudo
su deploy
cd ../deploy/
# Generate ssh keys 
@vtorves
vtorves / .ideavimrc
Created December 18, 2020 14:35 — forked from dewaka/.ideavimrc
set ignorecase
set smartcase
set scrolloff=3 " 3 lines above/below cursor when scrolling
" Emulated Plugins
set surround
" Copy to system clipboard as well
set clipboard+=unnamed
@vtorves
vtorves / heroku run bash -a paycertify-crm-validate
Created October 17, 2019 21:58
funcionando com a branch de staging
Running bash on ⬢ paycertify-crm-validate... up, run.5339 (Hobby)
/app/.apt/opt/datadog-agent/bin/agent/agent: error while loading shared libraries: libdatadog-agent-rtloader.so.1: cannot open shared object file: No such file or directory
Starting Datadog Agent on bb2d0c43-f9a3-46f3-8eff-4ed593a3f0ba
Starting Datadog Trace Agent on bb2d0c43-f9a3-46f3-8eff-4ed593a3f0ba
~ $ Command "start" is deprecated, Use "run" instead to start the Agent
2019-10-17 21:43:30 UTC | CORE | INFO | (cmd/agent/app/start.go:124 in StartAgent) | Starting Datadog Agent v6.14.1
2019-10-17 21:43:30 UTC | CORE | INFO | (cmd/agent/app/start.go:152 in StartAgent) | Hostname is: bb2d0c43-f9a3-46f3-8eff-4ed593a3f0ba
2019-10-17 21:43:30 UTC | CORE | INFO | (pkg/api/security/security.go:135 in FetchAuthToken) | Saved a new authentication token to /app/.apt/etc/datadog-agent/auth_token
2019-10-17 21:43:30 UTC | TRACE | INFO | (pkg/util/log/log.go:482 in func1) | Loaded configuration: /app/.apt/etc/datadog-agent/datadog.yaml
2019-10-17 21:43:30
@vtorves
vtorves / README.md
Created November 28, 2018 12:25 — forked from denji/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000
https://mastersofscale.com/
https://changelog.com/podcast
https://spec.fm/podcasts/developer-tea
@vtorves
vtorves / nginx.conf
Created November 27, 2017 10:17 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which