Skip to content

Instantly share code, notes, and snippets.

View marcomontes's full-sized avatar
🏠
Working from home

Marco Montes marcomontes

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am marcomontes on github.
  • I am marcomontes (https://keybase.io/marcomontes) on keybase.
  • I have a public key ASAJN8PL3O1OfSi4qRuANdriASTM9435svj-bGAeHwPafQo

To claim this, I am signing this object:

@marcomontes
marcomontes / ntfs.md
Created July 6, 2023 01:02 — forked from six519/ntfs.md
Read/write NTFS drive on macOS Ventura with Apple silicon processor

Configuring your Mac!

Change security settings

  • Shut down your Mac, then press and hold the power button until "Loading startup options" appear.
  • Select "Options"
  • In the menu on top of the screen, choose "Utilities" -> "Startup Security Utility".
  • Click "Security Policy"
  • Select "Reduced Security" and check "Allow user management of kernel extensions from identified developers".
  • Reboot
@marcomontes
marcomontes / rbenv-bash-to-zsh.sh
Created May 9, 2021 14:50
Move rbenv setup from bash to zsh
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
echo 'eval "$(rbenv init -)"' >> ~/.zshenv
echo 'source $HOME/.zshenv' >> ~/.zshrc
exec $SHELL
#EXTM3U
#PLAYLIST:iptvcat.com
#EXTINF:0 tvg-country="CO" tvg-logo="https://i.imgur.com/7YB94Hf.png" group-title="Undefined",Avivamiento,CO | Avivamiento
https://s1.abntelevision.com/avivamientoabr/stream/avivamientohd/avivamientohd/chunks.m3u8?checkedby:iptvcat.com
#EXTINF:0 tvg-country="CO" tvg-logo="" group-title="Undefined",CABLENOTICIAS
http://evdibac.com:80/307200112733/307200112733/87167?checkedby:iptvcat.com
#EXTINF:0 tvg-country="CO" tvg-logo="" group-title="Undefined",CANAL INSTITUCIONAL
http://evdibac.com:80/307200112733/307200112733/87164?checkedby:iptvcat.com
#EXTINF:0 tvg-country="CO" tvg-logo="" group-title="Undefined",CANAL TRO
http://evdibac.com:80/307200112733/307200112733/87163?checkedby:iptvcat.com
@marcomontes
marcomontes / generate_openvpn_config.sh
Created July 17, 2020 00:16 — forked from dmytro/generate_openvpn_config.sh
Script for OpenVPN generate client config file.
#!/bin/bash
# Easy script to create OpenVPN client configuration with the user, pre-generating user's
# RSA key and certificate.
#
# Configuration template must exist in the same directory, with only missing part: certificates.
#
# (c) Dmytro Kovalov, 2015
#
cd $(dirname ${BASH_SOURCE[0]})
@marcomontes
marcomontes / OSX - Oh My ZSH! + RBENV.txt
Last active June 1, 2020 19:49
OSX - Oh My ZSH! + RBENV
# Oh My ZSH!
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
brew update && brew install rbenv ruby-build
echo '# Install Ruby Gems to ~/gems' >> ~/.zshrc
echo 'export GEM_HOME=$HOME/gems' >> ~/.zshrc
echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
@marcomontes
marcomontes / ngrok-install.sh
Created July 23, 2019 01:16 — forked from ardyantohermawan/ngrok-install.sh
Ngrok Service Ubuntu 16.04
#!/bin/bash
# download
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
# unzip
unzip ngrok-stable-linux-amd64.zip
# move to /usr/local/bin
sudo mv ngrok /usr/local/bin
@marcomontes
marcomontes / how-to-copy-aws-rds-to-local.md
Created March 15, 2019 15:26 — forked from syafiqfaiz/how-to-copy-aws-rds-to-local.md
How to copy production database on AWS RDS(postgresql) to local development database.
  1. Change your database RDS instance security group to allow your machine to access it.
    • Add your ip to the security group to acces the instance via Postgres.
  2. Make a copy of the database using pg_dump
    • $ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
    • you will be asked for postgressql password.
    • a dump file(.sql) will be created
  3. Restore that dump file to your local database.
    • but you might need to drop the database and create it first
    • $ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
  • the database is restored
@marcomontes
marcomontes / properties.rb
Created September 19, 2018 16:08 — forked from danielsousaio/properties.rb
Filtering with Filterrific and PgSearch
# index.js.haml
- js = escape_javascript(page_entries_info @properties)
$("#results_page_entries_info").html("#{ js }");
- js = escape_javascript(paginate @properties)
$("#results_paginate").html("#{ js }");
- js = escape_javascript(render @properties)
$("#results_properties").html("#{ js }");
# properties_controller.rb
class PropertiesController < ApplicationController
["Otra", "Leticia", "Puerto Narino", "Otra", "Abejorral", "Abriaqui", "Alejandria", "Amaga", "Amalfi", "Andes", "Angelopolis", "Angostura", "Anori", "Santa Fe de Antioquia", "Anza", "Apartado", "Arboletes", "Argelia", "Armenia", "Barbosa", "Bello", "Belmira", "Betania", "Betulia", "Bolivar", "Briceno", "Buritica", "Caceres", "Caicedo", "Caldas", "Campamento", "Canasgordas", "Caracoli", "Caramanta", "Carepa", "Carmen de Viboral", "Carolina", "Caucasia", "Chigorodo", "Cisneros", "Cocorna", "Concepcion", "Concordia", "Copacabana", "Dabeiba", "Don Matias", "Ebejico", "El Bagre", "Entrerrios", "Envigado", "Fredonia", "Frontino", "Giraldo", "Girardota", "Gomez Plata", "Granada", "Guadalupe", "Guarne", "Guatape", "Heliconia", "Hispania", "Itagui", "Ituango", "Jardin", "Jerico", "La Ceja", "La Estrella", "La Pintada", "La Union", "Liborina", "Maceo", "Marinilla", "Medellin", "Montebello", "Murindo", "Mutata", "Narino", "Nechi", "Necocli", "Olaya", "Penol", "Peque", "Pueblorrico", "Puerto Berrio", "Puerto Nare", "Puer