Skip to content

Instantly share code, notes, and snippets.

View pedroppinheiro's full-sized avatar

Pedro Victor Pontes Pinheiro pedroppinheiro

View GitHub Profile
1 hostname elliot-01
2 echo elliot-01 > /etc/hostname
3 bash
4 vim /etc/modules-load.d/k8s.conf
5 curl -fsSL https://get.docker.com | bash
6 docker version
7 docker ps
8 apt-get update && apt-get install -y apt-transport-https
9 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
10 echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
@pedroppinheiro
pedroppinheiro / index.js
Created January 6, 2020 00:45 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
console.log('yay gist')
@pedroppinheiro
pedroppinheiro / jsf.md
Created June 4, 2018 14:20 — forked from franzwong/jsf.md
Jsf cheatsheet
  • usage of h:selectOneMenu
<h:selectOneMenu value="#{manageStudent.student.gender}">
    <f:selectItem itemLabel="- Select Gender -" itemValue=""/>
    <f:selectItems value="#{manageStudent.genders}"/>
</h:selectOneMenu>
  • get HttpServletRequest and HttpServletResponse in managed bean
@pedroppinheiro
pedroppinheiro / ssh_commands.md
Last active August 29, 2015 14:26 — forked from learncodeacademy/gist:5850f394342a5bfdbfa4
SSH Basics - Getting started with Linux Server Administration

###SSH into a remote machine###

ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1

exit: exit ###Install Something###

#If it's a new server, update apt-get first thing