Skip to content

Instantly share code, notes, and snippets.

View seyyah's full-sized avatar

seyyah seyyah

View GitHub Profile
@seyyah
seyyah / gist:d8500bb3721a7485785109a19eddf16b
Created October 29, 2017 18:41 — forked from shripadk/gist:552554
Setting up Heroku Hostname SSL with GoDaddy SSL Cert
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing).
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here:
* Heroku Hostname SSL
* GoDaddy Standard SSL Certificate
* Zerigo DNS
@seyyah
seyyah / Chrome.sh
Created October 9, 2017 06:02 — forked from ibc/Chrome.sh
WebRTC debugging
/Google\ Chrome\ Canary --enable-logging --v=1 --vmodule=*/webrtc/*=2,*/libjingle/*=2,*=-2 --enable-logging=stderr
// Easier:
/Google\ Chrome\ Canary --enable-logging --v=1 --vmodule=*/webrtc/*=2,*=-2 --enable-logging=stderr
@seyyah
seyyah / nginx-502error.conf
Last active August 16, 2017 11:38
HospitalRun Server - DigitalOcean - Docker - Nginx
worker_processes 1;
events { worker_connections 1024; }
http {
upstream website {
server 172.18.0.6:8055;
}
server {

** This Gist is about how to setup a build+upload system to use with MikroC and PICKit 2 v2.55 **

  1. Create a project over MikroC with all of your preferences

  2. Go to the project's base folder and open the %ProjectName%.log

  3. You should see as first line something like this:

0 1 mikroCPIC1618.exe -MSF -DBG -pP18F452 -DL -O11111114 -fo20 -N"F:\development\Trabalhofinal\mikroc\MyProject.mcppi" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroC PRO for PIC\defs" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroC PRO for PIC\uses\P18" -SP"F:\development\Trabalhofinal\mikroc" -SP"C:\Users\mplab\Documents\Trabalhofinal\mikroc" -IP"C:\Users\mplab\Documents\Trabalhofinal\mikroc" -IP"F:\development\Trabalhofinal\mikroc" "start.c" "processor.c" "main.c" "keyboard.c" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_CType.mcl" "__Lib_CString.mcl" "__Lib_CStdlib.mcl" "__Lib_CMath.mcl" "__Lib_MemManager.mcl" "__Lib_Conversions.mcl" "__Lib_Sprintf.mcl" "__Lib_PrintOut.mc

function GregToHijri(arg) {
console.log ( 'arg' );
console.log (arg);
if(arg == ""){
return "";
}
//declare a date format year,month,day sequence
var arabic_date = new Array(0,0,0);
@seyyah
seyyah / _.md
Created June 20, 2017 05:06
anim test
@seyyah
seyyah / _.md
Last active June 20, 2017 05:06
anim test
@seyyah
seyyah / gist:b28fe399140d664110e5d8d160542be1
Created June 10, 2017 13:00 — forked from tomerd/gist:4179337
init.d script to control resque + resque-scheduler with rvm and bundler
#!/bin/sh
#
# chkconfig: - 85 15
# Source function library.
. /etc/rc.d/init.d/functions
ROOT="app_path"
USER="user"
ENVIRONMENT="development"
@charset "UTF-8";
@font-face {
font-family: "feather";
src: ~"url('@{icon-font-path}feather-webfont.eot')";
src: ~"url('@{icon-font-path}feather-webfont.eot?#iefix') format('embedded-opentype')",
~"url('@{icon-font-path}feather-webfont.woff') format('woff')",
~"url('@{icon-font-path}feather-webfont.ttf') format('truetype')",
~"url('@{icon-font-path}feather-webfont.svg#featherregular') format('svg')";
font-weight: normal;
@seyyah
seyyah / acer_one_10_porteus722.log
Last active June 1, 2017 12:09
722-Porteus-Kiosk-4.4.0-x86_64-linux-4.12_firefox54.iso debug message
Please copy (Ctrl+a -> Ctrl+c) and send this report to support@porteus-kiosk.org in case of hardware/software/configuration issues.
KIOSK SIGNATURE:
U2FsdGVkX198wJ35Qo1/3QztWws13LDp2cb4knKXtqesivCrxbvqf9WAWtZc9G8L
Wkef3Ga/gOFZywp4FnlhRCbbj94IRGIIOx+OVCuZUF4dceO9SNM4VBbwkhnkgO6W
FVFdXS2/bTraaZ63ty6vML35ALFgEXSZLYnukKWzi/AkBpNzD+oY4jHWLvfip4M0
03Usf0VTFnY7J4dx8mtm4Xx8VPiPNeBGelaKbgRs5m976BxKn8ss0srp2gSBGxdl
S+0ka7D0qeGbPRKHzXX4ZiTiQJTp56ihJBknA/lTQ4v1kWyJ3wPDyfksafMSOBwm
MUPR5q6A4SRXkFto64Njc4HSlZy0d9NmlmvVxpC1sGV+2YbY1/V4ivbh21czelzX