- Backbone Patterns - https://gist.github.com/fabf0289b45d9beeca85
This file contains 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
# Time sync for Vagrantboxes | |
vb.customize ["setextradata", :id, "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled", 0] | |
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 1000] | |
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-start", 1 ] | |
... | |
config.vm.provision :shell, inline: 'timedatectl set-timezone Europe/Riga' |
This file contains 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
$ git clone --mirror <old_repo_url> | |
$ git remote rename origin origin-old | |
$ git remote add origin <new_repo_url> | |
$ git push --all origin |
This file contains 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
One can use the following v$nls_parameters view to find the database LANGUAGE, TERRITORY and CHARACTER SET. | |
select DECODE(parameter, 'NLS_CHARACTERSET', 'CHARACTER SET', | |
'NLS_LANGUAGE', 'LANGUAGE', | |
'NLS_TERRITORY', 'TERRITORY') name, | |
value from v$nls_parameters | |
WHERE parameter IN ( 'NLS_CHARACTERSET', 'NLS_LANGUAGE', 'NLS_TERRITORY') | |
/ | |
NAME VALUE |
This file contains 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
# person code format: ddmmyy-cxxxx | |
# where | |
# dd - is for birth day | |
# mm - is for birth month | |
# yy - is for birth year | |
# c - is for birth century (0 - 18xx, 1 - 19xx, 2 - 20xx) | |
# xxxx - is a checksum generated by some secret algorithm | |
# | |
# http://www.lvportals.lv/visi/skaidrojumi/248652-personas-kods-ir-tava-identitate-sarga-to/ |
This file contains 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
# to remove: | |
$ sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search | |
# reboot | |
# to enable: | |
$ sudo chmod 755 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search | |
# reboot |
This file contains 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
ActiveRecord::Base.logger = Logger.new(STDOUT) |
This file contains 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
package org.andengine.util.adt.io.out; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.nio.ByteBuffer; | |
/** | |
* TODO Instead of having mMaximumGrow there could be some kind of AllocationStrategy object. | |
* | |
* (c) 2011 Zynga Inc. |
This file contains 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 | |
before_action :enable_pry if Rails.env.development? | |
private def enable_pry | |
ENV['DISABLE_PRY'] = nil | |
end | |
end |
This file contains 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
# source: http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff | |
yum -y install ncurses-devel | |
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xvzf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure | |
make | |
make install |
NewerOlder