Skip to content

Instantly share code, notes, and snippets.

View sidtri's full-sized avatar
🎯
Focusing

sid d sidtri

🎯
Focusing
View GitHub Profile
diff --git a/app/assets/javascripts/angular/orders/moves/move.tmpl.html.haml b/app/assets/javascripts/angular/orders/moves/move.tmpl.html.haml
index e1aa4c8..ba6717f 100644
--- a/app/assets/javascripts/angular/orders/moves/move.tmpl.html.haml
+++ b/app/assets/javascripts/angular/orders/moves/move.tmpl.html.haml
@@ -24,7 +24,7 @@
%td {{move.service_type_name}}
%td {{origin_address(move)}}
%td {{destination_address(move)}}
- %td {{move.number}}
+ %td {{move.carrier_name}}
diff --git a/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml b/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
index 1039bea..c5b2b85 100644
--- a/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
+++ b/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
@@ -16,7 +16,7 @@
%form#moves_form
%fieldset
.form-group.col-xs-4
- %label.control-label Move #
+ %label.control-label Move# *
diff --git a/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml b/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
index 1039bea..801b73a 100644
--- a/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
+++ b/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
@@ -16,7 +16,7 @@
%form#moves_form
%fieldset
.form-group.col-xs-4
- %label.control-label Move #
+ %label.control-label Move # (required *)
diff --git a/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml b/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
index 1039bea..801b73a 100644
--- a/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
+++ b/app/assets/javascripts/angular/moves/edit/moves-edit.tmpl.html.haml
@@ -16,7 +16,7 @@
%form#moves_form
%fieldset
.form-group.col-xs-4
- %label.control-label Move #
+ %label.control-label Move # (required *)
sudo aptitude update
sudo aptitude safe-upgrade
adduser sid
sudo usermod -a -G sudo sid
sudo restart
ssh-copy-id ubuntu@ipaddress # copy pub key to server authorized keys
# /etc/ssh/sshd_config
permitrootlogin no
<% current_user.transactions.includes(:categories).each do |f| %>
<%= f.categories.source %>
<% end %>
class Transactions
has_many :categories / has_one :cateogory
end
@sidtri
sidtri / gist:2ec09740a4fc66f10955
Last active August 29, 2015 14:23
fp server conf
server {
listen 443 default_server;
ssl on;
ssl_certificate key-chain.crt;
ssl_certificate_key server.key;
server_name fitnesspapa.com;
ssl_session_timeout 5m;
@sidtri
sidtri / 0_reuse_code.js
Last active August 29, 2015 14:17
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
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ trusty main restricted universe
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
###### Ubuntu Update Repos
deb http://in.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe
Enable Colorful Terminal in Debian and Ubuntu
`vim .bashrc
Enabling 256 color mode in Ubuntu’s Bash terminal
When I first connected to my headless Ubuntu server and started opening files in Vim, I couldn’t figure out why it was ignoring my Vim color schemes. Everything was displaying in garish blues, reds and yellows.
It took little digging around to figure out that 256 color mode isn’t enabled by default in some versions of Ubuntu, including the server version of Ubuntu 11.10 that I was using. This is how I got my color schemes working.
To determine what mode you’re currently running in, use the following command:
`tput colors`