Skip to content

Instantly share code, notes, and snippets.

@YesThatAllen
YesThatAllen / pkgresign.c
Created June 7, 2021 20:04 — forked from kurash/pkgresign.c
Add RSA signature to OSX packages (pkg)
/*
(c) 2012-2016 Sassafras Software Inc.
Provided "as is" under the terms of the MIT license, no warranty, use at your own risk
*/
/*
to build:
cc pkgresign.c -framework Security -framework CoreFoundation -lxar -o pkgresign
*/
8A cookie associated with a cross-site resource at <URL> was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <URL> and <URL>.
config.js.src.js:73 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
b.<computed>.d.<computed> @ config.js.src.js:114
(anonymous) @ config.js.src.js:20
m @ config.js.src.js:20
(anonymous) @ config.js.src.js:125
execCb @ require.js.src.js:1695
check @ require.js.src.js:851
(anonymous) @ require.js.src.js:1138
(anonymous) @ require.js.src.js:113
@YesThatAllen
YesThatAllen / Makefile
Created July 12, 2019 20:02
Mac app notarization from the command line
.PHONY: notarize
SIGNING_CERTIFICATE := $(shell security find-certificate -Z -c "Developer ID Application:" | grep "SHA-1" | awk 'NF { print $$NF }')
TEAM_ID := $(shell security find-certificate -c "Developer ID Application:" | grep "alis" | awk 'NF { print $$NF }' | tr -d \(\)\")
EXPORT_PATH := $(XCS_ARCHIVE)/Submissions
BUNDLE_APP := $(EXPORT_PATH)/NewMacApp.app
BUNDLE_ZIP := $(EXPORT_PATH)/NewMacApp.zip
UPLOAD_INFO_PLIST := $(EXPORT_PATH)/UploadInfo.plist
REQUEST_INFO_PLIST := $(EXPORT_PATH)/RequestInfo.plist
AUDIT_INFO_JSON := $(EXPORT_PATH)/AuditInfo.json

Keybase proof

I hereby claim:

  • I am yesthatallen on github.
  • I am yesthatallen (https://keybase.io/yesthatallen) on keybase.
  • I have a public key ASAx01BNMMhtbA5-V6ySeFpX6rTjX9rpa6G4X6X01D9PZgo

To claim this, I am signing this object:

@YesThatAllen
YesThatAllen / common_functions.rb
Last active July 8, 2018 22:16 — forked from srpomeroy/common_functions.rb
Commonly used functions in RightScale CATs In order to create a URL link to a server, you need to grab what is called the `legacy_id`. This property is currently only available in API 1.6: http://reference.rightscale.com/api1.6/index.html#/1.6/controller/V1_6-Definitions-Instances Check out the `get_server_access_link` definition in the followin…
# Required prolog
name 'LIB - Common functions'
rs_ca_ver 20160622
short_description "Common functions"
package "common/functions"
# Checks if the account supports the selected cloud
define checkCloudSupport($cloud_name, $param_location) do
# Gather up the list of clouds supported in this account.
@YesThatAllen
YesThatAllen / github_issues_to_csv.py
Created May 4, 2018 03:43 — forked from patrickfuller/github_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports issues from a list of repositories to individual csv files.
Uses basic authentication (Github username + password) to retrieve issues
from a repository that username has access to. Supports Github API v3.
Forked from: unbracketed/export_repo_issues_to_csv.py
"""
import argparse
import csv
from getpass import getpass
import requests
@YesThatAllen
YesThatAllen / git-recover-branch.md
Created December 16, 2016 02:11 — forked from jbgo/git-recover-branch.md
How to recover a git branch you accidentally deleted

UPDATE: A better way! (August 2015)

As pointed out by @johntyree in the comments, using git reflog is easier and more reliable. Thanks for the suggestion!

 $ git reflog
1ed7510 HEAD@{1}: checkout: moving from develop to 1ed7510
3970d09 HEAD@{2}: checkout: moving from b-fix-build to develop
1ed7510 HEAD@{3}: commit: got everything working the way I want
70b3696 HEAD@{4}: commit: upgrade rails, do some refactoring
@YesThatAllen
YesThatAllen / autodmg.log
Created October 16, 2016 18:27
AutoDMG Debug log with kernel's disk i/o errors added inline
2016-10-16 11:52:42 Info: AutoDMG v1.6 build 452
2016-10-16 11:52:42 Info: Mac OS X 10.12 16A323
2016-10-16 11:52:42 Info: CPython 2.7.10 (GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34))
2016-10-16 11:52:42 Info: PyObjC 2.5.1
2016-10-16 11:52:42 Info: Loading update profiles with PublicationDate 2016-10-15 15:21:22 +0000
2016-10-16 11:52:42 Debug: (IEDUpdateController:185) profilesUpdated
2016-10-16 11:52:42 Info: Pruning cache
2016-10-16 11:52:42 Info: Found iTunes12.5.1(c94f238).dmg -> c94f2386e780fdef391d2636c9bd7b692f9ceeca
2016-10-16 11:52:42 Debug: (IEDController:46) awakeFromNib
2016-10-16 11:52:42 Debug: (IEDSocketListener:34) Creating socket at /tmp/se.gu.it.IEDSocketListener.6058c1072d10632d
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
#
# ************************************************************
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@YesThatAllen
YesThatAllen / gist:fde1a2cef616a8741bdc
Created December 2, 2014 06:06
nsurlstoraged errors
12/1/14 11:06:12.402 PM nsurlstoraged[320]: realpath() returned NULL for /var/root/Library/Caches/jamf
12/1/14 11:06:12.402 PM nsurlstoraged[320]: The read-connection to the DB=/var/root/Library/Caches/jamf/Cache.db is NOT valid. Unable to determine schema version.
12/1/14 11:06:12.403 PM nsurlstoraged[320]: realpath() returned NULL for /var/root/Library/Caches/jamf
12/1/14 11:06:12.403 PM nsurlstoraged[320]: realpath() returned NULL for /var/root/Library/Caches/jamf
12/1/14 11:06:12.403 PM nsurlstoraged[320]: ERROR: unable to determine file-system usage for FS-backed cache at /var/root/Library/Caches/jamf/fsCachedData. Errno=13
12/1/14 11:24:07.714 PM nsurlstoraged[320]: realpath() returned NULL for /var/root/Library/Caches/jamf
12/1/14 11:24:07.714 PM nsurlstoraged[320]: The read-connection to the DB=/var/root/Library/Caches/jamf/Cache.db is NOT valid. Unable to determine schema version.
12/1/14 11:24:07.714 PM nsurlstoraged[320]: realpath() returned NULL for /var/root/Library/Caches/jamf
12/1/14 11:24:07