Skip to content

Instantly share code, notes, and snippets.

View skammer's full-sized avatar
🐱
may or may not be a cat

Max Vasiliev skammer

🐱
may or may not be a cat
View GitHub Profile
@skammer
skammer / keybase.md
Last active April 5, 2016 22:12
keybase.md

Keybase proof

I hereby claim:

  • I am skammer on github.
  • I am skammer (https://keybase.io/skammer) on keybase.
  • I have a public key ASD3rCjjGLMq04t39OHMH6v5mDnqK6bhlkjDz9ZlUN30qwo

To claim this, I am signing this object:

@skammer
skammer / wget-snapshotpage.md
Created December 10, 2016 18:57 — forked from dannguyen/wget-snapshotpage.md
Use wget to snapshot a page and its necessary visual dependencies

Use wget to mirror a single page and its visible dependencies (images, styles)

Money graphic via State of Florida CFO Vendor Payment Search

Graphic via State of Florida CFO Vendor Payment Search (flair.myfloridacfo.com)

This is a quick command I use to snapshot webpages that have a fun image I want to keep for my own collection of WTFViz. Why not just right-click and save the image? Oftentimes, the webpage in which the image is embedded contains necessary context, such as captions and links to important documentation just incase you forget what exactly that fun graphic was trying to explain.

#![no_main]
#![no_std]
#[allow(unused)]
extern crate stm32f1xx_hal;
extern crate cortex_m_rt;
extern crate cortex_m_semihosting;
extern crate panic_semihosting;
extern crate cortex_m;
@skammer
skammer / flashlight.sh
Created November 16, 2023 01:49
Aurora OS flashlight toggle script. Watches over the unused orange button on the R570E phone.
#!/bin/bash
set -e
COUNTER=0
cat /dev/input/event1 | \
while IFS= read -s -d '' -r -n1 foo ; do
if [ "$foo" == "<" ]
then
include ffl/str.fs
0 Variable cnt
0 Value fd-in
256 Constant max-line
Create line-buffer max-line 2 + allot
str-create buffer
str-create buffer-inverted
str-create buffer-tmp