Skip to content

Instantly share code, notes, and snippets.

Dmitry Patsura ovr

View GitHub Profile
#! /bin/bash
### BEGIN INIT INFO
# Provides: memcached
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start memcached daemon
#! /bin/bash
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
# Modified for sphinx by Radu Spineanu <radu@debian.org>
#
#
@ovr
ovr / 0_reuse_code.js
Created February 5, 2014 13:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ovr
ovr / gist:9366474
Last active August 29, 2015 13:57
Phalcon book review
Hi, sorry about i miss to send it.
In russian
Сейчас, когда Phalcon начинает обретать популярность в сообщество разработчики всех уровней. Я часто наблюдаю что приходя к нам начинающие разработчики и вместе с ними типичные вопросы от них. Я считаю, что для начинающих разработчиков это книга должна быть как библия на столе (прочтена и выучена на изусть).
Каждый начинающий разработчик должен ценить свое время так как прочитав книгу у него отпадут вопросы на которые он тратил бы свое время во время самостоятельного обучения
Стоит отметить что как книга это всего лишь сборник всех документации и манулов по Phalcon.
Но для уже знакомых с Phalcon разработчиков подчеркнуть толково вряд ли что удастся. Очень бы хотелось увидеть продолжение книги, но уже с более сложными примерами. Все уданого программирования на Phalcon)
Now when Phalcon starts gaining popularity in the community of all developers levels, i often see that coming to us novice developers , and with them the typical questions from them.
I believe that
@ovr
ovr / build.xml
Created March 12, 2014 11:33
Perfect Ant Build Script For PHP project in CI use
<project name="Uniqhand" default="build" basedir=".">
<property name="source" value="${basedir}/.."/>
<property name="appsource" value="${source}/application"/>
<property name="libsource" value="${source}/library"/>
<target name="clean"
description="Clean up artifact directories">
<delete dir="${basedir}/build"/>
</target>
#include "hsTimer.h"
#include <stdlib.h>
#include <iostream>
#include <tchar.h>
#include <math.h>
using namespace std;
using namespace MobyDisk;
class LinearCongruentRnd {
using System;
using System.Collections.Generic;
using System.Text;
namespace test_cs20
{
class Program
{
static void calculatePI()
{
@ovr
ovr / install.bash
Last active September 19, 2016 06:14
Post install Elementary OS script
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
#Fix gtk themes bug
sudo apt-get install synaptic gtk2-engines-pixbuf libcanberra-gtk-module packageKit-gtk3-module gnome-themes-standard
@ovr
ovr / ait_remove.bash
Created August 16, 2014 04:11
Remove old configuration for ATI Drivers
sudo sh /usr/share/ati/fglrx-uninstall.sh --force
sudo apt-get purge fglrx*
sudo rm -f /etc/X11/xorg.conf
sudo reboot
#after reboot
sudo /usr/bin/aticonfig --initial
ovr@ovr-desktop:~/Backups$ sudo add-apt-repository ppa:xorg-edgers/ppa
[sudo] password for ovr:
== Xorg packages fresh from git ==
Currently supported releases are Trusty/14.04, and Utopic/14.10
* xserver 1.16 is now in for utopic, beware that fglrx does not support it yet!
* WARNING: Do not use this PPA with the precise X backport stacks, aka if you fresh install of 12.04.2 or newer. You can switch back to a compatible one by installing xserver-xorg-lts-precise instead if you do want to use these packages but horrible things will happen if you don't.