Command Star Galactica
Kerosin for programmers!


Command Star Galactica Rocket

Top rated commands


1
SHOW PROCESSLIST;
1
rake db:migrate VERSION=migration_name.rb
1
ps aux
1
Struct.new('User', :name, :age)
Struct::User.new('Stefan', 66)
1
total_objects = objects.count

objects.each_with_index do |object, index|
  ...

  print "\r#{(index.to_f / total_objects * 100).round(1)}%"
end
1
service postgresql start
1
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update && sudo apt-get install yarn
1
sudo -u user -h host psql -d database
1
mv ~/file{_with_to_long_name, }.rb
1
unzip chromedriver_linux64.zip -d ~/
sudo mv -f ~/chromedriver /usr/local/bin/chromedriver
cd /usr/local/bin/
sudo chown root:root chromedriver 
sudo chmod 0755 chromedriver 
1
# To configure Elasticsearch to start automatically when the system boots up, run the following commands:
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service

# Elasticsearch can be started and stopped as follows:
sudo systemctl start elasticsearch.service
sudo systemctl stop elasticsearch.service
1
CREATE DATABASE name
    [ [ WITH ] [ OWNER [=] user_name ]
           [ TEMPLATE [=] template ]
           [ ENCODING [=] encoding ]
           [ LC_COLLATE [=] lc_collate ]
           [ LC_CTYPE [=] lc_ctype ]
           [ TABLESPACE [=] tablespace ]
           [ CONNECTION LIMIT [=] connlimit ] ]

Top languages

  • 3 Ruby
    • 7 Shell
      • 2 SQL
      • Top users

        • 12 Stefan