Skip to content

Instantly share code, notes, and snippets.

total 0
-????????? ? ? ? ? ? file1.log
-????????? ? ? ? ? ? file22.html
-????????? ? ? ? ? ? file3.log
-????????? ? ? ? ? ? file4.log
-????????? ? ? ? ? ? file5.html
-????????? ? ? ? ? ? file6.log
@Ttech
Ttech / router.sh
Created October 27, 2012 17:39
iptables Router Configuration SCript
#!/bin/bash
####################################
#### ####
#### 2012 Ttech ####
#### Bash Router Enabler ####
#### ####
####################################
# this should be the only part you need to modify
#!/bin/bash
####################################
#### ####
#### 2012 Ttech ####
#### Bash Router Enabler ####
#### ####
####################################
# this should be the only part you need to modify
@Ttech
Ttech / iptabler.sh
Created October 14, 2012 05:48
IPTABLE script
#!/bin/bash
####################################
#### ####
#### 2012 Ttech ####
#### Bash Router Enabler ####
#### ####
####################################
# this should be the only part you need to modify
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h (MPD)</name>
<service>
<type>_mpd._tcp</type>
<port>6600</port>
</service>
<service>
<type>_device-info._tcp</type>
Textual is an IRC client for Mac OS X that is designed to be light weight.
Textual supports SASL out of the box without any additional scripts or plugins.
To setup SASL you need to know your account account name (/msg NickServ INFO)
For a new Setup:
1. To go the Server menu and select "Add Server"
2. Configure freenode as you would normally
Network Name: freenode
Primary Server: chat.freenode.net
<?php
function sanitize($string){
// strip anything, maybe url encode too
return strval(stripslashes($string));
}
function forward_post_data($end_url){
$post_string = "";
if(isset($_POST)){
foreach($_POST as $key => $value){
$post_string .= sanitize($key)."=".sanitize(urlencode($value))."&";
// Created by Codeux Software <support AT codeux DOT com> <https://github.com/codeux/Textual>
// You can redistribute it and/or modify it under the new BSD license.
#import "TPI_CMP_MenuController.h"
@implementation TXMenuController (TPI_CMP_MenuController)
- (void)postLinkToTextualHomepage:(id)sender
{
IRCClient *u = [self.world selectedClient];
table|channel_stats|channel_stats|2|CREATE TABLE channel_stats (
id INTEGER UNIQUE PRIMARY KEY,
time INTEGER NOT NULL,
channel VARCHAR(60),
users INTEGER,
topic TEXT
)
index|sqlite_autoindex_channel_stats_1|channel_stats|3|
table|lusers_stats|lusers_stats|4|CREATE TABLE lusers_stats (
id INTEGER UNIQUE PRIMARY KEY,
@Ttech
Ttech / afpd.conf
Created June 28, 2012 04:19
Netatalk AFPd Configuration file for 3.0x
; Netatalk 3.x configuration file
;
; This creates two shares for you to use
; the first share is a "Dropbox" to use
; the second share is a Time Machine
[Global]
; Global server settings
hostname = "$h"