Skip to content

Instantly share code, notes, and snippets.

View testman42's full-sized avatar
:octocat:
Converting caffeine into code

testman42

:octocat:
Converting caffeine into code
View GitHub Profile
@magical
magical / matrix-irc.md
Created March 1, 2019 00:24
HOWTO connect to IRC with matrix (draft)

HOWTO connect to IRC with matrix

This guide explains how to connect to freenode channels via matrix, using riot.im.

  1. matrix.org runs a public freenode bridge.

  2. channels follow the pattern #freenode_#channel:matrix.org, so if you wanted to join #python on freenode, you'd type '#freenode_#python:matrix.org' into the join channel box in riot.im.

@yardnsm
yardnsm / android_backup.md
Last active October 24, 2023 12:51
My "checklist" for backing up my Android devices

vim:fdl=2:

Android backup

Mainly for Google Pixel phones.

I mostly use Google's backup to Google Drive (which is freaking amazing). It backs up the following:

  • App data
  • Call history
@Einlander
Einlander / scene_debug.gd
Last active February 3, 2021 20:04
A super useful script for fps games. Attach it to the root node in your scene. Provides an FPS counter, fullscreen toggle, exits the game, and reloads the scene.
# Simple Utility Script
# Traps Mouse Cursor and hides it.
# ESCAPE to quit game
# F5 to reload current scene
# F9 to toggle collision shape dispay. Scene MUST be reloaded
# F10 to toggle fps Display
# F11 to switch from windowed to fullscreen
# F12 to take screenshot
#
# Works great for fps games
@coryshaw1
coryshaw1 / saliensHack.user.js
Last active September 2, 2023 13:05
Saliens Hack UserScript - AutoSelect Planet, Invincibility, InstaKill
// ==UserScript==
// @name Saliens Hack
// @description Saliens Hack for Steam Summer Sale 2018 Game - AutoSelect Planet, Invincibility, InstaKill
//
// @author Cory "mbsurfer" Shaw
// @namespace http://github.com/coryshaw1
// @downloadURL https://gist.github.com/coryshaw1/ed51d13baa8191f53f489b9de25cc868/raw/b4807713964a9b67e1b8d7837256845b078a51c6/saliensHack.user.js
//
// @license GPLv3 - http://www.gnu.org/licenses/gpl-3.0.txt
// @copyright Copyright (C) 2018, by Cory Shaw
@coryshaw1
coryshaw1 / salienHacks.js
Last active September 30, 2021 07:12
Salien Invincibility/AutoKill - Steam Summer Sale 2018
setInterval(function(){
if (!gGame || !gGame.m_State || !gGame.m_State.m_EnemyManager) return;
if (!gGame.m_State.m_EnemyManager.m_EnemyData) return;
gGame.m_State.m_EnemyManager.m_EnemyData.slime.base_health = gGame.m_State.m_EnemyManager.m_EnemyData.volvoian.base_health = gGame.m_State.m_EnemyManager.m_EnemyData.neomorph.base_health = 1;
gGame.m_State.m_EnemyManager.m_EnemyData.slime.base_damage = gGame.m_State.m_EnemyManager.m_EnemyData.volvoian.base_damage = gGame.m_State.m_EnemyManager.m_EnemyData.neomorph.base_damage = 0
if (!gGame.m_State.m_EnemyManager.m_rgEnemies) return;
// Unlock all cooldowns
CCooldownHandler.prototype.BAttack = function() {
return true;
}
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active May 20, 2024 17:32
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@ErikAugust
ErikAugust / spectre.c
Last active May 22, 2024 23:07
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
/*
*
* Eg. SEND_INTERVAL = 3000; CAPTURE_INTERVAL = 50
*
* - Capture mousemove & mousedown event after every 50 ms
* - For each captured mouse event, save it into a local cache object
* - After every 3 seconds, sends the cached mouse event history to server,
* then clear cache. Exceptions are:
* 1. A click event triggers data submission to server (as described above) immediately
* 2. Pause sending data to server when there is no new movement,