Skip to content

Instantly share code, notes, and snippets.

View ricky26's full-sized avatar

Ricky Taylor ricky26

View GitHub Profile
@ricky26
ricky26 / SkyrimBorderlessMultiMonitorFix.cpp
Created May 4, 2018 21:57
Workaround for scrolling and clicking on other windows in Skyrim
#include <Windows.h>
#include <Psapi.h>
static const wchar_t * const targetProcesses[] = {
L"\\skyrimse.exe",
L"\\skyrim.exe",
//L"\\notepad.exe",
};
bool clipProcess(wchar_t const* processName)
@ricky26
ricky26 / copy_images.sh
Created September 26, 2017 10:14
Google Cloud shell script for copying Container Registry images between projects
#!/bin/bash
SRC_PROJECT=$1
DEST_PROJECT=$2
shift 2
IMAGES=$@
for image in $IMAGES; do
src_image=$SRC_PROJECT/$image
gcloud docker -- pull $src_image &
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0
$0.TextStylePolicy = $1
$1.EolMarker = Unix
$1.inheritsSet = VisualStudio
$1.inheritsScope = text/plain
$1.scope = text/plain
$0.CSharpFormattingPolicy = $2
$2.IndentSwitchBody = True
#include <string>
#include <iostream>
#include <sstream>
#include <memory>
#include <stack>
#include <list>
#include <unordered_map>
#include <functional>
#define FORMAT(...) (static_cast<std::ostringstream&>(std::ostringstream() << __VA_ARGS__).str())
@ricky26
ricky26 / PKGBUILD
Created December 29, 2013 01:51
PKGBUILD for kb460ledd
# Maintainer: Ricky Taylor <rickytaylor26@gmail.com>
_gitdir=kb460ledd
pkgname=kb460ledd
pkgver=1.0
pkgrel=1
pkgdesc="A simple daemon to update your KB-460's LEDs from an X-session."
arch=(i686 x86_64)
url="https://github.com/ricky26/kb460ledd.git"