Skip to content

Instantly share code, notes, and snippets.

@stevommmm
stevommmm / Dockerfile
Created February 2, 2019 03:52
Compile i3 centos-7
FROM centos:7
env VERSION '4.15.0.1'
RUN yum install -y -q epel-release
RUN yum install -y -q "xcb-util*-devel" \
"xorg-x11-font*" \
autoconf \
automake \
gcc \
@stevommmm
stevommmm / main.c
Created November 19, 2019 01:28
split strings into exec-able args list
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
typedef struct func_args {
char **data;
int count;
} func_args;
#!/usr/bin/env python3
import sys
def argv_absent(arg):
'''Check for command line args and run func if not found
>>> sys.argv = ['main.py', '--meow']
>>> @argv_absent('--meow')
... def meow():
@stevommmm
stevommmm / index.html
Created April 20, 2016 12:49
Search Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<title>{{title}}</title>
<style type="text/css">
body {
font-family: 'Helvetica Neue', 'Roboto', sans-serif;
color: #fff;
Module Attempted Failed
app.informant 10 0
app.v1 0 0
app.v1.backend_api 0 0
app.v1.account_api 6 0
app.v1.webhook_api 2 0
>tc
[14:54:05 INFO]: TranceClans.
Usage:
tc clan new <name>
tc clan modify (name|tag|member|leader|invite) <value>
tc (join|leave|disband)
tc (invite|kick) <player>
tc leaderboard
tc (-h | --help)
10:53:32 <@slide> yay for people who leak stuff and cause massive drama being brought back in... sigh │
10:53:38 <@slide> this place has such a short memory │
11:07:58 <@c45y> haha │
11:08:09 <@c45y> forgive and forget, its a game server │
11:16:42 <@slide> "oh just do whatever you want and hurt other people, its just a game server" │
11:17:55 <@c45y> great contribution, do you plan on donig anything else this month? │
11:18:33 <@slide> i did more in my 2 years than you've done total │
11:18:40 <@slide> first 2 years that is │
11:18:44 <@c45y> :)
CREATE TABLE `sc_players` (
`id` bigint(20),
`name` varchar(16) NOT NULL,
`leader` tinyint(1) default '0',
`tag` varchar(25) NOT NULL,
`friendly_fire` tinyint(1) default '0',
`neutral_kills` int(11) default NULL,
`rival_kills` int(11) default NULL,
`civilian_kills` int(11) default NULL,
`deaths` int(11) default NULL,
[{
"score": "14",
"clan_kills": "2",
"civilian_kills": "2",
"deaths": "0",
"name": "West Road Allance",
"color_tag": "WRA"
}, {
"score": "-3",
"clan_kills": "0",
@stevommmm
stevommmm / BlockEventNotice.java
Created August 28, 2013 20:32
Old slow block rollback code
package com.c45y.slowblock;
import org.bukkit.Material;
import org.bukkit.block.Block;
/**
*
* @author c45y
*/
public class BlockEventNotice {