Skip to content

Instantly share code, notes, and snippets.

@jaimet
jaimet / iw_scan.awk
Created February 16, 2019 12:12 — forked from miyl/iw_scan.awk
simplify the output of iw scan
# Based off this answer http://stackoverflow.com/a/17880517/1172409
# Ideally one wouldn't parse the output of iw scan (it may be subject to change),
# but dealing with learning libnl which iw uses seems overly complicated - more so than updating this in case iw does change.
# A few things that could be improved:
# Better padding solution for prettier pretty printing.
# Sort APs based off signal strength from best to worst.
# Usage - iw must be run as root (suggestion: add as an alias in bashrc):
# iw wlp8s0 scan | awk -f scan.awk
@jaimet
jaimet / brightness.md
Created January 17, 2019 23:40 — forked from reliq/brightness.md
Optimus (Dual Graphics) - Backlight Keys Workaround (Ubuntu/Linux Mint)

Adapted from here.

Get Fn F5/F6 working:

sudo emacs etc/default/grub

Change the following: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

sudo update-grub

reboot the system... Now the splash screen should show up.

@jaimet
jaimet / ImageBuilder.java
Created August 17, 2018 21:57 — forked from mridang/ImageBuilder.java
Gasflow Notification Icon Generator
package com.mridang.dashbar;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Typeface;
import android.os.Environment;