Skip to content

Instantly share code, notes, and snippets.

View Asjas's full-sized avatar
🔥

A-J Roos Asjas

🔥
  • South Africa
  • 17:03 (UTC +02:00)
  • X @_asjas
View GitHub Profile
@Asjas
Asjas / v8.md
Created March 2, 2020 13:52 — forked from kevincennis/v8.md
V8 Installation and d8 shell usage

Installing V8 on a Mac

Prerequisites

  • Install Xcode (Avaliable on the Mac App Store)
  • Install Xcode Command Line Tools (Preferences > Downloads)
  • Install depot_tools
    • git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    • sudo nano ~/.bash_profile
  • Add export PATH=/path/to/depot_tools:"$PATH" (it's important that depot_tools comes first here)
@Asjas
Asjas / .sr-only
Last active December 8, 2020 20:01
A CSS class for screen reader content. This will hide the HTML Element from the user but will still allow screen readers to see it.
// https://hugogiraudel.com/2016/10/13/css-hide-and-seek/
.sr-only {
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
overflow: hidden !important;
padding: 0 !important;
@Asjas
Asjas / nginx.conf
Last active October 8, 2023 17:08
Nginx sample config. Includes CSP headers, caching headers, gzip and brotli compression
user www-data;
worker_processes auto;
worker_rlimit_nofile 8192;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 8000;
}

Keybase proof

I hereby claim:

  • I am asjas on github.
  • I am asjas (https://keybase.io/asjas) on keybase.
  • I have a public key whose fingerprint is 47C2 2148 2FA1 588B AF6D E764 4315 6461 0C72 F39D

To claim this, I am signing this object:

npm set init.author.name "A-J Roos"
npm set init.author.email "asjas@hey.com"
npm set init.license "MIT"
@Asjas
Asjas / .gitconfig
Last active January 24, 2023 22:54
.gitconfig
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = A-J Roos
email = asjas@hey.com
signingkey = 469CC0CAEEA7DB94
[alias]