Skip to content

Instantly share code, notes, and snippets.

View jeyemwey's full-sized avatar
👨‍🏫
Studying

Jannik jeyemwey

👨‍🏫
Studying
View GitHub Profile
@gaeulbyul
gaeulbyul / tweetdeck-paste-image.user.js
Last active August 4, 2022 16:04
트윗덱(or 트윗덱 플레이어)에 이미지를 붙여넣기하여 업로드하는 스크립트.
// ==UserScript==
// @name TweetDeck Paste Image
// @namespace gaeulbyul.userscript
// @description 트윗덱에 클립보드 붙여넣기(Ctrl-V)로 이미지를 업로드하는 기능을 추가한다.
// @author Gaeulbyul
// @license WTFPL
// @include https://tweetdeck.twitter.com/
// @version 0.3b3
// @run-at document-end
// @grant none
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@cliss
cliss / organize-photos.py
Created October 6, 2013 14:43
Photo management script. This script will copy photos from "~/Pictures/iPhone Incoming" into a tree the script creates, with folders representing month and years, and photo names timestamped. Completely based on the work of the amazing Dr. Drang; see here: http://www.leancrew.com/all-this/2013/10/photo-management-via-the-finder/ You can see more…
#!/usr/bin/python
import sys
import os, shutil
import subprocess
import os.path
from datetime import datetime
######################## Functions #########################