Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
stevommmm / main.c
Created Nov 19, 2019
split strings into exec-able args list
View main.c
#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;
stevommmm / Dockerfile
Created Feb 2, 2019
Compile i3 centos-7
View Dockerfile
FROM centos:7
env VERSION ''
RUN yum install -y -q epel-release
RUN yum install -y -q "xcb-util*-devel" \
"xorg-x11-font*" \
autoconf \
automake \
gcc \
#!/usr/bin/env python3
import sys
def argv_absent(arg):
'''Check for command line args and run func if not found
>>> sys.argv = ['', '--meow']
>>> @argv_absent('--meow')
... def meow():
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<style type="text/css">
body {
font-family: 'Helvetica Neue', 'Roboto', sans-serif;
color: #fff;
View output.txt
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
View server.log
[14:54:05 INFO]: TranceClans.
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)
View forwardthinking.txt
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> :)
View schema.sql
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,
View clans.json
"score": "14",
"clan_kills": "2",
"civilian_kills": "2",
"deaths": "0",
"name": "West Road Allance",
"color_tag": "WRA"
}, {
"score": "-3",
"clan_kills": "0",
View index.html
<!doctype html>
<style type="text/css">
.alertbox {
margin: 10px;
display: block;
border: 1px solid #eee;
box-shadow: 0 0 3px 0 #ddd, inset 0 0 1px #ccc;