Skip to content

Instantly share code, notes, and snippets.

View cesarvargas00's full-sized avatar
🌟
Focusing

César Vargas cesarvargas00

🌟
Focusing
View GitHub Profile
@cesarvargas00
cesarvargas00 / docker_cheat_sheet.md
Created May 11, 2016 02:35 — forked from gullitmiranda/docker_cheat_sheet.md
Clean Docker images and containers cheat sheet.

Docker Cheat Sheet

NOTE: if you are using the docker without the http://azk.io installed, use docker instead of adocker.

Kill running containers

adocker kill $(adocker ps -q | tr '\r\n' ' ')

Criar.me interview

Intro

Hi! If you wanna work with us, you gotta solve this first. Let's see what you've got!

Instructions

  1. This test should be commited to Github, with every comment in english.
  2. Every applicant should solve all the general questions.
defmodule ListOps do
def count([]), do: 0
def count([h|t]), do: count(t) + 1
def reverse(l), do: reverse(l, [])
defp reverse([], acc), do: acc
defp reverse([h|t], acc), do: reverse(t, [h|acc])
def map([], _f), do: []
isPulsing = false
function OnEvent(event, arg)
OutputLogMessage "Start Pulsing."
if not isPulsing then
isPulsing = true
PulseKeyboard()
end
end
@cesarvargas00
cesarvargas00 / .zshrc
Created May 29, 2017 03:26
Prezto .zshrc
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@cesarvargas00
cesarvargas00 / new-computer.sh
Created June 2, 2017 00:17
New computer bash script
#installs homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#install zshell
brew install zsh pyenv
sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
#install some apps
brew cask install flycut spectacle google-chrome spotify skype slack sublime-text
@cesarvargas00
cesarvargas00 / gauss.py
Last active October 6, 2018 01:47
Implementação do método de Gauss em python
# ALUNO: Cesar Vargas
# TIA: 30908639
import copy
# Exercício 1
def triangular(entrada):
saida = [None for x in range(len(entrada))]
for i in reversed(range(0,len(entrada[0])-1)): #for (int i=sizeof(entrada)/sizeof(entrada[0]); i > 0; i--)
soma = 0
{
"name": "Questionário Geral Público",
"creation": "2018-11-15T20:04:33.787Z",
"resources": {
"money": {
"name": "dinheiro",
"subrecursos": {
"organizacao": {
"name": "organização",
"toAvoid": [
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "8" "slot8"
bind "9" "slot9"
@cesarvargas00
cesarvargas00 / ubuntu_razer15_2019.sh
Last active February 17, 2020 02:36
Fixes Razer Blade Infinite Loop and Hibernation Stall
echo 'blacklist ucsi_ccg' | sudo tee -a /etc/modprobe.d/blacklist.conf #hibernation stall fix. Might have to remove l8r.
sudo sed 's/quiet splash/quiet splash button.lid_init_state=open /g' /etc/default/grub | sudo tee /etc/default/grub #wake up loop fix
sudo update-grub #save kernel params to grub
echo 'razer blade configurado...'