Skip to content

Instantly share code, notes, and snippets.

View serayuzgur's full-sized avatar

Seray Uzgur serayuzgur

View GitHub Profile
# copy this to .zshrc or similar place. usage 'flatten x' x is the directory to traverse and flatten
flatten() {
find $1 -mindepth 2 -type f -exec mv -f {} $1 ';'
find $1 -mindepth 1 -type d -exec rmdir {} ';'
}
const csv = require("csvtojson/v2");
var fs = require("fs");
const ibMap = {};
const structured = {};
function append(item) {
let province = {};
let district = {};
let subd = {};
@serayuzgur
serayuzgur / Evernote2Notes.scpt
Created October 20, 2015 08:10
Exports from Evernote imports to Apple Notes iCloud Account.
tell application "Evernote"
set _Notebooks to every notebook
repeat with _NoteBook in _Notebooks
set _NoteBookName to name of _NoteBook
set _Notes to every note of _NoteBook
@serayuzgur
serayuzgur / InstallCert.java
Last active August 29, 2015 14:04
Modified version of popular InstallCert *Directly reads JAVA cacerts from lib/security * User can import multiple certificates with entering cert numbers separated with space *Alias will be CN field of Subject NOTE: Modified cacerts will be created at the same folder with program and user must copy it to the JRE HOME/lib/security manually
package tr.com.serayuzgur.util;
/*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.