Skip to content

Instantly share code, notes, and snippets.

View sualeh's full-sized avatar
⚠️
404 Not Found

Sualeh Fatehi sualeh

⚠️
404 Not Found
View GitHub Profile
@diegopacheco
diegopacheco / schema-crawler-oracle.md
Created September 27, 2022 01:41
Schema Crawler - oracle

Create user/schema on oracle

CREATE USER smith IDENTIFIED BY password;
GRANT CREATE TABLE TO smith;
GRANT CREATE SESSION TO smith;
commit;
SELECT username, account_status FROM dba_users
WHERE username = 'SMITH';

CREATE SCHEMA AUTHORIZATION smith;
@GavinRay97
GavinRay97 / CalciteExample.java
Created March 18, 2022 15:11
SchemaCrawler Calcite multiple datasources test output
package com.example;
import org.apache.calcite.adapter.jdbc.JdbcCatalogSchema;
import org.apache.calcite.jdbc.CalciteConnection;
import org.apache.calcite.jdbc.JavaTypeFactoryImpl;
import org.apache.calcite.rel.type.RelDataTypeField;
import org.apache.calcite.schema.SchemaPlus;
import org.apache.calcite.schema.Table;
import schemacrawler.schema.Catalog;
import schemacrawler.schemacrawler.SchemaCrawlerOptions;
@sualeh
sualeh / resume.json
Last active June 18, 2022 20:41
Sualeh Fatehi - JSON Resume
{
"meta": {
"theme": "short"
},
"basics": {
"name": "Sualeh Fatehi",
"label": "Software Engineer; Open Source Enthusiast; Team Manager",
"image": "",
"email": "sualeh@hotmail.com",
"url": "https://sualeh.github.io/",
@sualeh
sualeh / How to Use git to Find Modified Files.md
Last active July 7, 2021 09:40
How to Use git to Find Modified Files

Introduction

I keep a number of personal files on my computer, organized in folders. These could be photos, financial information, and so on. As I work with these files, I add to them, sometimes modify them to edit a photo, or add to notes, and move or rename them in various ways to reorganize. I wanted a good way to keep track of these changes.

My first thought is that I would write a Python program to scan the folders, and print MD5 checksums of each file in a readable way. This way, I could save off the old "index", and compare it with a new index using a standard diff tool. My attempt at this program is sualeh/diff-name-only. My disclaimer if you look at the code is that I am still teaching myself Python, and have not reached the heights of Pythonic Zen.

As I was writing this code, I was struck by how much of what I needed was already done by a standard source control system such as git. I could simply use git, and solve my problems. However, git keeps tr

@dannguyen
dannguyen / schemacrawler-sqlite-macos-howto.md
Last active January 21, 2024 15:32
How to use schemacrawler to generate schema diagrams for SQLite from the commandline (Mac OS)
@ofurkusi
ofurkusi / UDL_TodoTxt.xml
Created October 14, 2016 14:27
Todo.txt syntax highlighting for Notepad++
<NotepadPlus>
<UserLang name="Todo.txt" ext="Todo.txt" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
<Prefix Keywords1="yes" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00x 01 02((EOL)) 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>