This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fh = fopen("/var/www/fusionpbx/aastra/nik.foo","w") or die("Unable to write. Make sure the path exists and permissons are set correctly."); | |
fwrite($fh, "shit on my driveway again, butthole"); | |
fclose($fh); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compatibility: whitetank | |
totem { | |
version: 2 | |
secauth: off | |
threads: 0 | |
interface { | |
ringnumber: 0 | |
bindnetaddr: 172.16.10.0 | |
mcastaddr: 226.94.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
valgrind corosync -f | |
==2796== Memcheck, a memory error detector | |
==2796== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. | |
==2796== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info | |
==2796== Command: corosync -f | |
==2796== | |
==2796== Invalid write of size 2 | |
==2796== at 0x4E35F1A: totemip_parse (in /usr/lib64/libtotem_pg.so.4.0.0) | |
==2796== by 0x40B36E: totem_config_read (in /usr/sbin/corosync) | |
==2796== by 0x40674D: main (in /usr/sbin/corosync) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <security/pam_appl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct pam_response *reply; | |
int null_conv(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) { | |
*resp = reply; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
hubspot API - how to update a list of contatcs using hubspot API and node.js | |
The MIT License (MIT) | |
Copyright (c) 2015 Nik Martin | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Underscore/lodash template test </title> | |
<script data-require="jquery@*" data-semver="2.1.4" src="http://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<!--whichever one of these is LAST will get assigned to '_'--> | |
<script data-require="lodash.js@*" data-semver="3.8.0" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.8.0/lodash.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Clean Up Signals notifier. | |
// @version 0.2 | |
// @include https://api.getsignals.com/* | |
// @include https://app.getsignals.com/* | |
// @include chrome-extension://* | |
// @require //ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js | |
// ==/UserScript== | |
var cleanDiv = $(".over-limit-state"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Put me in ~/.irssi/scripts, and then execute the following in irssi: | |
## | |
## /load perl | |
## /script load notify | |
## | |
use strict; | |
use Irssi; | |
use vars qw($VERSION %IRSSI); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ONE_DAY = 86400000; | |
app.use(function (req, res, next) { | |
res.setHeader('Expires', new Date(Date.now() + ONE_DAY).toUTCString()); | |
res.header('X-powered-by', 'Super Awesome Server'); | |
next(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTTPS server | |
# | |
server { | |
listen 80; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443; | |
server_name localhost; |
NewerOlder