Skip to content

Instantly share code, notes, and snippets.

View harish-chander's full-sized avatar

Harish Chander harish-chander

  • Infobug
  • Dubai,UAE
View GitHub Profile
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
# METEOR CORE:
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl+z1RKH4ApcuNnb0GBSNKBqu2Myg/JypZn6m3SIzcQl7AXWAQAh7Fy2VmyXqPoPwpUJvPD9oAISoMcE5yLkm2HMy8AdKO48rSp74c5dozXMiSDmW6ZQBClOPrUqDd1Pf/dIg8QAb3nb2hCGuM3dJhDdLI2Gf74hji25o+26d20/+SFcUoHHHwuk9pxbWhHxYqgcgH1oe+lbHvcq9UZSJCc6l8bFdN5F7uQ7qEc9ucsjvpg7MDtYT2JHr1bhjoNbEUslbA7jtSp5VkMHfF+mlG+x4mps/ti7U41WQ2F4kFPBUm2DI/DxnRoN82WQ4giYE2UkfqK7TOyi6vuI0nnxHv star@Harishs-MacBook-Pro.local
rancher:
network:
interfaces:
eth*:
dhcp: true
dns:
<?php
//Check if any user is already logged in
session_start();
if(!empty($_SESSION['username']))
{
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'landing page';
header("Location: http://$host$uri/$extra");
if(isset($_FILES['dp']))
{
if($_FILES['dp']['error'] > 0)
{
echo('<script>$.notify("Cannot upload the Picture","error");</script>');
}
else
{
$filename=$_FILES['dp']['name'];
<html>
<head>
<?php include("headmain.inc"); ?>
<title>UniSync</title>
</head>
<body>
<?php
include("menu.php");
?>
<?php
<!DOCTYPE html>
<html>
<head>
<?php include("headmain.inc"); ?>
<title>UniSync</title>
</head>
<body>
<?php
include("menu.php");
?>
<html>
<head>
<meta charset="UTF-8">
<title>Funk buzz</title>
<?php include('head_inc.php');
include('headstyle.php'); ?>
</head>
<body>
<?php
session_start();
Verifying that "elitcartman.id" is my Blockstack ID. https://onename.com/elitcartman