Skip to content

Instantly share code, notes, and snippets.

View zakariaboualaid's full-sized avatar
🏠
Working from home

Zakaria Boualaid zakariaboualaid

🏠
Working from home
View GitHub Profile
//=====================================================================
// store.js
const initialState = {
data: {}
}
import React, { createContext, useReducer } from 'react'
import appReducer from './reducers/appReducer.js'
#!/usr/bin/env ruby
# Gems needed : sinatra, jenkins_api_client
# This file is a light web-server using Sinatra that responds to Github events.
# The purpose of this file is to run jobs when some events are triggered in Github.
require 'sinatra'
require 'json'
require 'net/http'
require 'jenkins_api_client'
from django.core import management
from django.core.management.base import BaseCommand
import os
import test_data
class Command(BaseCommand):
args = 'Arguments email and is paginated needed'
help = 'Django populate DB with test data.'
def handle(self, *args, **options):
@zakariaboualaid
zakariaboualaid / cloudfig.sh
Created August 6, 2014 01:57
when you run umbreo command-line
#!/bin/bash
echo "Setting up Umbreo"
set -u
set -e
# Some utility functions.
fail() { echo >&2 "$@"; exit 1; }
cmd() { hash "$1" >&/dev/null; } # portable 'which'