Skip to content

Instantly share code, notes, and snippets.

View lknight's full-sized avatar

Pavel Roytberg lknight

View GitHub Profile
@lknight
lknight / gist:6139600
Created August 2, 2013 12:43
Plugin for wordpress to
<?php
/**
Plugin Name: DW RDS_DB object
Description: provides special object $wp_rds_db access external database
Plugin URI: http://pvp.alvegia.ru
Author: Pavel G. Roytberg
Author URI: http://onga.ru
Version: 0.1
@lknight
lknight / dw_rdsdb.php
Last active December 20, 2015 13:29
Plugin for wordpress to make amazon_rds database accessible in wordpress. It provides special object $wp_rds_db. Supports MYSQL flats, including MYSQL_CLIENT_SSL. Support ssl to AMAZON RDS servers.
<?php
/**
Plugin Name: DW RDS_DB object
Description: provides special object $wp_rds_db access external database - in this example - AMAZON RDS DataBase.
Plugin URI: http://pvp.alvegia.ru
Author: Pavel G. Roytberg
Author URI: http://onga.ru
Version: 0.9 no more passwords in plain texts in php code
/*
Plugin Name: TM Example
Plugin URI: http://ditio.net
Description: TextMagic Example
Author: Greg Winiarski
Version: 0.01
Author URI: http://ditio.net
TextMagic SMS delivery example.
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
@lknight
lknight / SSD-NAS
Last active December 24, 2015 15:19
NAS CHOICES
http://wahlnetwork.com/2012/09/26/the-all-flash-synology-ds2411-array/
http://wahlnetwork.com/resources/
http://www.smallnetbuilder.com/nas/nas-howto/31485-build-your-own-fibre-channel-san-for-less-than-1000-part-1?start=4
http://techhead.co/hp-proliant-microserver-g8a-decent-home-lab-server/
!! http://www.scoop.it/t/home-computing-labs
SSD: KINGSTON SV300S3D7/120G
Samsung MZ-7TD120BW
Kingston SVP200S37A/120G - best? ~100$
@lknight
lknight / virtualization_urls
Last active December 24, 2015 15:18
VIRTUALIZATION GIST
MAAS:
-- http://www.thisismrhelp.com/blog/?p=65
-- http://maas.ubuntu.com/docs/install.html
http://habrahabr.ru/post/140375/
http://www.proxmox.com/proxmox-ve/comparison
http://www.turnkeylinux.org/
https://hub.turnkeylinux.org/ - !!
@lknight
lknight / OpenData_urls
Last active December 24, 2015 15:19
OpenData
http://habrahabr.ru/company/yandex/blog/193336/
http://www.wikidata.org/
http://hub.opengovdata.ru/
http://infoculture.ru/
http://tech.yandex.ru/events/meetings/hack/
http://api.yandex.ru/
http://gov-gov.ru/
http://mkrf.ru/opendata/
http://hub.opengovdata.ru/group/moscow
@lknight
lknight / DIY_url
Created October 3, 2013 23:54
DIY project
http://habrahabr.ru/post/184966/
http://habrahabr.ru/post/178661/
@lknight
lknight / MicroServers_url
Last active December 25, 2015 14:29
HomeLab MicroServers Infostructure
http://b3n.org/installed-xeon-e3-1230v2-in-gen8-hp-microserver/
http://homeservershow.com/forums/index.php?/topic/5639-proliant-microserver-gen8-links/?p=62204
!! http://www.scoop.it/t/home-computing-labs
http://amitabh-vworld.blogspot.com.es/2013/01/internet-accessible-high-performance.html
UPS 2 consider:
1) CyberPower CP1500EPFC - розетки куда можно втыкать нормальные вилки!
@lknight
lknight / DNS FLUSH
Created October 30, 2013 16:04
DNS FLUSH OS X MAVERICKS 10.9
dscacheutil -flushcache;sudo killall -HUP mDNSResponder