Skip to content

Instantly share code, notes, and snippets.

View 1Rogue's full-sized avatar

Spencer Alderman 1Rogue

View GitHub Profile
@1Rogue
1Rogue / keybase.md
Created April 1, 2015 03:01
keybase.md

Keybase proof

I hereby claim:

  • I am 1Rogue on github.
  • I am 1rogue (https://keybase.io/1rogue) on keybase.
  • I have a public key whose fingerprint is 81B1 84F6 71BD 1EAB E723 F0CE 4A8A 14B9 0298 0E9A

To claim this, I am signing this object:

@1Rogue
1Rogue / Proxy service
Last active February 6, 2021 04:26
nginx Site Templates
server {
listen 80;
server_name subdomain.*;
access_log /var/log/nginx/log/subdomain.codelanx.access.log;
error_log /var/log/nginx/log/subdomain.codelanx.error.log;
index index.html index.htm;
## send request back to upstream 'service' ##
location / {
@1Rogue
1Rogue / gist:9d087b96de8e567f55cd
Created February 7, 2015 20:26
Basic /pay issue
public boolean onCommand(CommandSender sender, Command cmd, String label, String... args) {
//preconditions: sender is a Player object, Command is "pay", sender has permissions
Player p = (Player) sender;
if (args.length < 2) {
//invalid syntax, not enough arguments
return true;
}
Player target = Bukkit.getPlayer(args[0]);
if (target == null) {
//Output that player must be online (or use an OfflinePlayer object)
YOUR-FILE-NAME.exe
pause