Skip to content

Instantly share code, notes, and snippets.

View dboyz's full-sized avatar

Daniel Tan dboyz

  • Universiti Tenaga Nasional (UNITEN), Bangi, Malaysia
View GitHub Profile
@dboyz
dboyz / cap.c
Last active September 14, 2020 17:24
cap.c
FOO01 FOO02 FOO03 FOO04 FOO05 FOO06 FOO07 FOO08 FOO09 FOO10 FOO11 FOO12 FOO13 FOO14 FOO15 FOO16 FOO17 FOO18 FOO19 FOO20 FOO21 FOO22 FOO23 FOO24 FOO25 FOO26 FOO27 FOO28 FOO29 FOO30 FOO31 FOO32 FOO33 FOO34 FOO35 FOO36 FOO37 FOO38 FOO39 FOO40 FOO41 FOO42 FOO43 FOO44 FOO45 FOO46 FOO47 FOO48 FOO49 FOO50 FOO51 FOO52 FOO53 FOO54 FOO55 FOO56 FOO57 FOO58 FOO59 FOO60 FOO61 FOO62 FOO63 FOO64 FOO65 FOO66 FOO67 FOO68 FOO69 FOO70 FOO71 FOO72 FOO73 FOO74 FOO75 FOO76 FOO77 FOO78 FOO79 FOO80 FOO81 FOO82 FOO83 FOO84 FOO85
@dboyz
dboyz / template.c
Last active February 21, 2016 03:14
Module template for UnrealIRCd-4.x (Command Override)
#include "unrealircd.h"
#define DelOverride(cmd, ovr) if (ovr && CommandExists(cmd)) { CmdoverrideDel(ovr); ovr = NULL; }
#define ircfree(x) if (x) MyFree(x); x = NULL
static ModuleInfo *MyModInfo = NULL;
Cmdoverride *OvrP = NULL;
static int override_noamsg(Cmdoverride *, aClient *, aClient *, int, char *[]);
ModuleHeader MOD_HEADER(noamsg)
@dboyz
dboyz / details.md
Last active August 29, 2015 14:25
3.4 Preliminary Description

#Changes and Enhancements#

###Parameters Affected###

  • ANTI_SPAM_QUIT_MSG_TIME
  • STATIC_QUIT
  • STATIC_PART

###New Parameter Introducted###

  • STATIC_QUIT_PART_USERS
@dboyz
dboyz / Engineering Economics.md
Last active August 29, 2015 14:24
Engineering Economics

#Principles of Engineering Economics#

  1. A nearby penny is worth a distant dollar.
  2. All that counts are the difference among alternatives.
  3. Marginal revenue must exceed marginal cost.
  4. Additional risk is not taken withouth the expected additional return.

#Types of Business Organization# | | Small | Medium | Large | |:------------------------:|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

@dboyz
dboyz / test.c
Created June 29, 2015 14:06
Test extended ban module for unreal34
/*
* Simple extban test module
*/
#include "unrealircd.h"
ModuleHeader MOD_HEADER(account)
= {
"extbans/test",
"$Id$",

The format of configuration files has been changed in UnrealIRCd 3.4 versions. Conversion of existing UnrealIRCd 3.2.x configuration files can be done automatically or manually.

#Automatic# ##Step 1## Copy existing UnrealIRCd 3.2.x unrealircd.conf (and related files, if any) to conf/ directory. ##Step 2## ###Windows### Just launch UnrealIRCd and the list of configuration errors will appear.

Click OK and you will be asked if you want your configuration files to be upgraded in the next screen.