Skip to content

Instantly share code, notes, and snippets.

Rico Sta. Cruz rstacruz

Block or report user

Report or block rstacruz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rstacruz
rstacruz / arch_install.sh
Last active Aug 8, 2019
Arch Linux installation helper
View arch_install.sh
#!/usr/bin/env bash
# https://gist.github.com/rstacruz/dd24b2a2be5b36bf77965060ceed2f69
# Arch installer helper script
# ============================
#
# A small script to make it easier to install Arch Linux on VM's.
# For laptops: no EFI support here, but you can add it in yourself!
#
# Boot the Arch Linux installer. Get online.
View Comelec SD card failure analysis.md

Analyzing SD card failures in the Philippine elections

News reports say that 2019 Philippine elections are severely affected by SD card glitches. If we go by the facts, there should only be ~8 machines affected by SD card failures. Only 0.01% of the vote-counting machines should be affected by these issues. Let's do the math and see why.

What we know

@rstacruz
rstacruz / README.md
Last active May 3, 2019
CSS Blitz - Single-div macOS window
View README.md
@rstacruz
rstacruz / README.md
Last active Feb 8, 2019
CSS Blitz - Grid lists.md
View README.md
@rstacruz
rstacruz / README.md
Last active Aug 6, 2019
Setting up Babel and TypeScript
View README.md

Install Babel 7 and TypeScript

yarn add --dev \
  @babel/core \
  @babel/cli \
  @babel/preset-env \
  @babel/preset-typescript \
  typescript
@rstacruz
rstacruz / README.md
Last active Dec 14, 2018
CSS Blitz - Form fields
View README.md
@rstacruz
rstacruz / lock-transparent.sh
Created Nov 22, 2018
Transparent lock screen
View lock-transparent.sh
#!/usr/bin/env bash
# Rico's transparent X lock script
# Requires 'scrot' and 'xbacklight' and 'i3lock'
_xbacklight () {
if which xbacklight &>/dev/null; then
xbacklight $*
fi
}
View arch_install.md

Installing Arch Linux

This is not a replacement for the Arch Wiki Installation Guide! Consider this a refresher course.

First steps

Change keyboard layout

(Optional) If you're using different keyboard layout, change it now using loadkeys.

@rstacruz
rstacruz / README.md
Last active Oct 5, 2018
CSS Blitz - Switch control
View README.md
You can’t perform that action at this time.