Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

leyla KAPİ leylaKapi

💭
I may be slow to respond.
Block or report user

Report or block leylaKapi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View server-base.sh
## Run this script with root user
## Fancy echo
fancy_echo() {
printf "\n%b\n" "$1"
}
fancy_echo "Updating system packages ..."
apt-get -y update
apt-get -y upgrade
View deploy-user-ruby-2.2.2-environment.sh
## 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
View deploy-user.sh
# 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 ]
@leylaKapi
leylaKapi / adding-custom-font-icons-to-sencha-touch
Created Apr 18, 2014
adding-custom-font-icons-to-sencha-touch
View adding-custom-font-icons-to-sencha-touch
@include icon-font('SenchaConIcons', inline-font-files(
'senchacon-icons/senchacon-icons.woff', woff,
'senchacon-icons/senchacon-icons.ttf', truetype,
'senchacon-icons/senchacon-icons.svg', svg
))
View rbenv-howto.md

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
@leylaKapi
leylaKapi / style.scss
Created Feb 24, 2016 — forked from daz/style.scss
Bootstrap styling for jQuery UI autocomplete
View style.scss
.ui-autocomplete {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
float: left;
display: none;
min-width: 160px;
_width: 160px;
padding: 4px 0;
@leylaKapi
leylaKapi / new.html.haml
Created Feb 27, 2017
Payment with a Bank
View new.html.haml
%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
@leylaKapi
leylaKapi / _navbar.haml
Created Feb 27, 2017
Navbar active class in rails
View _navbar.haml
%nav.menu
.logo
= link_to path do
= image_tag 'logo-index.png', class: 'logo-img'
%ul.main-menu
%li.menu-item{class: "#{set_active_class 'welcome'}"}
= link_to root_path, data: {no_turbolink: false} do
%i.fa.fa-home
= t('navbar.home_page')
%li.menu-item{class: "#{set_active_class 'editor_payment'}"}
@leylaKapi
leylaKapi / commit_undo.sh
Created Feb 27, 2017
git undo commit revert, reset
View commit_undo.sh
git log
git reset --hard COMMITID
git revert COMMITID
git checkout e3a3f28
git checkout feature/something
git merge e3a3f28
You can’t perform that action at this time.