Skip to content

Instantly share code, notes, and snippets.

View K0IN's full-sized avatar
:octocat:

K0IN

:octocat:
View GitHub Profile
#include <iostream>
#include <string>
#include <random>
#include <ctime>
#include <cuda.h>
#include <cuda_runtime.h>
#include <chrono>
// SHA-256 constants and transformations
__constant__ uint32_t k[64] = {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@K0IN
K0IN / clone_all_repos.ts
Last active February 8, 2022 21:57
A script (Deno) to clone a users repos
// deno run --allow-net --allow-run --allow-write .\clone_all_start_repos.ts --user k0in --mirror
import { parse } from "https://deno.land/std@0.125.0/flags/mod.ts";
const { user, mirror, what = "repos" } = parse(Deno.args); // what can be repos, starred
interface RepoInfo {
id: number;
name: string;
full_name: string;
private: boolean;
owner: {
@K0IN
K0IN / recv_ssh.py
Created November 25, 2021 16:27
(POC) use python to receive a forwarded port from ssh
import paramiko
import socket
import threading
import sys
import random
from loguru import logger
# https://i.imgur.com/blN1pKc.png
# https://www.kite.com/python/docs/paramiko.ServerInterface.check_port_forward_request