Skip to content

Instantly share code, notes, and snippets.

@pklaus
pklaus / tunnelbroker-net.sh
Last active September 17, 2024 08:12
tunnelbroker.net automatic tunnel IP update and tunnel setup (on Mac OS X)
#!/bin/bash
#### This script is published by Philipp Klaus <[email protected]>
#### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/>
#### It is originally by freese60 and modified by limemonkey.
#### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0>
### Uncomment this line to debug the script:
#set -x
@tpryan
tpryan / ribbon.html
Last active April 11, 2024 00:21
Github Ribbon in CSS.
<!--
Copyright (c) 2012 Terrence Ryan
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following
conditions:
@Vesnica
Vesnica / xfl.erl
Created February 2, 2013 20:10
.xfl extractor (Liar Soft)
-module(xfl).
-author("Wisher").
-email("[email protected]").
-export([extract/1]).
% All bgm is ogg format, but have a 66 bytes fake wave header.(Liar...)
extract(File) ->
{ok, Bin} = file:read_file(File),
@tomkel5
tomkel5 / main.php
Created November 7, 2013 05:50
Example of Symfony Crawler
<?php
require_once 'vendor/autoload.php';
use Symfony\Component\DomCrawler\Crawler;
$html = '<!DOCTYPE html>
<html>
<body>
<table border="0" cellpadding="0" cellspacing="1">
<tr>
@lucaspiller
lucaspiller / Building Blink on OS X.md
Last active August 24, 2017 06:25
Building Blink on OS X
@dodyw
dodyw / findbot.pl
Last active October 11, 2019 10:30
Perl script to find suspicious scripts. This script is taken from http://cbl.abuseat.org/findbot.pl
#!/usr/bin/perl
# The above line may need to be changed to point at your version of Perl
#
# This script attempts to find malicious files/scripts on your machine.
# It specifically looks for spambots that we're aware of, as well
# as "suspicious" constructs in various scripting languages.
#
# Normally it should be run as root.
#
# By default, findbot.pl scans the directories /tmp, /usr/tmp, /home and
@enajski
enajski / base_cf_docs.md
Last active September 26, 2016 15:56
Documentation for Base CRM custom fields
@namuol
namuol / INSTALL.md
Last active July 24, 2023 11:53
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@BenWhitehead
BenWhitehead / teamcity-agent.service
Created March 7, 2014 23:09
systemd service files for running TeamCity (create in /usr/lib/systemd/system)
[Unit]
Description=TeamCity Build Agent
After=network.target
[Service]
Type=forking
PIDFile=$AGENT_HOME/logs/buildAgent.pid
ExecStart=/usr/bin/sudo -u teamcity $AGENT_HOME/bin/agent.sh start
ExecStop=/usr/bin/sudo -u teamcity $AGENT_HOME/bin/agent.sh stop
@arashi01
arashi01 / teamcity-agent.service
Created July 10, 2014 01:50
teamcity-agent as systemd service
[Service]
Type=oneshot
RemainAfterExit=true
User=teamcity
ExecStart=/opt/teamcity/bin/agent.sh start
ExecStop=-/opt/teamcity/bin/agent.sh stop force
SuccessExitStatus=0 143
[Install]
WantedBy=default.target