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 defined('SYSPATH') or die('No direct script access.'); | |
class Controller_Filemanager extends Controller { | |
private $file = '/var/www/assets/img/big/IMG_2083.JPG'; | |
private $new_file = '/var/www/assets/encrypt/'; | |
private $key = 'your key'; | |
private $cipher = MCRYPT_RIJNDAEL_256; | |
private $mode = MCRYPT_MODE_CBC; |
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
self.addEventListener('message', function(e) { | |
self.postMessage(e.data); | |
}, false); |
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 | |
namespace League\OAuth2\Client\Provider; | |
use League\OAuth2\Client\Token\AccessToken; | |
class DropBox extends IdentityProvider | |
{ | |
public function urlAuthorize() |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
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
set nocompatible | |
syntax on | |
set relativenumber | |
set number | |
command W :execute ':silent w !sudo tee % > /dev/null' | :edit! | |
command Unsetnum :execute ':set relativenumber& | set number&' | |
command Resetnum :execute ':set relativenumber | set number' | |
set backspace=2 " make backspace work like most other apps (http://vim.wikia.com/wiki/Backspace_and_delete_problems) | |
set viminfo='10,\"100,:20,%,n~/.viminfo | |
function! ResCur() |
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
#! /bin/bash | |
# | |
# This script needs "fpm". If you dont have it, | |
# run "gem install fpm" | |
# | |
# You also need to "apt-get install python-setuptools" (otherwise fpm fails) | |
clean() { | |
rm -rf whisper-0.9.9 carbon-0.9.9 graphite-web-0.9.9 |
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
# First do a fresh install of CentOS 5.7 i386, server configuration (no GUI) | |
# This should be performed as root since it's going to be installing a bunch of stuff | |
# --- Update things to make sure we have the latest patches --- | |
# Add EPEL so we can get reasonably recent packages | |
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
# --- Install all the packages --- # | |
yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached |
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
#!/usr/bin/env ruby | |
# | |
# graphite-mdash client - build ontop of munin-graphite | |
# | |
# Copyright: Copyright (c) 2012, Jonas Genannt <[email protected]> | |
# | |
# Author:: Adam Jacob (<[email protected]>) | |
# Copyright:: Copyright (c) 2008 HJK Solutions, LLC | |
# License:: GNU General Public License version 2 or later | |
# |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <clem_rmq.h> | |
#include <assert.h> | |
#include <amqp_tcp_socket.h> | |
#include <amqp.h> |
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
/* | |
* | |
* To enable this backend, include './backends/riemann' in the backends | |
* configuration array: | |
* | |
* Requires Riemann Node client | |
* | |
* backends: ['./backends/riemann'] | |
* | |
*/ |
OlderNewer