Skip to content

Instantly share code, notes, and snippets.

package me.grishka.appkit.utils;
import android.util.SparseArray;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.HashMap;
import androidx.recyclerview.widget.RecyclerView;
@grishka
grishka / BadApple.c
Created January 26, 2022 16:02
Siemens SGold Bad Apple
#include <swilib.h>
// Глобальные переменные и структуры для создания окна и графического контекста
#define GUI_STATE_CLOSED 0
#define GUI_STATE_BACKGROUND 1
#define GUI_STATE_ACTIVE 2
wchar_t maincsm_name_body[140];
// ==UserScript==
// @name Coub Likes Downloader
// @version 0.1
// @description try to take over the world!
// @author Grishka
// @match https://coub.com/*
// @grant none
// ==/UserScript==
// Добавляем кнопку в шапку
@grishka
grishka / AE CubicBezier.jsx
Created February 18, 2023 03:06
After Effects cubic-bezier exporter
// Source: https://community.adobe.com/t5/after-effects-discussions/convert-ae-keyframes-info-to-cubicbezier-points/m-p/6139286#M135604
// Usage: select a layer, then File -> Scripts -> Run Script File... -> select this script
var curItem = app.project.activeItem;
var selectedLayers = curItem.selectedLayers;
var selectedProperties = curItem.selectedProperties;
var output="";
if (selectedLayers == 0) {
output="Please Select at least one Layer";
@grishka
grishka / main.c
Created June 19, 2024 04:07
SHA-256 brute-forcer for https://shallenge.quirino.net
//
// main.c
// shallenge
//
// Created by Grishka on 19.06.2024.
//
#include <stdio.h>
#include <CommonCrypto/CommonDigest.h>
#include <pthread.h>
@grishka
grishka / sha256.c
Created June 20, 2024 00:26
SHA-256 brute-forcer for https://shallenge.quirino.net, GPU edition
/*********************************************************************
* Filename: sha256.c
* Author: Brad Conte (brad AT bradconte.com)
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Implementation of the SHA-256 hashing algorithm.
SHA-256 is one of the three algorithms in the SHA2
specification. The others, SHA-384 and SHA-512, are not
offered in this implementation.
Algorithm specification can be found here: