Skip to content

Instantly share code, notes, and snippets.

View rusllonrails's full-sized avatar
💭
👨‍💻 💻 🖱️ 🍻 🏋️‍♂️

rusllonrails rusllonrails

💭
👨‍💻 💻 🖱️ 🍻 🏋️‍♂️
  • Tbilisi, Georgia
View GitHub Profile
@rusllonrails
rusllonrails / gist:4942901
Created February 13, 2013 07:32
GIT useful commands
GIT guide
1.) gitconfig
cd
.gitconfig
nano .gitconfig
2.) внутрь .gitconfig
@rusllonrails
rusllonrails / Ubuntu how to work with update-rc
Last active December 14, 2015 03:19
Ubuntu how to work with update-rc
see all update rc
find /etc/rc*.d
add to update rc
update-rc.d apache2 defaults
remove from update rc
@rusllonrails
rusllonrails / Sendmail Ubuntu setup
Created March 13, 2013 18:51
Sendmail Ubuntu setup
sudo apt-get install sendmail
sudo service sendmail restart
@rusllonrails
rusllonrails / Ubuntu disable report a problem
Created March 19, 2013 12:44
Ubuntu disable report a problem
you need to edit /etc/default/apport
# Graphical
gksu gedit /etc/default/apport
or
# Command line
sudo nano /etc/default/apport
@rusllonrails
rusllonrails / Ubuntu 12.04 skype doesn't shows in top panel
Created March 20, 2013 07:30
Ubuntu 12.04 skype doesn't shows in top panel
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
sudo killall -9 skype
restart skype on your machine
@rusllonrails
rusllonrails / How do I force Sublime Text 2 to use two spaces per tab?
Created March 27, 2013 07:48
How do I force Sublime Text 2 to use two spaces per tab?
Go to Preferences -> Settings -> More -> Syntax Specific -> User and add these settings:
{
"tab_size": 2,
"translate_tabs_to_spaces": true
}
Restarting should not be necessary, although in some instances it can be.
@rusllonrails
rusllonrails / Facebook how to get image without API
Created March 27, 2013 17:08
Facebook how to get image without API
http://graph.facebook.com/id/picture?type=small
http://graph.facebook.com/id/picture?type=square
http://graph.facebook.com/id/picture?type=large
http://graph.facebook.com/id/picture?type=normal
@rusllonrails
rusllonrails / CSS JOKE with Chrome
Created March 29, 2013 10:57
CSS JOKE with Chrome
https://github.com/wesbos/aprilFools.css
@rusllonrails
rusllonrails / live is deprected in Jquery 1.9 (fix)
Created April 17, 2013 14:11
live is deprected in Jquery 1.9 (fix)
Port jQuery.live to jQuery 1.9+ while you wait for your application to migrate. Add this to your JavaScript file.
// Borrowed from jQuery 1.8.3's source code
jQuery.fn.extend({
live: function( types, data, fn ) {
if( window.console && console.warn ) {
console.warn( "jQuery.live is deprecated. Use jQuery.on instead." );
}
jQuery( this.context ).on( types, this.selector, data, fn );
@rusllonrails
rusllonrails / EC2 access via password
Created April 18, 2013 13:27
EC2 access via password
Check your */etc/ssh/sshd_config* file. There, find the line which says
PasswordAuthentication no
That line needs to be modified to say yes instead of no. Also, restart the sshd server afterwards.
sudo /etc/init.d/ssh restart