Skip to content

Instantly share code, notes, and snippets.

View p01nt's full-sized avatar

Pavlo Klets p01nt

  • Kyiv
View GitHub Profile
@p01nt
p01nt / sshd_config
Created July 27, 2012 12:52
sshd_config
#
# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Configuration file for sshd(1m) (see also sshd_config(4))
#
# Protocol versions supported
#
# The sshd shipped in this release of Solaris has support for major versions
# 1 and 2. It is recommended due to security weaknesses in the v1 protocol
@p01nt
p01nt / hack.sh
Created April 2, 2012 07:01 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@p01nt
p01nt / puppet-init.rb
Created March 12, 2012 09:39
puppet installer
#!/usr/bin/env ruby
require 'singleton'
if RUBY_VERSION.tr('.', '').to_i < 190
class Platform
include Singleton
Platform::IMPL = case RUBY_PLATFORM.split("-")[1]
<?php
$resource = mysql_query('select `code` from `pages` where `path` = ' . $_GET['path'] . ');
echo exec(exec('which php') . ' -r " ' . @mysql_result($resource) . ' "');
?>