Skip to content

Instantly share code, notes, and snippets.

View lucolivier-dumaisblais's full-sized avatar

Luc-Olivier Dumais-Blais lucolivier-dumaisblais

View GitHub Profile
@Sakurina
Sakurina / oo-plsql.sql
Created March 30, 2011 20:05
object-oriented PL/SQL for situations where PL/SQL's own object system isn't accessible (Forms)
set serveroutput on
-- create a table to test against
CREATE TABLE objects(
id NUMBER,
text VARCHAR2(255)
);
INSERT INTO objects VALUES(1, 'a');
INSERT INTO objects VALUES(2, 'b');
@goshacmd
goshacmd / fix_sys_rb.sh
Created June 12, 2013 07:41
OS X [REDACTED] Ruby 2.0 headers fix.
sys_rb_usr=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr
sdk_rb_usr=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr
sudo cp -r $sdk_rb_usr/include $sys_rb_usr/include
@phoenix3200
phoenix3200 / gist:8200068
Created December 31, 2013 17:40
Libstatusbar 7.0 API details. Because I'm apparently unable to update what's on Github right now.
Libstatusbar: pwning the statusbar for you.
Libstatusbar is chiefly a compatibility library for 3.x-like statusbar icon support under 4.x++, but allows for a more advanced API for custom time strings and icon swapping.
All icons should be placed in either:
3.x style, does not support retina icons:
Silver statusbar: /System/Library/CoreServices/SpringBoard/Default_<name>.png
Black statusbar: /System/Library/CoreServices/SpringBoard/FSO_<name>.png
@0xmachos
0xmachos / Keychain.md
Last active March 2, 2025 15:18
Useful resources for working with iOS/ macOS Keychain API

Keychain API

kSecAttrAccessible Mapping

Protection Domain (pdmn) Keychain Accessibility Values
ck kSecAttrAccessibleAfterFirstUnlock
cku kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
dk kSecAttrAccessibleAlways
akpu kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
@ole
ole / swift-has-feature.sh
Last active February 27, 2025 20:01
swift-list-feature: List Swift compiler upcoming and experimental feature flags. ★ swift-has-feature: Check if a given compiler knows a specific feature flag, and whether it's an upcoming or experimental flag.
#!/bin/zsh
# Test if the Swift compiler knows about a particular language feature.
#
# Usage:
#
# swift-has-feature [--swift SWIFT_PATH] [--language-version LANGUAGE_VERSION] FEATURE
#
# The feature should be an upcoming or experimental language feature,
# such as `"StrictConcurrency"` or `"ExistentialAny"`.