Skip to content

Instantly share code, notes, and snippets.

View lxkm's full-sized avatar
🏠
Figuring out what to work on next

Matthew Shaw lxkm

🏠
Figuring out what to work on next
  • Japan
View GitHub Profile
// ==UserScript==
// @name Evolve
// @namespace http://tampermonkey.net/
// @version 3.3.1.134
// @description try to take over the world!
// @downloadURL https://gist.github.com/Vollch/b1a5eec305558a48b7f4575d317d7dd1/raw/evolve_automation.user.js
// @updateURL https://gist.github.com/Vollch/b1a5eec305558a48b7f4575d317d7dd1/raw/evolve_automation.meta.js
// @author Fafnir
// @author TMVictor
// @author Vollch
@ishu3101
ishu3101 / gist_to_github_repo.md
Created November 24, 2015 08:35
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

@jgravois
jgravois / _webserver.md
Last active November 17, 2024 12:32
a simple guide for getting a local web server set up

Do I have a web server running?


having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.

if you're not sure whether or not you have a web server running, no problem! its easy to confirm.

what happens when you visit http://localhost/?

@cpw
cpw / modlist.json
Created August 2, 2014 00:54
FML modlist json description
Add to the command line using --modListFile <path to json file>
The above will search for files
/home/cpw/minecraft/modrepo/cpw/mods/ironchest/1.7.10-6.0.41.729/ironchest-1.7.10-6.0.41.729-universal.jar
/home/cpw/minecraft/modrepo/my/fun/mod/219.20/isfun-219.20.jar
Yes, this is restrictive. This is deliberate.
A secondary option allows arbitrary modfile loading using the --modFile argument. Those files are comma separated.
@sauloperez
sauloperez / signal_catching.rb
Last active November 11, 2020 11:25
How to catch SIGINT and SIGTERM signals in Ruby
# Signal catching
def shut_down
puts "\nShutting down gracefully..."
sleep 1
end
puts "I have PID #{Process.pid}"
# Trap ^C
Signal.trap("INT") {