Skip to content

Instantly share code, notes, and snippets.

View manojhl's full-sized avatar

Manoj Halugona manojhl

View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/smily/.oh-my-zsh"
export PATH="/usr/local/bin:$HOME/bin:$PATH"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
@manojhl
manojhl / index.js
Created February 21, 2020 01:05
Image generation
const http = require("http");
const puppeteer = require("puppeteer");
var express = require("express");
var app = express();
const hostname = "localhost";
const port = 3000;
const server = app.get("/", function(req, res) {
const url = req.query.url;
@manojhl
manojhl / config.php
Created November 23, 2018 07:10
Debugging config for production - Error reporting
<?php
/**
* Debugging in production
*
* - Set error reporting to true
* - But don't display the errors
* - Instead log the errors in a file
*/
// For PHP
@manojhl
manojhl / config.php
Created November 23, 2018 07:01
Debugging config for production - Error reporting
<?php
/**
* Debugging in production
*
* - Set error reporting to true
* - But don't display the errors
* - Instead log the errors in a file
*/
<svarx version="2">
<!-- Preprocessing rules -->
<preprocess>
<rule type="trim">
<el name="firstname" />
<el name="lastname" />
<el name="mobile" />
</rule>
</preprocess>
@manojhl
manojhl / index.html
Last active May 6, 2016 06:29 — forked from anonymous/index.html
#iSwitch あなたの“スイッチ”が社会を変えるみんなの力で自然エネルギーを増やすキャンペーン #iSwitch に参加しました!- 原発事故から5年となる今年。電力自由化によって、わたしたち一人ひとりが、原発から自然エネルギーに乗り換える権利を得ます。今こそあなたも #iSwitch。オンラインでiSwitchしてくれた方には「電力会社クリーン乗り換えガイド」を無料でプレゼント!// source https://jsbin.com/fodoyi
<!DOCTYPE html>
<html lang="ja">
<!--[if lt IE 7 ]><html class="ie ie6" lang="ja"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="ja"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="ja"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="ja"> <!--<![endif]-->
<head>
<!-- Basic Page Needs
================================================== -->