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
$('.table').footable({ | |
"toggleColumn": "last", | |
"expandFirst": true, | |
"empty": "no results", | |
"columns": [ | |
{ "name": "id", "title": "ID", "breakpoints": "xs" }, | |
{ "name": "firstName", "title": "First Name" }, | |
{ "name": "lastName", "title": "Last Name" }, | |
{ "name": "jobTitle", "title": "Job Title", "breakpoints": "xs" }, | |
{ "name": "started", "title": "Started On", "breakpoints": "xs sm" }, |
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
//In remote | |
➜ ~ tar czvf compressed.tar.gz directory1 | |
https://www.digitalocean.com/community/tutorials/an-introduction-to-file-compression-tools-on-linux-servers | |
//In Locale | |
➜ ~ scp -r username@ip:compressed.tar.gz /Users/johndoe/Desktop/backup.tar.gz |
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
mysql -u root -p | |
// No, you should run mysql -u root -p in bash, not at the MySQL command-line. If you are in mysql, you can exit by typing exit. |
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 log | |
git reset --hard COMMITID | |
git revert COMMITID | |
git checkout e3a3f28 | |
git checkout feature/something | |
git merge e3a3f28 |
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
%form{:action => @teb.url, :method => 'post'} | |
.form-inputs | |
-#= f.input :pan | |
.form-group | |
%label= t('activerecord.attributes.payment.card_number') | |
%input{name: 'pan', type: 'number',class: ''} | |
.form-group | |
%label= t('activerecord.attributes.payment.end_year') | |
%input{name: 'Ecom_Payment_Card_ExpDate_Year', type: 'text'} | |
.form-group |
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
.ui-autocomplete { | |
position: absolute; | |
top: 100%; | |
left: 0; | |
z-index: 1000; | |
float: left; | |
display: none; | |
min-width: 160px; | |
_width: 160px; | |
padding: 4px 0; |
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
# Deploy group | |
deploy_group=deploy | |
# Deploy user | |
deploy_user=deploy | |
# Github usernames for access with ssh to deploy user | |
usernames=(tayfunoziserikan ismailakbudak) | |
# Check user is exist | |
id -u $deploy_user &> /dev/null | |
if [ $? -ne 0 ] |
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
## Run this command with deploy user | |
# define user home path | |
user_path=/home/deploy | |
## Fancy echo | |
fancy_echo() { | |
printf "\n%b\n" "$1" | |
} | |
fancy_echo "Installing rbenv..." | |
git clone git://github.com/sstephenson/rbenv.git $user_path/.rbenv |