Skip to content

Instantly share code, notes, and snippets.

View Deledrius's full-sized avatar

Joseph Davies Deledrius

View GitHub Profile
@Hoikas
Hoikas / intro.md
Last active March 3, 2020 10:55
OU->H'uru Launcher

Introduction

As proprosed at the Minkata meeting and detailed on the OU forum, this is a demonstration of "minimum of fuss" way to update OU/Cyan Uru clients to a H'uru build. To begin, you will need a clean, up-to-date installation of MOULa. I recommend making a new copy of URU for testing purposes.

Unfortunately, due to the server encryption found on MOULa, you will need to download a new copy of UruLauncher.exe that has been built to connect to the testing server. This launcher build tracks what I believe to be the current copy of Minkata's UruLauncher.exe (HG changeset [748170b85220]). The only change is to the the gatekeepersrv keys. I have included a copy of the server keys in this gist if you want to build your own. The server IP is 155.254.30.62.

Download New Launcher Here

Once you have downloaded and replaced UruLauncher.exe, you may begin by running UruLauncher.exe.

@sankim
sankim / sleep-timer.scpt
Last active March 5, 2024 09:55 — forked from fbender/sleep-timer.scpt
AppleScript to put your Mac to sleep after X minutes, fading out the system volume shortly before sleeping. Can be turned into an app via the "Export" feature of the AppleScript Editor.
-- written by Florian Bender, 2015
-- forked and edited by San Kim, 2019
-- based on work by Michael Wyszomierski <https://wysz.com/wyszdom/2009/06/simple-sleep-timer-with-applescript/>
-- license: Public Domain / CC0 <http://creativecommons.org/publicdomain/zero/1.0/>
tell application "System Events"
set fadeTime to 10 -- time in seconds for fade change
-- display alert "Volume: " & volumeValue & ", Delta: " & fadeChange
display dialog "Sleep time (min):" default answer "60"
delay ((text returned of the result) * 60 - 30)
display notification "Going to sleep in 30 sec" with title "Sleep Timer"
@jasenmichael
jasenmichael / README.md
Last active October 17, 2024 21:34
how to rip/backup playstation (psx) games to iso for use with retropie emulationstation retroarch pcsx and other emulators

how to rip/backup playstation (psx) games to iso for use with retropie emulationstation retroarch pcsx and other emulators

I had recently been setting up retropie on one of my raspberrypi3's. I found all the psx .iso's I had made years ago ran perfect on the pi3 with retropie. It had been years since I backed up some of my old playstation games, and recently found some more lying around, I decided to add them to my retropie. After searching the internet, I rememberd I used achohol in windoze xp years ago, but now strickly a linux user.

At the time of this writing I am running UbuntuGnome 16.10 on my desktop so I found this method using cdrdao, bchunk, and a bash script

add main universe repo, edit /etc/apt/sources.list and add this line save and exit: deb http://us.archive.ubuntu.com/ubuntu yakkety main universe

update repositories

@davidejones
davidejones / Makefile
Created January 19, 2017 16:59
mingw gcc dos compile (thanks to http://nullprogram.com/blog/2014/12/09/)
CFLAGS = -std=gnu99 -Wall -Wextra -Os -nostdlib -m32 -march=i386 \
-Wno-unused-function \
-ffreestanding -fomit-frame-pointer -fwrapv -fno-strict-aliasing \
-fno-leading-underscore \
-Wl,--nmagic,-static,-Tmingw.com.ld
all:
gcc $(CFLAGS) -o hello.o hello.c
objcopy -O binary hello.o hello.com
@ePirat
ePirat / INSTALL.md
Last active April 7, 2023 13:43
Cross-compile libaacs for Windows (64bit)

Cross-compile libaacs for Windows (64bit)

For this guide the ubuntu:yakkety Docker image was used.

Install the cross-compile toolchain

apt-get install mingw-w64-tools gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wget gettext bison flex
@theankitgaurav
theankitgaurav / functionalArrayMethods.md
Created November 4, 2016 16:37
JavaScript Map, Filter, Reduce methods Cheatsheet

map()

Use it when: You want to translate/map all elements in an array to another set of values.

Example: convert Fahrenheit temps to Celsius.

var fahrenheit = [0, 32, 45, 50, 75, 80, 99, 120];

var celcius = fahrenheit.map(function(elem) {
@pradeepdotco
pradeepdotco / rssfeedimage.php
Created October 3, 2015 10:54
Function to add featured image to RSS feed
<?php
add_filter( 'the_content', 'featured_image_in_feed' );
function featured_image_in_feed( $content ) {
global $post;
if( is_feed() ) {
if ( has_post_thumbnail( $post->ID ) ){
$output = get_the_post_thumbnail( $post->ID, 'medium', array( 'style' => 'float:right; margin:0 0 10px 10px;' ) );
$content = $output . $content;
}
}
@0XDE57
0XDE57 / config.md
Last active May 14, 2025 03:10
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable. I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@fbender
fbender / sleep-timer.scpt
Last active March 5, 2024 09:51
AppleScript to put your Mac to sleep after X minutes, fading out the system volume shortly before sleeping. Can be turned into an app via the "Export" feature of the AppleScript Editor.
-- written by Florian Bender, 2015
-- based on work by Michael Wyszomierski <https://wysz.com/wyszdom/2009/06/simple-sleep-timer-with-applescript/>
-- license: Public Domain / CC0 <http://creativecommons.org/publicdomain/zero/1.0/>
tell application "System Events"
set volumeSettings to get volume settings
set volumeValue to (output volume of volumeSettings)
set fadeTime to 10 -- time in seconds for fade change
set fadeChange to (volumeValue div fadeTime)
-- display alert "Volume: " & volumeValue & ", Delta: " & fadeChange
display dialog "Sleep time (min):" default answer "25"
@preshing
preshing / build_cross_gcc
Last active May 3, 2025 16:27
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.