Skip to content

Instantly share code, notes, and snippets.

View stupid-kid-af's full-sized avatar

Ashutosh Tripathi stupid-kid-af

  • Pale Blue Dot
View GitHub Profile
stupid-kid-af /
Created October 21, 2022 06:19 — forked from deadjakk/
Outputs status information to dwm status bar.
# Original source:
# Network speed stuff stolen from
print_wifi() {
ip=$(ip route get 2>/dev/null|grep -Eo 'src [0-9.]+'|grep -Eo '[0-9.]+')
while IFS=$': \t' read -r label value
case $label in SSID) SSID=$value
stupid-kid-af / iframe.html
Last active May 15, 2022 17:16
responsive iframe with not downloading pdf [GDrive]
<!DOCTYPE html>
<title>Example on how to embed Google Drive PDF inside website</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="bcc.css">
<div class="container">
#include <LiquidCrystal_I2C.h>
const int trigPin = 9;
const int echoPin = 10;
long duration;
int distanceCm, distanceInch;
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {