Skip to content

Instantly share code, notes, and snippets.

View JonathanPorta's full-sized avatar
🎯
Focusing

Jonathan Porta JonathanPorta

🎯
Focusing
View GitHub Profile
@JonathanPorta
JonathanPorta / UseXboxOneControlleronFedora.md
Created December 21, 2019 18:47 — forked from ddrpa/UseXboxOneControlleronFedora.md
Use Xbox One Controller on Fedora
dnf search kernel-modules-extra
@JonathanPorta
JonathanPorta / UseXboxOneControlleronFedora.md
Created December 21, 2019 18:47 — forked from ddrpa/UseXboxOneControlleronFedora.md
Use Xbox One Controller on Fedora
dnf search kernel-modules-extra
@JonathanPorta
JonathanPorta / Storing_in_a_repo.txt
Last active November 19, 2017 14:09 — forked from jcward/Readme.txt
Generating iOS P12 / certs without Mac OSX Keychain (on linux, windows, etc)
If you like to GPG your certs and store them in your repo:
tar -cf ios_distribution.tar ios_distribution.* *.mobileprovision Apple*
gpg -c ios_distribution.tar
Decrypt and untar using:
gpg --decrypt ios_distribution.tar | tar -x
Here's a .gitignore that ignores everything in the directory (aka, certs and
@JonathanPorta
JonathanPorta / golang-json-marshall
Created October 5, 2015 17:25 — forked from kendellfab/golang-json-marshall
Handling custom Json marshalling in golang.
type Whatever struct {
someField int
}
func (w Whatever) MarshalJSON() ([]byte, error) {
return json.Marshal(struct{
SomeField int `json:"some_field"`
}{
SomeField: w.someField,
})
#!/bin/sh
# 2012 - Ben Clayton (benvium). Calvium Ltd
# Found at https://gist.github.com/2568707
#
# This script installs a .mobileprovision file without using Xcode. Unlike Xcode, it'll
# work over SSH.
#
# Requires Mac OS X (I'm using 10.7 and Xcode 4.3.2)
#