Skip to content

Instantly share code, notes, and snippets.

Talk is Cheap, Show me the Code

Fahim Shariar Shoumik sh0umik

Talk is Cheap, Show me the Code
Block or report user

Report or block sh0umik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sh0umik /
Created Nov 27, 2017
Gitlab Runner for Docker In Docker
sudo gitlab-runner register -n \
--url \
--registration-token CI_RUNNER_TOKEN \
--executor docker \
--description "Docker Runner Vultr (Rancher)" \
--docker-image "docker:latest" \
--docker-volumes /var/run/docker.sock:/var/run/docker.sock
sh0umik / .gitlab-ci.yml
Last active Apr 20, 2019
Gitlab CI for Golang and Docker in Docker
View .gitlab-ci.yml
image: restra/golang-docker-gitlabci
MAIN_IMAGE_NAME: sh0umik/golang-gitlab-ci
- docker:dind
sh0umik / fhir-patient.json
Created Oct 8, 2017
Sample FHIR Patient Data
View fhir-patient.json
"resourceType": "Patient",
"gender": "male",
"birthDate": "1942-01-14",
"id": "3abaceca-6fdd-4735-bff3-6b4830c0dab4"
"identifier": [
"type": {
"coding": [
View json-example.json
"firstName": "Frank",
"lastName": "Weigel",
"age": 25,
"streetAddress": "21 2nd Street",
"city": "MV",
"state": "CA",
"postalCode": "94040"
sh0umik / interview-ques-01.go
Created Aug 30, 2017
Go Routine Behaviour Controlling using Channel
View interview-ques-01.go
package main
// Problem :
// Create a go routine that will loop and sleep for 1 second. When it wakes up it will print out the time.
//The main routine will wait for 20 seconds and then sends a termination signal to the go routine.
import (
package gametry;
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
* @author Faiaz
View ionic-mailgun
sendEmailTest(from:string, to:string, subject:string, text:string, html:string, inlines:Array<any>):Promise<any> {
var mailgunUrl = "" + this.domain + "/messages";
var mailgunApiKey = "api:key-e0b78e9e1c5e1c3135d3dfdf47ec2c60"
var headers = new Headers();
headers.append('Authorization', "Basic " + mailgunApiKey); // base64 encoding is missing
headers.append('Content-Type', "application/x-www-form-urlencoded");
//headers.append("enctype", "multipart/form-data");
View docker-compose.yml
container_name: php7_apache_oci8
build: .
- "80:8888"
- ./src:/var/www/html/
- ./conf/apache:/etc/apache2/sites-enabled/
- ./conf/php:/usr/local/etc/php/
sh0umik / Dockerfile
Created Jun 28, 2017
View Dockerfile
FROM php:7-apache
MAINTAINER Fahim Shariar <>
# installing required stuff
RUN apt-get update \
&& apt-get install -y unzip libaio-dev libmcrypt-dev git \
&& apt-get clean -y
# PHP extensions
import re
class InputScanner(object):
def __init__(self, filename, parse_function):
with open(filename) as f:
self.reversed_lines = list(reversed('\n')))
self.case_count = 0
self.total_cases = self.next_int()
self.parse_function = parse_function
You can’t perform that action at this time.