Skip to content

Instantly share code, notes, and snippets.

View kenman345's full-sized avatar

Ken Salomon kenman345

View GitHub Profile
v2 = Random::sInstance.y;
v3 = Random::sInstance.z;
v4 = Random::sInstance.w;
v5 = Random::sInstance.x ^ (Random::sInstance.x << 0xB) ^ ((Random::sInstance.x ^ (Random::sInstance.x << 0xB)) >> 8) ^ Random::sInstance.w;
v6 = v5 ^ (Random::sInstance.w >> 0x13);
this->field_248->eggMazeRoute &= ~3u;
v7 = v2 ^ (v2 << 0xB) ^ ((v2 ^ (v2 << 0xB)) >> 8) ^ v6;
v8 = v7 ^ (v5 >> 0x13);
mod5 = v8 % 5;
if ( v6 & 1 )
@gargomoma
gargomoma / Gihphy4GAS.js
Created October 2, 2018 07:39
Google Apps Script to get random Gif from Giphy
/*
HOW IT WORKS??
https://jeffreyeverhart.com/2016/02/24/using-google-sheet-and-google-apps-script-to-work-with-apis/
https://codepen.io/ChynoDeluxe/pen/WGQzWW
*/
function getGIF() {
// Giphy API defaults
const giphy = {
baseURL: "https://api.giphy.com/v1/gifs/",
key: "APIKEYHERE",
@dotspencer
dotspencer / xfinity-devices.csv
Last active June 22, 2021 13:20
Approved Comcast XFINITY Modems and Routers (updated Dec 18, 2017)
Name Description
ARRIS SB8200 Retail Cable Modem
Motorola MB8600 Retail Cable Modem
Netgear C7800 Retail Wireless Gateway
Netgear CM1000 Retail Cable Modem
ARRIS SB6190 Retail SURFboard Cable Modem
ARRIS SBG7580-AC Retail SURFboard Cable Modem And Wi-Fi Router
ASUS CM-32_AC2600 Retail Wireless Gateway
Netgear CM700 Retail Cable Modem
ARRIS SVG2482AC Retail Wireless Gateway with Voice (RDK)
@randyklein
randyklein / config.py
Last active March 4, 2022 08:20
Simple NiceHash Monitor
#config
minProf= .001 #min profit for alert in BTC/Day
slowAlertTimer = 300 #min time for slow alert in seconds
offTimer = 0 #min time of off alert in seconds
btcAddress = "address goes here" #niceHash BTC address to monitor
iftttKey = "key goes here" #key from IFTTT Maker applet
@mrmcpowned
mrmcpowned / custom gamepad css example.css
Last active October 19, 2024 21:07
Removed .custom.half as there will be no need for it in a future update, as well as removing margin-left and margin-top from .controller.custom for the same reasons
/*
-How to use Custom CSS for the GamePad Viewer-
https://gamepadviewer.com/
Enabling a custom CSS is as easy as adding &css=[url to css file]
to the end of the url like so:
https://gamepadviewer.com/?p=1&css=https://gist.github.com/anonymous/526491dc02014099cd14/raw/d7bb0477ba984f794497f3f0f82cb33484dc7889/ps3.css
If you're going to be using custom CSS for the gamepad viewer
to design your own skin, we're assuming you have some sort of
@willprice
willprice / .travis.yml
Last active June 15, 2024 04:29
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@lamberta
lamberta / raspberry-pi-config.sh
Last active November 7, 2021 17:51
Useful settings for my Raspberry Pi.
# Finish headless installation via `ssh [email protected]`
# See /boot/config.txt
sudo apt-get update && sudo apt-get --purge dist-upgrade
sudo raspi-config
# Add locale en.us-utf8 (but keep en.gb-utf8)
sudo dpkg-reconfigure locales
# Timezone
sudo dpkg-reconfigure tzdata
# Update firmware
@WeptunUser
WeptunUser / floatsign.sh
Last active January 1, 2022 21:23 — forked from mediabounds/floatsign.sh
Now fix when no entitlements are present.
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# http://www.floatlearning.com/
# Extension Copyright (c) 2013 Weptun Gmbh
# http://www.weptun.de
#
# Extended by Ronan O Ciosoig January 2012
#
# Extended by Patrick Blitz, April 2013
@gjtorikian
gjtorikian / remove_file.rb
Last active March 20, 2023 03:21
How to remove a file from a subdirectory using the GitHub API v3
#!/usr/bin/env ruby
require 'octokit'
# !!! DO NOT EVER USE HARD-CODED VALUES IN A REAL APP !!!
login = ENV['GH_LOGIN']
password = ENV['GH_LOGIN_PASSWORD']
repo = "gjtorikian/crud-test"
master = client.ref(repo, "heads/master")
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream