Skip to content

Instantly share code, notes, and snippets.

View vitebo's full-sized avatar
🦖

André Alves Vitebo vitebo

🦖
View GitHub Profile
@vitebo
vitebo / .bashrc
Last active January 3, 2020 11:05 — forked from viniciusjssouza/kubectl_context.sh
show kubectl context on bash
# .bash_profile
NORMAL="\[\033[00m\]"
BLUE="\[\033[01;34m\]"
YELLOW="\[\e[1;33m\]"
GREEN="\[\e[1;32m\]"
source $HOME/kube-prompt.sh
export PS1="${BLUE}\W ${GREEN}\u${YELLOW}\$(__kube_ps1)${NORMAL} \$ "
@vitebo
vitebo / simple-desktops-scrape.php
Created July 14, 2018 02:12 — forked from tfausak/simple-desktops-scrape.php
Downloads all the wallpapers on Simple Desktops.
#!/usr/bin/env php
<?php
for ($page = 1; true; $page += 1) {
# Get the page of desktops
$url = 'http://simpledesktops.com/browse/' . $page . '/';
$html = @file_get_contents($url);
# Bail if we hit a 404