Skip to content

Instantly share code, notes, and snippets.

View alexbaumgertner's full-sized avatar
💻
Digital Nomad

Alex Baumgertner alexbaumgertner

💻
Digital Nomad
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Привет, Мир!</title>
</head>
<body>
<p>Привет, Мир!</p>
@alexbaumgertner
alexbaumgertner / gist:4707211
Last active December 12, 2015 03:28 — forked from baxang/gist:1395787
nginx init script (nginx in /opt/ )
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
.circle {
height: 100px;
width: 100px;
border: 2px solid #fff;
border-radius: 50%;
background: red;
}
.circle {
height: 100px;
width: 100px;
border: 2px solid #fff;
border-radius: 50%;
background: red;
}
.circle {
height: 100px;
width: 100px;
border: 2px solid #fff;
border-radius: 50%;
background: red;
}
.circle {
height: 100px;
width: 100px;
border: 2px solid #fff;
border-radius: 50%;
background: red;
}
@alexbaumgertner
alexbaumgertner / production_script.sh
Created March 15, 2013 11:33
bem-tools build script, ver 0.1
#!/bin/bash
# put this script to /merged
# depends: npm install cssrb first
# create cssrb config file
BUILD_DIR=`pwd`/build
echo "exports.config = { \
@alexbaumgertner
alexbaumgertner / production_script.sh
Created April 19, 2013 21:10
bem static projects builder bash script
#!/bin/bash
# put this script to /merged
# depends: npm install cssrb first
# make builds dirs
mkdir -p build/css/ build/js/
# copy js
// variant 1
block box, content: applyCtx({
elem: 'left-top',
content: {
elem: 'right-top',
content: {
elem: 'right-bottom',
content: {
elem: 'left-bottom',
content: applyNext()
@alexbaumgertner
alexbaumgertner / PhotoalbumsController.php
Created May 23, 2013 16:22
болванка-контроллер
<?php
/**********************************************************************************************
* Easy CMS
***********************************************************************************************/
class PhotoalbumsController extends Controller
{
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.