This is a terse document covering the anatomy of a package built for the pacman package manager.
The following example commands can mostly run verbatim to manually create a
// http://opensource.apple.com/source/CF/CF-1153.18/CFInternal.h | |
// Returns a generic dispatch queue for when you want to just throw some work | |
// into the concurrent pile to execute, and don't care about specifics except | |
// to match the QOS of the main thread. | |
CF_INLINE dispatch_queue_t __CFDispatchQueueGetGenericMatchingMain(void) { | |
return dispatch_get_global_queue(qos_class_main(), DISPATCH_QUEUE_OVERCOMMIT); | |
} | |
// Returns a generic dispatch queue for when you want to just throw some work |
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
# Heavily cribbed from the equivalent NixOS login script. | |
# This should work better with multi-user nix setups. | |
export NIXPKGS_CONFIG="/etc/nix/nixpkgs-config.nix" | |
export NIX_OTHER_STORES="/run/nix/remote-stores/*/nix" | |
export NIX_USER_PROFILE_DIR="/nix/var/nix/profiles/per-user/$USER" | |
export NIX_PROFILES="/nix/var/nix/profiles/default $HOME/.nix-profile" | |
export NIX_PATH="/nix/var/nix/profiles/per-user/root/channels" | |
export PATH="$HOME/.nix-profile/bin:$HOME/.nix-profile/sbin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:$PATH" |
--- strongswan-5.2.1/debian/rules 2014-10-27 14:36:53.659872404 +0300 | |
+++ strongswan-5.2.1/debian/rules 2014-10-27 15:10:07.003054721 +0300 | |
@@ -15,7 +15,7 @@ | |
--enable-ha \ | |
--enable-led --enable-gcrypt \ | |
--enable-test-vectors \ | |
- --enable-xauth-eap --enable-xauth-pam \ | |
+ --enable-xauth-eap --enable-xauth-pam --enable-xauth-noauth \ | |
--enable-cmd \ | |
--enable-certexpire \ |
extension Array { | |
func first() -> Element? { | |
if isEmpty { | |
return nil | |
} | |
return self[0] | |
} | |
func last() -> Element? { |
{ | |
"color_scheme": "Packages/Dayle Rees Color Schemes/sublime/peel.tmTheme", | |
"font_face": "Inconsolata", | |
"font_size": 16, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"line_padding_bottom": 4, | |
"line_padding_top": 4, |
function unquarantine() | |
{ | |
for file in $@ | |
do | |
xattr -d com.apple.quarantine $file | |
if [ -d "${file}" ] ; then | |
while IFS= read -r -d '' subfile; do | |
if [ "$file" != "$subfile" ]; then | |
unquarantine $subfile; |
@interface UIView (MPAdditions) | |
@end | |
@implementation UIView (MPAdditions) | |
- (id)debugQuickLookObject { | |
if (self.bounds.size.width < 0.0f || self.bounds.size.height < 0.0f) { | |
return nil; | |
} | |
static OSStatus | |
SSLVerifySignedServerKeyExchange(SSLContext *ctx, bool isRsa, SSLBuffer signedParams, | |
uint8_t *signature, UInt16 signatureLen) | |
{ | |
OSStatus err; | |
SSLBuffer hashOut, hashCtx, clientRandom, serverRandom; | |
uint8_t hashes[SSL_SHA1_DIGEST_LEN + SSL_MD5_DIGEST_LEN]; | |
SSLBuffer signedHashes; | |
uint8_t *dataToSign; | |
size_t dataToSignLen; |