This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] | |
"DefaultUserName"="<username>" | |
"DefaultPassword"="<password>" | |
"AutoAdminLogon"="1" |
This file contains hidden or 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
#!upstart | |
description "<project>" | |
author "<author>" | |
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
respawn | |
start on runlevel [23] | |
script |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<script src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="ytapiplayer">You need Flash player 8+ and JavaScript enabled to view this video.</div> |
This file contains hidden or 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
taken from: | |
http://support.stackdriver.com/customer/portal/articles/1491764-installing-the-stackdriver-agent-on-ubuntu-and-debian | |
switch to root and: | |
curl -o /etc/apt/sources.list.d/stackdriver.list http://repo.stackdriver.com/wheezy.list | |
curl --silent https://app.stackdriver.com/RPM-GPG-KEY-stackdriver | apt-key add - | |
apt-get update | |
apt-get install libhiredis0.10 | |
apt-get install stackdriver-agent |
This file contains hidden or 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
{ | |
"Ares_odpovedi": { | |
"xmlns:are": "http:\/\/wwwinfo.mfcr.cz\/ares\/xml_doc\/schemas\/ares\/ares_answer_or\/v_1.0.3", | |
"xmlns:D": "http:\/\/wwwinfo.mfcr.cz\/ares\/xml_doc\/schemas\/ares\/ares_datatypes\/v_1.0.3", | |
"xmlns:U": "http:\/\/wwwinfo.mfcr.cz\/ares\/xml_doc\/schemas\/uvis_datatypes\/v_1.0.3", | |
"odpoved_datum_cas": "2012-12-06T06:04:46", | |
"odpoved_pocet": "1", | |
"odpoved_typ": "Vypis_OR", | |
"vystup_format": "XML", | |
"xslt": "klient", |
This file contains hidden or 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
class ApplicationController < ActionController::Base | |
rescue_from Mongoid::Errors::DocumentNotFound, :with => :rescue_not_found | |
protected | |
def rescue_not_found | |
render :template => 'application/not_found', :status => :not_found | |
end | |
end |
This file contains hidden or 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
#mysql | |
#export | |
mysqldump -u root -p <db> > <filename>.sql | |
#import | |
mysql -u root -p <db> < <filename>.sql | |
#mongo | |
#export |
This file contains hidden or 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
#assuming rvm installed with Ruby 2+ | |
#install latest passenger gem | |
gem install passenger --pre | |
#install nginx from sources with passenger module | |
passenger-install-nginx-module |
This file contains hidden or 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
CREATE USER <user> WITH PASSWORD '<password>'; | |
CREATE DATABASE <db>; | |
CREATE SCHEMA <schema>; | |
GRANT ALL PRIVILEGES ON DATABASE <db> TO <user>; | |
GRANT ALL PRIVILEGES ON SCHEMA <schema> TO <user>; | |
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA <schema> TO <user>; | |
#clone db command | |
createdb -O <owner> -T <db> <new db> |
This file contains hidden or 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
#rvm | |
\curl -#L https://get.rvm.io | sudo bash -s stable --autolibs=3 --ruby | |
#passenger | |
gem install passenger --pre | |
#nginx | |
#http://nginx.org/en/download.html | |
#set paths |
OlderNewer