Skip to content

Instantly share code, notes, and snippets.

View cab404's full-sized avatar
💜
s p a r k l i n g u n i c o r n p r i n c e s s ™

Cabia Rangris cab404

💜
s p a r k l i n g u n i c o r n p r i n c e s s ™
View GitHub Profile
@cab404
cab404 / SketchSystems.spec
Created February 7, 2019 23:58
Registration
Registration
Enter name bio & photo -> Tinder
Tinder
Next -> Tinder
Y YY NN -> Tinder

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 / loginmetro.sh
Last active November 21, 2018 14:29
#!/bin/bash
# Script for logging into MosMetro-Free in Moscow Metro
# With last updates to auth.wi-fi.ru - LUL FKN NOOOOBS THEY MADE IT EVEN EASIER
AUTHURL="http://auth.wi-fi.ru/auth?section=metro"
INITURL="http://auth.wi-fi.ru/auth/init?mode=0"
CHECKURL="http://auth.wi-fi.ru/auth/check?segment=metro"
AUTOURL="http://auth.wi-fi.ru/auto_auth?segment=metro"
CAPTCHAURL="http://auth.wi-fi.ru/rucaptcha/"
@cab404
cab404 / vecs.kt
Last active September 27, 2018 17:25
Simple 2D utilities for Kotlin
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 April 30, 2018 12:13
Image resizer for Android based on PIL
#!/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

немного о включении режима мониторинга

короче

  1. сначала мы отключаем беспроводной интерфейс от менеджера системы (который думает, что мы очень хорошие, и хотим только свои пакеты) это мы делаем через
    	ifconfig <название интерфеса> down
@cab404
cab404 / checkmacs.sh
Last active April 3, 2018 07:05
MAC address checker for moscow metro
#!/bin/bash
# script for finding userdata from a list of macs.
# for educational purposes only, of course.
INPUT=$1
SSID=MT_FREE
DEV=${2:-wlp1s0}
OUTDIR=check-`date +%d-%m-%yT%H:%M:%S`
function jsonf() { python -c 'import json; json.dump(json.load(open("/dev/stdin", "r")), open("/dev/stdout", "w"), indent=2)'; echo; }
@cab404
cab404 / 9patch-resize.sh
Last active March 29, 2018 20:33
Resizer for 9patch images based on im utils
#!/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
тип название ссылка стоимость
GPU GTX 1060 https://market.yandex.ru/product/14187640 21000
CPU AMD Ryzen 5 1600X https://market.yandex.ru/product/1723154074 13000
MBD ASRock Fatal1ty https://market.yandex.ru/product/1732965279 9500
RAM 2x8Gb Corsair Vengeance https://market.yandex.ru/product/13485858 12000
SSD Samsung EVO 860 https://market.yandex.ru/product/1969039551 6000
CSE Fractal Design Node 304 https://market.yandex.ru/product/8516133 5000
PSU Corsair VS450 450W https://market.yandex.ru/product/7951165 3000
RAD Noctua NH-L9x65 https://market.yandex.ru/product/12664665 3000
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