Skip to content

Instantly share code, notes, and snippets.

@hjhee
hjhee / ipcSmtpd.go
Created January 29, 2017 09:19
a smtp listener for zoneminder external record trigger
// IP Camera supports motion detection, which can be configured to send
// emails upon alarm is fired
// This go programme serve as a minimal smtp server, listening login requests
// from IP Camera, and triggers zmtrigger.pl through unix socket.
package main
import (
"github.com/op/go-logging"
"net"
@hjhee
hjhee / maxintensity.sp
Created June 9, 2017 01:56
allow changing sb_force_max_intensity without cheat
#include <sourcemod>
#define PLUGIN_VERSION "0.0.1"
public Plugin myinfo={
name="L4D2 force_max_intensity",
author="hjhee",
description="Allow changing sb_force_max_intensity without cheat",
version=PLUGIN_VERSION,
url="None"
}
@hjhee
hjhee / gamemodes.txt
Created June 13, 2017 15:36
8 Slot Lobby analyse
"GameModes"
{
"coop"
{
"base" "coop"
"maxplayers" "8"
"x360ctx" "0"
"x360matchrule" "0"
"x360presence" "5"
@hjhee
hjhee / gamemodes.txt
Created June 13, 2017 15:38
8 Slot Lobby analyse
"GameModes"
{
"coop"
{
"base" "coop"
"maxplayers" "8"
"x360ctx" "0"
"x360matchrule" "0"
"x360presence" "5"
@hjhee
hjhee / autoexec.cfg
Created June 13, 2017 15:58
autoexec.cfg for l4d2
bind "g" "abm"
bind "v" "sm_admin"
mm_dedicated_force_servers 101.200.154.163
net_graph "1"
net_graphheight "125"
@hjhee
hjhee / l4d2_ASDC.sp
Created June 14, 2017 03:24
improved ASDC for l4d2
#pragma semicolon 1
#include <sourcemod>
#define PLUGIN_VERSION "1.3"
public Plugin myinfo=
{
name="L4D2 Automatic Scaling Difficulty Controller(ASDC)",
author="Fwoosh/harryhecanada/hjhee",
description="Difficulty Controller for the L4D2 AI director, automatically spawns extra zombies to increase difficulty.",
version=PLUGIN_VERSION,
@hjhee
hjhee / srs.despawninfected.sp
Created June 14, 2017 03:44
prevent server crash by using /use z_spawn_old instead of z_spawn
/* _
* ___ _ __ ___ _ __ ___ ___ __| |
* / __| '__/ __| '_ ` _ \ / _ \ / _` |
* \__ \ | \__ \ | | | | | (_) | (_| |
* |___/_| |___/_| |_| |_|\___/ \__,_|
*
* _| _ _ _ _ _ . _ |` _ __|_ _ _|
* (_|(/__\|_)(_|VV| | || |~|~(/_(_ | (/_(_|
* | _ _ _ _| | _
* | | |(_)(_||_||(/_
@hjhee
hjhee / abm.sp
Created June 14, 2017 04:05
adjusted MaxSpecials, DominatorLimit...
//# vim: set filetype=cpp :
/*
ABM a SourceMod L4D2 Plugin
Copyright (C) 2016 Victor NgBUCKWANGS Gonzalez
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
@hjhee
hjhee / dissolve_ragdolls.sp
Last active June 21, 2017 14:53
Dissolve Common Infected Ragdolls
// #pragma newdecls required
#include <sourcemod>
#include <sdktools>
#include <smlib>
#define PLUGIN_VERSION "0.1.3"
public Plugin myinfo={
name="[L4D] Dissolve Ragdolls",
author="hjhee",
description="Dissolve Common Infected Ragdolls.",
@hjhee
hjhee / rtsp.c
Created July 20, 2017 03:51
an example for rtsp to mp4 remuxing without transcoding
#include <libavutil/timestamp.h>
#include <libavformat/avformat.h>
#include <signal.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
static volatile int keep_running=1;
static AVOutputFormat *ofmt=NULL;