(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
#Number of cores | |
cores=$(grep -c ^processor /proc/cpuinfo) # Count all lines that starts with processor | |
print "This system has ${cores} cores" | |
nproc --all # This will also show a number | |
grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}' # Hyper-Threading | |
cat /proc/cpuinfo # Human readable information about all the processors |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env sh | |
{ # Ensure all script is loaded | |
# | |
# Backup unifi or protect configuration files to a remote server | |
# You should install first the public key remotely. | |
# | |
# To do ssh authentication if you have a Cloud Key Gen2, it is like any other | |
# debian. Just use "ssh-keygen" and "ssh-copy-id" | |
# |
#!/usr/bin/env bash | |
# TODO: Need to figure out the settings for the following: | |
# 1) Dock: Items with order (not capturing binary data - since that is dependent on installed apps) | |
# 2) Security & Privacy Preferences: Full Disk Access, Camera, Microphone | |
# 3) Login items for my user (i.e. apps started when I login) | |
# 4) Retina displays | |
## | |
# This is a script with useful tips taken from: |
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Generador de claves Zigbee para Home Assistant</title> | |
<style> | |
body { | |
font-family: helvetica, arial, sans-serif; | |
} |
[NetDev] | |
Name=eth0.30 | |
Kind=vlan | |
[VLAN] | |
Id=30 |
[Match] | |
Name=eth0.30 | |
[Network] | |
DHCP=no | |
Gateway=192.168.X.1 | |
DNS=192.168.X.1 | |
Domains=localnetwork.local | |
[Address] |
#!/usr/bin/env bash | |
# To use this script see comments | |
write::out() { | |
echo "$@" | |
} | |
write::log() { | |
[[ ! -z "$DEBUG" ]] && write::out "$@" |
<!--- Show here: https://twitter.com/latteandcode/status/1356584007199318016 ---> | |
.remove-bg { | |
filter: brightness(1.1); | |
mix-blend-mode: multiply; | |
} |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key