Skip to content

Instantly share code, notes, and snippets.

View erkobridee's full-sized avatar

Erko Bridee erkobridee

View GitHub Profile
@mariojunior
mariojunior / creating-iso-files-on-terminal
Last active December 15, 2015 15:29
How to create .iso files using Terminal on MacOS
First: Discovery where your Volume disk running:
-- sudo df -k /Volumes/*
Second: umount your Volume disk without remove the disk:
-- sudo umount /dev/disk3 ('dev/disk3' may be different, you must replace it according previous command)
Third: Create an ISO file mirroring the disc on specified path:
--- dd if=/dev/disk3/ of=PATH_TO_ISO_FILE.iso bs=2048 (remember about the 'dev/disk3' argument)
Wait some several minutes. You can open the Finder on your destiny ISO file to monitoring the growing of file, but sometimes the file size take some minutes to show the real size. Keep calm, take a coffee and relax. :)
@mariojunior
mariojunior / NTFS on MacOS 10.7 or later.
Last active December 14, 2015 17:29
Hd Externo usando NTFS com Mac OS 10.8 (Mountain Lion) (read/write)
Passo 1:
Baixe o NTFS-3G e instale-o
(http://sourceforge.net/projects/catacombae/files/NTFS-3G%20for%20Mac%20OS%20X/2010.10.2/ntfs-3g-2010.10.2-macosx.dmg/download)
Ao instala-lo, o MacFUSE será instalado junto (verifique se no Preference System tem dois novos items: MacFUSE e NTFS-3G).
Passo 2:
Baixe o fuse_wai-1.1pkg e instale-o
https://github.com/bfleischer/fuse_wait/downloads
@erkobridee
erkobridee / git_github.md
Last active August 11, 2020 15:12
Conjunto de informações muito úteis para se trabalhar com Git e GitHub

Git e GitHub

Sobre

O Git é um Sistema de Controle de Versão Distribuído. (Distributed Version Control System ou DVCS). Em um DVCS, os clientes não apenas fazem cópias das últimas versões dos arquivos: eles são cópias completas do repositório. Assim, se um servidor falha, qualquer um dos repositórios dos clientes pode ser copiado de volta para o servidor para restaurá-lo. Cada checkout (resgate) é na prática um backup completo de todos os dados.

@erkobridee
erkobridee / npm-ntlm-proxy.md
Last active February 8, 2022 00:55
Problema: NPM atrás de um Proxy que utiliza autenticação NTLM

NPM vs NTLM PROXY

O problema: NPM atrás de um Proxy que utiliza autenticação NTLM

Ambiente do problema: Computador com Windows sem acesso administrador

Obs.: mesmo se você for administrador do computador, essa dica resolve o problema de como passar o NTLM Proxy, via linha de comando.


@erkobridee
erkobridee / rest_url_design.md
Last active October 11, 2015 13:48
Proposta de URLs para aplicações que implementam REST

REST URL design

:app-name - nome da aplicação

:version - versionamento (é recomendado o uso, porém, não é obrigatório o uso)

:resource - nome do recurso exposto (entidade), sendo este nome no plural

GET, UPDATE, DELETE

@erkobridee
erkobridee / rest-json-js-frontend.md
Last active November 8, 2024 11:22
links úteis REST, JSON, HTML5, JavaScript e Twitter Bootstrap

Links úteis

  • A Rant about Estimation – When Will We Stop Being Crazy

  • InfoQ BR

    • Fuja da escravidão antes que ela te alcance - Nesta palestra, Vinícius Teles nos fala a respeito da realidade de muitos trabalhadores que possuem vidas estáveis, porém repletas de frustrações advindas de suas rotinas e carreiras aparentemente seguras. Vinícius trata do empreendedorismo, com dicas para profissionais de tecnologia que buscam atingir não apenas a estabilidade financeira, mas também a plena satisfação profissional e pessoal.

    • Agile Brazil 2012

@Mithrandir0x
Mithrandir0x / gist:3639232
Created September 5, 2012 16:15
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
@mariojunior
mariojunior / gist:2924325
Created June 13, 2012 14:14
Showing / Hidding hidden Files on MacOSX
#To show your hidden files on Finder, use this script:
#To Show:
defaults write com.apple.finder AppleShowAllFiles -bool true
killall -TERM Finder
#To Hide them:
defaults write com.apple.finder AppleShowAllFiles -bool false
killall -TERM Finder
@jboner
jboner / latency.txt
Last active April 19, 2025 21:29
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@kentbrew
kentbrew / node-on-ec2-port-80.md
Last active November 14, 2024 11:23
How I Got Node.js Talking on EC2's Port 80

The Problem

Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)

The temptingly easy but ultimately wrong solution:

Alter the port the script talks to from 8000 to 80:

}).listen(80);