Skip to content

Instantly share code, notes, and snippets.

View fcoury's full-sized avatar

Felipe Coury fcoury

View GitHub Profile
@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 :-

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
#!/bin/bash
set -e
if [ "$1" == "" ]; then
echo "usage: $0 [servername]"
echo "where: servername - the URL Raptor API is going to use"
echo " (ie, qa-raptor.teradata.com)"
exit 1
fi
@fcoury
fcoury / AuthenticationModule.cs
Created March 29, 2017 12:40 — forked from jchannon/AuthenticationModule.cs
How to use ASP.Net Core Cookie Middleware and sign the user in within a Nancy module
public class AuthModule : NancyModule
{
public AuthModule()
{
Post("/login", async _ =>
{
var myclaims = new List<Claim>(new Claim[] { new Claim("Id", "SOME USER ID FROM SOMEWHERE!!") });
var claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity(myclaims, "MyCookieMW"));
@fcoury
fcoury / MaskedTextField.jsx
Created March 4, 2017 02:29 — forked from coderberry/MaskedTextField.jsx
MaskedTextField with material-ui
/** @jsx React.DOM */
var React = require('react')
, mui = require('material-ui')
, { TextField } = mui
, $ = require('jquery');
require('jquery.inputmask');
var MaskedTextField = React.createClass({
@fcoury
fcoury / restart_bluetooth.sh
Created February 19, 2017 01:50 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport

Keybase proof

I hereby claim:

  • I am fcoury on github.
  • I am fcoury (https://keybase.io/fcoury) on keybase.
  • I have a public key ASDBsmXuoPLdhi2W2FoUBjOeCH_U16zn4bHzGnPahv8ZUQo

To claim this, I am signing this object:

@fcoury
fcoury / nginx.conf
Created November 28, 2016 19:38 — forked from calebwoods/nginx.conf
Sample Nginx config for deployment of Angular.js app
server { listen 80;
server_name example.com;
access_log /var/log/example.com/nginx.access.log;
error_log /var/log/example.com/nginx.error.log;
root /var/www/apps/example.com/public;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
}