Skip to content

Instantly share code, notes, and snippets.

@galeo
galeo / amdock-segmentation-fault-11-report.ips
Created June 28, 2022 01:41
AMDock 'Segmentation fault: 11' error report on macOS 12
Process: Python [14403]
Path: /usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.9.13 (3.9.13)
Code Type: X86-64 (Native)
Parent Process: bash [807]
Responsible: iTerm2 [749]
User ID: 501
Date/Time: 2022-06-28 09:30:16.6354 +0800
@galeo
galeo / sqlalchemy_session.py
Created September 20, 2021 07:05 — forked from justdoit0823/sqlalchemy_session.py
A simple sqlalchemy session decorator and context manager for db operation function.
session_engines = {}
def get_new_session(connection=None, autocommit=None):
connection = connection or 'default'
connection_settings = settings.DATABASES[connection]
connection_autocommit = ValueUtils.none_or(
connection_settings.get('autocommit'), False)
autocommit = ValueUtils.none_or(autocommit, connection_autocommit)
@galeo
galeo / qs-v1.5.2-test-build.crash
Created February 7, 2017 14:35
Quicksilver v1.5.2 test build crash report
Process: Quicksilver [3942]
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver
Identifier: com.blacktree.Quicksilver
Version: 1.5.2:mine (401D)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Quicksilver [3942]
User ID: 501
Date/Time: 2017-02-07 22:26:40.647 +0800
@galeo
galeo / qs-v1.5.1-spindump.txt
Last active January 12, 2017 14:09
Quicksilver v1.5.1 process spindump 2.
Date/Time: 2017-01-12 22:00:52 +0800
OS Version: Mac OS X 10.12.2 (Build 16C67)
Architecture: x86_64
Report Version: 25
Data Source: Stackshots
Command: Quicksilver
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver
Version: 1.5.1 (401C)
@galeo
galeo / qs-1.5.1-spindump
Created December 29, 2016 11:50
Quicksilver v1.5.1 process Spindump. Check https://github.com/quicksilver/Quicksilver/issues/2299 for details.
This file has been truncated, but you can view the full file.
Date/Time: 2016-12-29 19:35:16 +0800
OS Version: Mac OS X 10.12.2 (Build 16C67)
Architecture: x86_64
Report Version: 25
Data Source: Stackshots
Command: Quicksilver
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver
;;; js-beautify.el -- beautify some js code
(defgroup js-beautify nil
"Use jsbeautify to beautify some js"
:group 'editing)
(defcustom js-beautify-args "--jslint-happy --brace-style=end-expand --keep-array-indentation"
"Arguments to pass to jsbeautify script"
:type '(string)
:group 'js-beautify)
@galeo
galeo / python-reindent.el
Last active December 16, 2015 16:49
Reindent python code in Emacs with the python reindent script by Tim Peters(https://pypi.python.org/pypi/Reindent/0.1.1).
;;; python-reindent.el --- Reindent Python Code
;;
;; Copyright (c) 2013 Moogen Tian
;;
;; Author: Moogen Tian <ibluefocus@NOSPAM.gmail.com>
;; Homepage: http://blog.galeo.me
;; url: https://gist.github.com/galeo/5465488
;; Version: 0.0.2
;; Created: Apr 25 2013
;; Keywords: python, reindent, format