Skip to content

Instantly share code, notes, and snippets.

@antond
antond / fixup.txt
Last active August 29, 2015 14:14 — forked from lucasdavila/fixup.txt
# see the current limits
$ sysctl -a | grep maxproc
# increase it
$ sudo sysctl -w kern.maxproc=xxxx
$ sudo sysctl -w kern.maxprocperuid=xxx
# run at startup
$ sudo vim /etc/sysctl.conf
@antond
antond / PKGBUILD-bzr
Last active August 29, 2015 14:11 — forked from PedroHLC/PKGBUILD-bzr
# Maintainer: Maxime Gauduin <alucryd@gmail.com>
# Contributors: M0Rf30, faidoc, sh4nks, PedroHLC
pkgname=lightdm-pantheon-greeter-bzr
pkgver=r274
pkgrel=0
pkgdesc="LightDM greeter from the ElementaryOS team written in Vala "
arch=('i686' 'x86_64')
url="https://launchpad.net/pantheon-greeter"
require 'rubygems'
require 'rbvmomi'
require 'pp'
require 'alchemist'
hyper = 'thunder03'
vim = RbVmomi::VIM.connect :host => hyper, :user => 'root', :password => 'secret', :insecure => true
#
# get current time
@antond
antond / redis install
Created August 6, 2012 19:34 — forked from ponych/redis install
redis install on CentOS
1.CentOS 6.3
#yum install make gcc
#cd /opt
$wget http://redis.googlecode.com/files/redis-2.x.xx.tar.gz
$tar zxf redis-2.x.xx.tar.gz
$cd redis-2.x.xx
$make
$make install
//////
@antond
antond / app.js
Created April 4, 2011 15:33
Chrome bug with stroke-width: 0
var paper = Raphael('timeline', 940, 81);
var dot;
dot = paper.circle(470, 40, 20);
dot.attr({
'stroke-width': '0',
'fill': '#cccccc',
'fill-opacity': 1.0
});