Skip to content

Instantly share code, notes, and snippets.

View lolmaus's full-sized avatar
🧠
Reducing entropy

Andrey Mikhaylov (lolmaus) lolmaus

🧠
Reducing entropy
View GitHub Profile
#######################################################
### nginx default server
#######################################################
server {
limit_conn gulag 18; # like mod_evasive - this allows max 18 simultaneous connections from one IP address
listen 188.138.121.41:80;
server_name _;
location / {
root /var/www/nginx-default;
<?php if ($is_front): ?>
<?php print render($page['content_front']); ?>
<?php elseif ($page['content']): ?>
<?php print render($page['content']); ?>
<?php endif; ?>
class MyClass
def i_understand_how_this_works(local_var)
@the_string ||= "omg"
@the_string << local_var
end
def how_is_that_possible
@the_string ||= "omg"
end
class MyClass
attr_reader :the_string # i don't want to grant write access!
def initialize(string)
@the_string = string
end
end
@lolmaus
lolmaus / test.css
Created December 6, 2012 13:29
sass -l test.sass test.css
/* line 9, test.sass */
h2 {
color: red; }
function nova_bs_fusion_apply_group_nova_bs_skins_info() {
$groups = array();
$groups['region_specific'] = array(
'title' => t('Region specific'),
'description' => t('Skins dependent on content'),
'weight' => 20,
);
aegir@het:~$
drush hostmaster-install aegir.het.lolma.us --http_service_type="nginx" --client_email="[email protected]" --debug
Bootstrap to phase 0. [0.02 sec, 2.79 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.02 sec, 3.01 MB] [bootstrap]
Bootstrap to phase 0. [0.07 sec, 9.51 MB] [bootstrap]
Found command: hostmaster-install (commandfile=provision) [0.07 sec, 9.51 MB] [bootstrap]
Initializing drush commandfile: provision [0.07 sec, 9.52 MB] [bootstrap]
Load alias @self [0.07 sec, 9.52 MB]
Cluster Кластер (11:36:45 25/02/2013)
Маус ты обещал мне 300 рублей на Киви кинуть :) Мама как раз просит за домашний заплатить.
Andrey Mikhaylov (11:42:35 25/02/2013)
> Маус ты обещал мне 300 рублей на Киви кинуть :) Мама как раз просит за домашний заплатить.
Дада!
Cluster Кластер (11:42:37 25/02/2013)
LISP COMPILER ERROR: пожалуйста, меньше скобок; гуси давятся.
[storage]
path = /mnt/1
admin users = lolmaus
write list = lolmaus
guest ok = Yes
$tabletwidth: 40em;
$smalldesktopwidth: 60em;
$grids: 4;
$grids: add-grid(9 at $tabletwidth);
$grids: add-grid(12 at $smalldesktopwidth);
$gutters: 1/3;
$gutters: add-gutter(1/2 at $tabletwidth);
$gutters: add-gutter(1/2 at $smalldesktopwidth);