Skip to content

Instantly share code, notes, and snippets.

View thapakazi's full-sized avatar
💭
🐧 🗡️ 💻

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
@thapakazi
thapakazi / maya
Created June 26, 2013 15:22 — forked from rhoit/maya
# असारको माया
यो माया भन्‍ने चिज कस्तो
गर्मीमा घाम नलागेको जस्तो
लोडसेडीगमा tube-lite बाल्या जस्तो॥
यतिमात्र होईन, कि कसो,
गाईको दुध पनि कस्तो सस्तो
ncell को sim-card लिए जस्तो
#!/usr/bin/env ruby
require 'csv'
# This assumes:
# - Ruby 1.9's CSV library, if you are using 1.8, use FasterCSV.
#
# https://raw.github.com/hadley/data-baby-names/master/baby-names.csv
csv_fname = "baby-names.csv"
<?php defined('MOODLE_INTERNAL') || die();
$configuration = array (
'siteidentifier' => NULL,
'stores' =>
array (
'default_application' =>
array (
'name' => 'default_application',
'plugin' => 'file',
'configuration' =>
Omniauth Facebook Error - Faraday::Error::ConnectionFailed
Faraday::Error::ConnectionFailed
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook, '<key from fb>', '<another key from fb>'
end
class SessionsController < ApplicationController
def create
#!/bin/bash
NAME="hello_app" # Name of the application
DJANGODIR=/webapps/hello_django/hello # Django project directory
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket
USER=hello # the user to run as
GROUP=webapps # the group to run as
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name
<table border="1" cellpadding="15" bgcolor="#fcfcfc" cellspacing="0" style="border-collapse: collapse" bordercolor="#DDDDDD" width="100%">
<tr bgcolor="#f1f1f1">
<td width="60%"><b>Subject</b></td>
<td width="10%"><div align="center"><b>Theory Marks</b></div></td>
<td width="10%"><div align="center"><b>Pratical Marks</b></div></td>
<td width="10%"><div align="center"><b>Total Marks</b></div></td>
<td width="10%"><div align="center"><b>Remarks</b></div></td>
</tr>
<tr>
#/etc/init/change_this_to_your_app_name.conf
description "App Name"
author "Admin Name <admin@app.com>"
start on virtual-filesystems
stop on runlevel [06]
env PATH=/usr/local/rbenv/shims:/usr/local/rbenv/bin:/usr/local/bin:/usr/bin:/bin
env RAILS_ENV=staging # what environment
#!/bin/bash
# Script to install a ubuntu trusty tahr 14.04 LTS template on xcp or
# Citrix (TM) Xenserver 5.6 and above.
# Copyright (C) 2014 Arne-Kristian Hingst - All Rights Reserved
# Permission to copy and modify is granted under the eupl license
# http://ec.europa.eu/idabc/servlets/Docbb6d.pdf?id=31979
# Last revised 04/20/2014
#
# Add your favourite mirror here