Skip to content

Instantly share code, notes, and snippets.

View samehkamaleldin's full-sized avatar

Sameh Mohamed samehkamaleldin

View GitHub Profile
@samehkamaleldin
samehkamaleldin / pacman-init.sh
Last active February 22, 2016 00:30
packages to install in archlinux
# wifi-menu deps
pacman --noconfirm -S wpa_supplicant ncurses dialog
# install basic utils
pacman --noconfirm -S sudo ntp curl wget openssh tar gzip unzip unrar
# install development utils
pacman --noconfirm -S gcc g++ gdb patch zlib readline libxml2 libxslt
# install build utils
@samehkamaleldin
samehkamaleldin / build-model.sh
Last active February 9, 2016 12:18
ILive TTS Project
#!/bin/sh
# ------------------------------------------------------------------------------
# FILE | build-model.sh
# AUTHOR | sameh kamal
# DESCRIPTION | build a new concatinative model
# ------------------------------------------------------------------------------
db_name = $1 # database name
dt_dir = $2 # raw data dir
ws_dir = "~/tts-workspace" # workspace dir
@samehkamaleldin
samehkamaleldin / clojure-basic-tutorial.clj
Last active December 15, 2015 11:29
A very basic Clojure tutorial for those who want to get introduced to Clojure. I recommend using Light Table IDE for coding Clojure. [http://www.lighttable.com/ ]
;-----------------------------------------------------------------------------------
; 1 - example of simple operations
;-----------------------------------------------------------------------------------
; arithmatic operations
(+ 1 2)
(* 2 3)
(/ 8 2)
(> 4 3)
(= 4 6)
#!/bin/sh
# ==============================================================================
# = author :- sameh kamal
# = description :- install ilive-plugin with unimrcp server
# = preconditions :- runs on ubuntu 14.4.x
# ==============================================================================
printf "> update ubuntu repositories\n\n"
sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
@samehkamaleldin
samehkamaleldin / archlinux_after_install.sh
Created November 12, 2015 09:43 — forked from julionc/archlinux_install.sh
Things to do after install ArchLinux (2012.12.01)
#!/usr/bin/env bash
# Things to do after install ArchLinux (2012.12.01)
pacman --noconfirm -S sudo
# Enabled archlinuxfr repo
arch=$(uname -m)
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
echo "" >> /etc/pacman.conf
echo "[archlinuxfr]" >> /etc/pacman.conf
function clc
reset
end
function fish_prompt
echo -e ""
echo -e (set_color "white")"┌──["(set_color normal) (set_color "green")(pwd)(set_color normal) (set_color "white")"]"(set_color normal)
echo -e (set_color "white")"└─⇾ "(set_color normal)
end
@samehkamaleldin
samehkamaleldin / tut.cpp
Created May 1, 2015 18:01
c++11 features by example
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <memory>
#include <functional>
using namespace std;
// usage of auto as function return type that depends on template params
#include <iostream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <sstream>
using namespace std;
@samehkamaleldin
samehkamaleldin / read_matrix.cpp
Last active August 29, 2015 14:20
Function that reads a matrix from stdin
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
// -----------------------------------------------------------------------------
// used functions prototype declaration
// -----------------------------------------------------------------------------
NO_COLOR=\033[0m
OK_COLOR=\033[32;01m
ERROR_COLOR=\033[31;01m
WARN_COLOR=\033[33;01m
DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
deps:
@echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)"
@go get -d -v ./...
@echo $(DEPS) | xargs -n1 go get -d