Skip to content

Instantly share code, notes, and snippets.

Mouaffak A. Sarhan msarhan

View GitHub Profile
@msarhan
msarhan / generate-maven-repo.js
Last active Aug 29, 2015
Generate local Maven repository from existing jar files
View generate-maven-repo.js
/**
* @author Mouaffak A. Sarhan.
*
* This Node script will read Jar files inside 'lib' folder and:
* 1) Install jar files to local Maven repository 'repo'
* 2) Generate 'pom.xml' file
*/
function generate(){
var fs = require('fs');
@msarhan
msarhan / pdf-merge.sh
Created Jul 17, 2014
Merge PDF files using Ghostscript
View pdf-merge.sh
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=all.pdf 1.pdf 2.pdf
@msarhan
msarhan / mp3-copy.bat
Created Jun 12, 2014
This command will copy MP3 files from local hard disk and write them to USB stick in alphabetical order. This will solve playback order issue when using MP3 player in a car
View mp3-copy.bat
robocopy /mir C:\path\to\mp3\folder H:\
@msarhan
msarhan / spring-security-oracle-schema.sql
Last active Jul 30, 2019
Oracle schema for Spring Security 3.x
View spring-security-oracle-schema.sql
create table users(
username varchar2(50) not null primary key,
password varchar2(50) not null,
enabled number(1) not null
);
create table authorities (
username varchar2(50) not null,
authority varchar2(50) not null,
constraint fk_authorities_users foreign key(username) references users(username)
You can’t perform that action at this time.