Skip to content

Instantly share code, notes, and snippets.

View oozzal's full-sized avatar
🇳🇵
learning

Uzzal Devkota oozzal

🇳🇵
learning
View GitHub Profile
@oozzal
oozzal / text_in_vim.sh
Created October 16, 2014 11:23
Open text in vim
# Open text in vim
echo 'hello there' | vim -
# it's doing nothing but reading from the stdin with the '-' flag
# cut first 120 seconds
ffmpeg -i input.mp4 -ss 0 -t 120 -c copy 0_120_copy.mp4
td {
width: 50px;
height: 50px;
text-align: center;
border-radius: 50%;
/* background: rgb(155,100,100); */
}
.selected {
background: green;
'use strict';
var QFX = {};
QFX.Seat = function(row, column, weight, id, selected) {
this.row = row;
this.column = column;
this.weight = weight;
this.id = id;
this.selected = selected || false;
(function() {
var users = [
{
id: '100001671834399',
name: 'Krishna Bashyal',
nickname: 'Krrish',
sound: false
},
#Remove Whitespace from file vim:
:%s/\s\+\n/\r/g
#Download Private YouTube Video
youtube-dl -u <username> -p <passwd> https://www.youtube.com/watch\?v\=vknmyK9Zrq4
# remove 10 days older files
find /path/to/base/dir -type d -ctime +10 -exec rm -rf {} \;
# fix 'your branch is ahead of origin/master by x commits'
git reset --hard origin/master

:: The Flow of the esewa payment system

When customer chooses esewa as on-line payment option from merchant site, then s/he(user) is temporarily redirected to eSewa, where user have to login and confirm the transaction to proceed. After successful transaction in esewa, the user is redirected back to merchant site(success page). If transaction fails due to any reason, the user is informed by failure message and redirected back to merchant site(failure page).

For every successful transaction by user, the merchant account is credited accordingly and notified via email about transaction with details.

:: Integrating eSewa epay feature into merchant site

When user chooses esewa as on-line payment, the merchant site calls following URL with nine different parameters