Skip to content

Instantly share code, notes, and snippets.

View tills13's full-sized avatar
🤔
why

Tyler Sebastian tills13

🤔
why
View GitHub Profile
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
...
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
SSLCertificateFile /...path to cert.../some_cert.crt
SSLCertificateKeyFile /...path to UNENCRYPTED key.../some_key.key
@tills13
tills13 / impulses.json
Created December 21, 2015 17:11
Impulse Data
[
{
"id": "2521909834",
"internalName": "Death",
"contentId": "3d89f893-9059-429f-9c0f-00222b935be3"
},
{
"id": "1541693844",
"internalName": "Vehicle Destroyed",
"contentId": "ac1cec3e-dfe3-495c-b191-f879311fe2e6"
@tills13
tills13 / gist:189a913c3c843f5a9d36
Created November 21, 2014 18:09
Sign in with Steam PHP
class AuthController {
const STEAM_LOGIN = 'https://steamcommunity.com/openid/login';
const STEAM_API_FORMAT = "json";
public static function genUrl($returnTo = false) {
$returnTo = (empty($_SERVER['HTTPS']) ? "http" : "https") . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
$params = array(
'openid.ns' => 'http://specs.openid.net/auth/2.0',
'openid.mode' => 'checkid_setup',
@tills13
tills13 / mosh.c
Created November 1, 2013 22:02
mosh.c
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
struct process {