Skip to content

Instantly share code, notes, and snippets.

View ralexrdz's full-sized avatar

Raul Rodriguez ralexrdz

  • Vientos
  • Mexico City
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hospital Firebase</title>
<!-- *******************************************************************************************
* TODO(DEVELOPER): Paste the initialization snippet from:
* Firebase Console > Overview > Add Firebase to your web app. *
***************************************************************************************** -->
<script src="https://www.gstatic.com/firebasejs/6.3.4/firebase-app.js"></script>
sudo mkdir /opt/popcorntime/
sudo mv Popcorn-Time-0.4.4-linux64 /opt/popcorntime/Popcorn-Time
sudo ln -sf /opt/popcorntime/Popcorn-Time /usr/bin/Popcorn-Time
  • Add ^ to show only matches in your browsing history.
  • Add * to show only matches in your bookmarks.
  • Add + to show only matches in bookmarks you've tagged.
  • Add % to show only matches in your currently open tabs.
  • Add # to show only matches where every search term is part of the title or part of a tag.
  • Add $ to show only matches where every search term is part of the web address (URL). The text "https://" or "http://" in the URL is ignored but not "file:///".
  • Add ? to show only search suggestions.

Instalacion de kubectl y configuración de acceso a cluster

Correr en terminal

(no importa en qué directorio, acabará moviendose a PATH)

curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
accountsservice
acl
acpi
acpi-support
acpid
add-apt-key
adduser
adobe-flashplugin
adwaita-icon-theme
alsa-base
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
#!/bin/bash
# requires jq and docker
docker inspect $(docker ps -qa) | jq -r 'map([.Name, .GraphDriver.Data.MergedDir]) | .[] | "\(.[0])\t\(.[1])"'
curl -L https://git.io/JeNX1 >> ~/.zshrc
source ~/.zshrc

check CPU

top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}'

check memory

free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'