Skip to content

Instantly share code, notes, and snippets.

View ShittyCodeMan's full-sized avatar

ShittyCodeMan ShittyCodeMan

View GitHub Profile
// 220 - age
220-(Date.now()-(new Date(yyyy,mm,dd)).getTime())/31536e6 // 1 year = 365*24*60*60*1000 ms
// ==UserScript==
// @name Youtube PlaybackRate Extender
// @namespace https://gist.githubusercontent.com/ShittyCodeMan/ce3ff5f631d9ebc4c3c44328ca397aa1/raw/4a6a6cb19455e4b5466f643f8f1d5acd56f541ac/YoutubePlaybackrateExtender.js
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/watch?*
// @grant none
// ==/UserScript==
Category Name Old New Diff
Primary Arca Plasmor 0.7 0.6 -0.1
Primary Amprex 0.85 0.7 -0.15
Primary Argonak 1.1 1.2 0.1
Primary Baza 1.1 1 -0.1
Primary Boltor 0.79 0.95 0.16
Primary Braton 1.01 1.1 0.09
Primary Burston 1.25 1.3 0.05
Primary Cernos 0.92 1.1 0.18
// [[base+3C]+base+C0]+base+C
DWORD base = (DWORD)GetModuleHandle();
PIMAGE_DOS_HEADER dos = (PIMAGE_DOS_HEADER)base;
PIMAGE_NT_HEADERS32 nt = (PIMAGE_NT_HEADERS32)(base + dos->elfanew);
PIMAGE_TLS_DIRECTORY32 tls = (PIMAGE_TLS_DIRECTORY32)(base + nt->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_TLS].VirtualAddress);
tls->AddressOfCallBacks;
@ShittyCodeMan
ShittyCodeMan / data.csv
Last active February 20, 2019 05:18
TSP Solver for Duskers System
Q N P E Z F K H W
2
2 2
2 2 2
2 4 4 3
4 3 2 2 4
3 4 2 2 3 2
6 6 5 5 6 4 3
6 6 5 4 5 4 3 2
@ShittyCodeMan
ShittyCodeMan / rpi.sh
Last active January 2, 2018 14:14
qemuでraspbian wheezy
#!/bin/sh
mkdir root
mount -o offset=$(($(fdisk -l -o Start raspbian.img | tail -n 1)*512)) raspbian.img root
xhost +localhost
QEMU_CPU=arm11mpcore chroot root
umount root
rm -d root
未完
ソロ
ギア無し
ミッション選択からリピートボタン押すまで
http://drops.warframestat.us/#/search/Mirage%20Prime/
Lith S7
http://drops.warframestat.us/#/search/Lith%20S7/
#include <windows.h>
#include <imagehlp.h>
#include <stdio.h>
int main(void)
{
void *base;
ULONG size;
PIMAGE_EXPORT_DIRECTORY pExport;
PIMAGE_THUNK_DATA32 pFuncs; // EXPORT DIRはx64もこれ?
#include <windows.h>
#include <d3d11.h>
#include "MinHook.h"
typedef void(__stdcall *D3D11DRAWINDEXED) (ID3D11DeviceContext *pContext, UINT IndexCount, UINT StartIndexLocation, INT BaseVertexLocation);
D3D11DRAWINDEXED orig_D3D11DrawIndexed = NULL;
extern "C" {
void *mProcs[51] = { 0 };
@ShittyCodeMan
ShittyCodeMan / enum_my_module.cpp
Last active November 24, 2017 13:06
現在のプロセスのモジュールを列挙
#include <windows.h>
#include <winternl.h>
#include <stdio.h>
int main(void)
{
PTEB pteb;
PLIST_ENTRY pml, phead;
PLDR_DATA_TABLE_ENTRY dte;