Skip to content

Instantly share code, notes, and snippets.

💭
mow mow, a status!

Cabia Rangris cab404

💭
mow mow, a status!
View GitHub Profile
@cab404
cab404 / shell.nix
Created Feb 2, 2020
Python shell with override example.
View shell.nix
{ pkgs ? import <nixpkgs> {} }: let
pyversion = version: package: package.overrideAttrs (a: { inherit version; });
in
with pkgs; mkShell {
buildInputs = [
(python37.withPackages(a: with a; [
ipython pylint
View SketchSystems.spec
Registration
Enter name bio & photo -> Tinder
Tinder
Next -> Tinder
Y YY NN -> Tinder
View SketchSystems.spec
Registration
Enter name bio & photo -> Hub
Hub
Rate people -> Tinder
Destroy data -> Destroy dialog
Hub children
Tinder
Next -> Tinder
View SketchSystems.spec
Registration
Enter name -> Hub
Hub
Rate people -> Tinder
Edit profile -> Profile editor
Hub pages
Profile editor
Set name -> Name setter
Set photo -> Photo setter
View keybase.md

Keybase proof

I hereby claim:

  • I am cab404 on github.
  • I am cab404 (https://keybase.io/cab404) on keybase.
  • I have a public key ASDj-0nuqHxzRNhSUeBhlMO-NzBIGsgdr4LJnIfcQ-AS1Ao

To claim this, I am signing this object:

@cab404
cab404 / vecs.kt
Last active Sep 27, 2018
Simple 2D utilities for Kotlin
View vecs.kt
import kotlin.math.*
data class Vec2(
val x: Float,
val y: Float
) {
constructor() : this(0f, 0f)
constructor(x: Number, y: Number) : this(x.toFloat(), y.toFloat())
companion object {
@cab404
cab404 / buckethit.py
Last active Apr 30, 2018
Image resizer for Android based on PIL
View buckethit.py
#!/usr/bin/python3
# @author cab404
# Thing that resizes images for android
import os
import argparse
import random
from multiprocessing import Pool
from PIL import Image
@cab404
cab404 / 9patch-resize.sh
Last active Mar 29, 2018
Resizer for 9patch images based on im utils
View 9patch-resize.sh
#!/bin/bash
# resizer for android 9patch icons
# getting center part
convert -shave 1 $1 core.png
# getting sides
convert -gravity West -crop 1x+0+0 $1 l.png
convert -gravity East -crop 1x+0+0 $1 r.png
convert -gravity South -crop x1+0+0 $1 b.png
@cab404
cab404 / interesting-macs
Created Mar 13, 2018
Just some interesting macs, filtered from MT_FREE
View interesting-macs
00:0A:F5:66:C2:A4
04:B1:67:B5:87:F1
28:ED:6A:87:D4:A6
38:F2:3E:8F:69:20
58:48:22:45:6B:FC
80:EA:96:4A:02:C4
8C:8E:F2:7C:FD:90
98:00:C6:33:B3:66
B0:E5:ED:9A:8B:9F
D8:5B:2A:B1:1E:A3
View dell-5379-dellfan.patch
diff --git a/dellfan.c b/dellfan.c
index 5f9098d..1f71236 100644
--- a/dellfan.c
+++ b/dellfan.c
@@ -67,10 +67,10 @@
* putting the speed to maximum, sleeping some seconds, and checking the speed back.
* Check the function probecodes()
*/
-#define DISABLE_BIOS_METHOD1 0x30a3
-#define ENABLE_BIOS_METHOD1 0x31a3
You can’t perform that action at this time.