Skip to content

Instantly share code, notes, and snippets.

View fcoury's full-sized avatar

Felipe Coury fcoury

View GitHub Profile
@fcoury
fcoury / ghkey.rb
Created April 27, 2009 01:47
Automates the generation and inclusing of a SSH Public Key to GitHub
#!/usr/bin/env ruby
require 'rubygems'
require 'octopi'
require 'choice'
include Octopi
Choice.options do
header ''
@fcoury
fcoury / README.md
Created October 19, 2021 02:13 — forked from gjreasoner/README.md
Expand Ubuntu 20 Proxmox Disk
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button

# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                         8:0    0    1T  0 disk
├─sda1                      8:1    0    1M  0 part
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0    1T  0 part
# For the queasy, this is MIT licensed. See comment at the end.
module MySQLEncryption
# Mimics MySQL's AES_ENCRYPT() and AES_DECRYPT() encryption functions
def mysql_encrypt(s, key)
encrypt(s, mysql_key(key))
end
def mysql_decrypt(s, key)
@fcoury
fcoury / README.md
Created August 15, 2020 22:54 — forked from snowkidind/README.md
TDAmeritrade API Notes for Node.js

Access to Ameritrade API

notes that may be helpful for node.js devs

What I've gathered is authorization tokens must be earned first. Authorization tokens are good for three months, once you are setup, you will get two tokens which come as long strings, An access_token and a refresh_token. Access tokens are only valid for 30 minutes so you will need to code to refresh the session using the refresh token frequently. When you refresh, you are given a new access token and that is what you use to "login" or pull from the api for the next period. But in order to get the tokens, you will be required to go through some processes to get a valid token that applies to your app. The following text kind of steers you in that direction...

Making an app

On the api site you will need to make an app, where you pick some random name by using some random numbers. It should be automatically generated but it isnt. For this field item, I simply went to https://www.uuidgenerator.net/ and just grabbed the firs

@fcoury
fcoury / AdobeFixAMD
Created May 29, 2020 14:11 — forked from XLNCs/AdobeFixAMD
To fix adobe products crashes on AMD hackintosh
___ADOBE CRASH FIX BY XLNC___
USAGE : Open terminal and run the below commands as required.
NOTE: File path changes in each version release. So if the file is not found you can find the specified file manually and replace the path in the below commands.
You can also use this command to find the location of a specific adobe file :
eg:- if you want to search for MMXCore then run this command :
find /Applications/Adobe* -type f -name "MMXCore" | sed 's/ /\\ /g'
Photoshop crash fix :-
@fcoury
fcoury / politica-rails-br.md
Created February 1, 2012 00:11
Política de uso da Rails-BR (Sugestão)

Política de Uso do Fórum Rails-BR

Histórico

A Rails-BR é o maior e mais antigo fórum sobre Ruby e Ruby on Rails do Brasil, fundada em 2005 por Rodrigo Franco (aka @caffo) e conta com mais de 2100 membros. Ela foi criada com o intuito de difundir o conhecimento sobre Ruby e Rails e facilitar a comunicação de seus usuários no Brasil.

Objetivo da política de uso

A política de usos do fórum estipula o que pode ou não ser publicado, orientações gerais de conduta e explicita quais as sanções àqueles que não respeitarem essas regras. Ela visa garantir a qualidade do conteúdo e assegurar uma convivência pacífica e respeitosa entre seus membros, seguindo as leis do país e e boas práticas de netiqueta. Gostaríamos de evitar ao máximo a necessidade de aplicar sanções a qualquer membro.

/**
* ====================================================================
* About
* ====================================================================
* Sarissa is an ECMAScript library acting as a cross-browser wrapper for native XML APIs.
* The library supports Gecko based browsers like Mozilla and Firefox,
* Internet Explorer (5.5+ with MSXML3.0+), Konqueror, Safari and a little of Opera
* @version 0.9.6.1
* @author: Manos Batsis, mailto: mbatsis at users full stop sourceforge full stop net
* ====================================================================
@fcoury
fcoury / gist:3a75bbab390de6a79b3f
Created October 19, 2015 12:33 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat

YouTube Channel Topics

#mrkeebs

Idéias

  • Introdução ao mundo de teclados mecânicos
    • Comerciais vs. customizados
      • Standard bottom row vs. custom bottom row
      • DIY Kits vs. Pre-built
    • Tipos de switch
  • Tactile, Clicky e Linears
@fcoury
fcoury / flash.sh
Last active February 25, 2018 16:58
Commands to flash the Minivan and kbd75 with my layouts using QMK
# minivan
make tv44:mrkeebs
sudo dfu-programmer atmega32u4 erase --force
sudo dfu-programmer atmega32u4 flash .build/tv44_mrkeebs.hex
sudo dfu-programmer atmega32u4 start
# kbd75
make kbd75:mrkeebs
sudo dfu-programmer atmega32u4 erase --force
sudo dfu-programmer atmega32u4 flash .build/kbd75_mrkeebs.hex