View curl.md

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

View intel-edison.md

Updating firmware

First download the firmware in the Intel website.

Then open the mounted disk and remove everything inside. Unzip the content of the download in the drive then access the Edison true screen (see the tutorial bellow).

And run the command:

$ reboot ota
View .bash_aliases
### Directory
alias ll="ls -lv"
alias lla="ls -alv"
alias glg="git log --pretty='format:%Cgreen%h%Creset %an - %s' --graph"
alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen %cr %an%Creset'"
alias gs="git status"
alias gd="git diff"
# add
alias ga="git add"
View graceful.go
package main
import (
"context"
"log"
"net/http"
"os"
"os/signal"
"time"
)
View gist:f4b3361547f82e1d45128b3eadab746d
// this will find all files ending with _test.js and run them with Mocha. Put this in your package.json
"scripts": {
"test": "find ./tests -name '*_test.js' | xargs mocha -R spec"
},
View destructuring.js
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View es6-abstract-class-example.js
'use strict';
class Abstract {
// A static abstract method.
static foo() {
if (this === Abstract) {
// Error Type 2. Abstract methods can not be called directly.
throw new TypeError("Can not call static abstract method foo.");
} else if (this.foo === Abstract.foo) {
// Error Type 3. The child has not implemented this method.
throw new TypeError("Please implement static abstract method foo.");
View gist:8d9177e4a2f7fe64d5b3c8a2b3ac30e8
-----BEGIN PGP MESSAGE-----
Comment: https://keybase.io/download
Version: Keybase Go 1.0.17 (darwin)
wcFMA2xWdG8xegQ0ARAAEh0xY4SP1m2Ag5D9P9ui9XfQhPPpQS0c1xm8+x2Qyyv6
+SxVy96qHg6p4OA7CDvmDY0p2PGsq0o44YzJZ/iCOGKxbQr827L4cdey1cZbGnAZ
a/Ee4Es70PslDVH72dgu54MSvQ2Z4ikwm6V/RXvwYXmHx6u9zwT1iNCcNNv1cgfD
FD/Csqx3vEEZo361MkZ7h0nMDQF8F7JuUVd94pwxk7/sbArEgBy7SoApQzNS6ZX6
XMOxzxme+KcSehp+GLWlGBmG11bkTEgFxHI5Bi0JFmhCcR0Ms96Gp7PH6prtg+tG
9OeubtGSUsJMJaUa8/F/08C9L3ctFXdtr1QrOZ2z8tRgmEVjOUxYAXlFEJff19Qq
View git-check-dirty.sh
if [[ -n $(git status --porcelain) ]]; then echo "repo is dirty"; fi