Skip to content

Instantly share code, notes, and snippets.

View xslim's full-sized avatar

Taras Kalapun xslim

View GitHub Profile

Untitled CSS Library RFP

Untitled CSS Library is a CSS library that, so far as I can tell, does not exist.

It offers the following features:

  • It renders well out of the box with Vanilla HTML, like a classless CSS library such as pico
  • It takes advantage of semantic, lesser used tags such as nav, main and section to allow for more elaborate layouts in pure HTML
  • It offers "High Power" classes that capture high level components in, as much as is possible, a single CSS class
@darconeous
darconeous / rect-starlink-cable-hack.md
Last active November 8, 2024 16:20
Hacking the Rectangular Starlink Dishy Cable
// paste in console of any https site to run (e.g. this page)
// sample arguments for registration
// https://fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-raw-message-formats-v1.1-id-20160915.html#authentication-response-message-success
var createCredentialDefaultArgs = {
publicKey: {
// Relying Party (a.k.a. - Service):
rp: {
name: "Acme"
},
@xirkus
xirkus / yubikey+gpupgp+ssh_howto.md
Last active September 19, 2024 14:54
Security Adventures 1. How to get yubikey+gpg+ssh+gitbhub working on MacOS

I've spent the day trying to get this setup working with GitHub and given the number of gotcha's I encountered, it seemed like a good idea to document how I finally got this working with as few hacks as possible. There's a lot of documentation out there (some of it old and misleading) and committing here for posterity will help me remember this when I inevitably need to do this again.

Rationale

Passwords are simply not enough these days. Regardless of the company, breaches (and the associated Personally Identifiable Information harvested) are a matter of not if, but when. There are a number of things you can do to protect yourself, but being on the tin-foil-hat side of paranoia, means there are a few Commandents that I adhere to (and recommend for other folks)[Insert link to Fight Club Rules for the Secure Internet].

That being said, if you use 2-factor authentication and have committed to using a hardware token such as the Yubikey, then you're already ahead of the curve. The problem is that wh

@julianschiavo
julianschiavo / 1 iOS Apps on Apple Silicon.md
Last active December 22, 2023 14:26
Bash script to resign wrapped iOS apps on Apple Silicon; allows running third party apps

iOS Apps on Apple Silicon

Bash script to resign wrapped iOS apps on Apple Silicon; allows running third party apps

  1. Get a copy of an unencrypted iOS app (IPA) file (see here)
  2. Double-click the file on Mac with Apple Silicon to install it to /Applications
  3. Save the resign.sh script
  4. Replace CODE_SIGN_IDENTITY_HERE with your code signing identity from Xcode (see here)
  5. If needed, allow execution on the script file by running chmod +x SCRIPT_PATH in Terminal
  6. Run resign.sh, passing in the wrapped app to resign ./resign.sh /Applications/Snapchat.app
  7. If successful, the resigned app will open
#!/bin/bash -x
export curl
export jq
export RANCHER_IP=34.70.139.14
export CLUSTER_NAME=test-cluster-new
export OUTPUT_DIR=/var/lib/rancher/k3s/server/manifests
while true; do
curl -sLk https://${RANCHER_IP}/ping && break
sleep 5
@pascalandy
pascalandy / compose-caddy.yml
Last active July 24, 2024 15:36
Traefik V2 / my docker compose files
version: "3.3"
services:
caddy:
image: abiosoft/caddy:1.0.3-no-stats
container_name: caddy
hostname: caddy
restart: unless-stopped
volumes:
ssh_authorized_keys:
- github:jdbohrman
write_files:
- encoding: ""
content: |-
#!/bin/bash
mkdir -p '/var/lib/rancher/k3s/server/manifests/'
curl -L https://gist.githubusercontent.com/jdbohrman/714bb13d8b8404f647174d9132f5f320/raw/de0c3825d03aa84c70f95e7a4445802e53dabddb/call-rancher.yaml >> /var/lib/rancher/k3s/server/manifests/call-rancher.yaml
owner: root
path: /etc/rc.local
@lbussy
lbussy / README.md
Last active October 12, 2024 06:54
External Button Shutdown for Raspberry Pi

Shutdown Raspberry Pi with a Single Button

There are two methods:

  1. Scripted Method
  2. Boot Overlay Method (also below as "tl;dr")

tl;dr Version

Add the following to your /boot/config.txt and reboot:

@MattRix
MattRix / DrawTile.html
Last active April 21, 2020 14:08
Simple tool to generate the uints necessary for u8x8 drawtile: https://github.com/olikraus/u8g2/wiki/u8x8reference#drawtile - jsfiddle version: https://jsfiddle.net/hongm3tu/3/
<div id="main"></div>
<br/>
<button id="clear">Clear</button>
<button id="fill">Fill</button>
<button id="load">Load</button>
<br/>
<br/>
<textarea id="output"></textarea>