Skip to content

Instantly share code, notes, and snippets.

Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
// Shortcut: ctrl shift j
import "@johnlindquist/kit"
const data = await kitPath()
revealInFinder(data)
@fcrespo82
fcrespo82 / deploy.sh
Created November 6, 2020 14:29
Kubernetes - Deploy dashboard, create user and expose it on ingress
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
EOF
@fcrespo82
fcrespo82 / AlertTest.js
Created October 16, 2020 13:09
Scriptable Helper Scripts
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: yellow; icon-glyph: check-double;
let alertUtils = importModule("AlertUtils")
// Ask for input with validation
let input = await alertUtils.askInput({
title: "Enter phone number",
validate: (value) => {
if (isNaN(parseInt(value))) {
@fcrespo82
fcrespo82 / Schedule WhatsApp.js
Last active October 31, 2020 12:02
Schedule WhatsApp messages
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: comment-alt;
// If you need to send message from another app customize the url here
function getMessageURL(item) {
return `https://wa.me/${item.number}/?text=${encodeURIComponent(item.message)}`
}
async function createTable(data) {
@fcrespo82
fcrespo82 / TimeZones.js
Last active December 11, 2021 00:55
Scriptable time zones widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: cyan; icon-glyph: clock;
// TimeZones Widget for Scriptable
// Author: Fernando Crespo
// Version: 1.0
//
// This script supports all widget sizes, but the number of timezones differ as follow:
//
@fcrespo82
fcrespo82 / Dice.js
Last active September 30, 2020 17:06
Dice roller in widget for Scriptable iOS app
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: dice;
let widget = new ListWidget()
widget.backgroundColor = Color.white()
let padding = 10
widget.setPadding(padding,padding,padding,padding)
let dot = "⚫️"

Keybase proof

I hereby claim:

  • I am fcrespo82 on github.
  • I am fcrespo82 (https://keybase.io/fcrespo82) on keybase.
  • I have a public key ASCl04WJAhzfhkVNvPBcVSM83DCElgpDsQ4jvBCQeK-HqQo

To claim this, I am signing this object:

@fcrespo82
fcrespo82 / Rules.md
Created November 14, 2017 02:39
Wall Monster (game instructions)

At least 5 people:

  • Narrator
  • Normal person (crew)
  • 2 lovers (crew) (optional?)
  • Security camera (crew)
  • Baby wall monster (optional?)
  • Bodyguard (crew)
  • Wall monster

Bodyguard can choose 1 person to defend per night. If chooses a wall monster he is dragged out of the space station.

@fcrespo82
fcrespo82 / safesign.md
Created August 19, 2016 21:18 — forked from jonasmalacofilho/safesign.md
Instalando o SafeSign Crypto USB Token no Firefox/Linux

Instalando o SafeSign Crypto USB Token no Firefox/Linux

Hardware: Giesecke & Devrient SafeSign Crypto USB Token

Sistema operacional: Ubuntu 14.04 LTS AMD 64

  1. Dependências: libccid, pcscd e libpcsclite1. Adicionalmente, é interessante instalar o pacote pcsc-tools e executar pcsc_scan para verificar a visibilidade do token.