Skip to content

Instantly share code, notes, and snippets.

View brunoluiz's full-sized avatar
🤌

Bruno Luiz Silva brunoluiz

🤌
View GitHub Profile
@nownabe
nownabe / deployment.yaml
Created August 22, 2018 13:38
Deserialize Kubernetes objects in Go
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: my-namespace
name: memcached
spec:
replicas: 1
selector:
matchLabels:
app: memcached
@reinaldomendes
reinaldomendes / usar bitbucket na locaweb
Last active December 22, 2015 03:22
Truques de servidores
##################################
# ~/.ssh/config
##################################
Host bitbucket.org
Hostname altssh.bitbucket.org
Port 443
@demisx
demisx / angularjs-providers-explained.md
Last active May 17, 2024 03:38
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@leommoore
leommoore / node_file_paths.markdown
Last active August 19, 2024 13:02
Node - File Paths

#Node - File Paths

##File Paths Node has a path module which can be used to manipulate paths.

###Normalizing Paths Paths can be stored in different ways and it is neccessary to ensure that the path is standardized.

var path = require('path');
path.normalize('/foo/bar//baz/asdf/quux/..');