Skip to content

Instantly share code, notes, and snippets.

View sashapodgoreanu's full-sized avatar

Alexandru Podgoreanu sashapodgoreanu

  • Italia
View GitHub Profile
@sashapodgoreanu
sashapodgoreanu / export-notebook-definition.sql
Created April 17, 2025 13:46 — forked from mrjsj/export-notebook-definition.sql
The DuckDB UI stores notebook content in an internal database called _duckdb_ui. You can query and export notebook content, as well as insert new definitions into the database. Warning: Modifying the internal database may lead to corruption and data loss. Be cautious and use it at your own risk!
copy (
select
"json"
from _duckdb_ui.notebook_versions
where 1=1
and title = 'MySingleNotebook'
and expires is null
) to 'exported-notebook.json';
@sashapodgoreanu
sashapodgoreanu / glyphs.md
Created April 4, 2025 06:29 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@sashapodgoreanu
sashapodgoreanu / gist:d31a430512af5b2d0fd27c00cab66068
Created October 2, 2020 10:55 — forked from trongthanh/gist:2779392
How to move a folder from one repo to another and keep its commit history
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html
# First of all you need to have a clean clone of the source repository so we didn't screw the things up.
git clone git://server.com/my-repo1.git
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command
git filter-branch --subdirectory-filter your_dir -- -- all
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command.
@sashapodgoreanu
sashapodgoreanu / list.c
Created March 29, 2019 18:25 — forked from icheishvili/list.c
Linked List in C with Iterator
struct list_node {
void* data;
struct list_node* next;
};
struct list {
struct list_node* head;
};
struct list* list_create() {