Skip to content

Instantly share code, notes, and snippets.

View samrocketman's full-sized avatar

Sam Gleske samrocketman

View GitHub Profile
@samrocketman
samrocketman / libimobiledevice_ifuse_Ubuntu.md
Last active January 11, 2024 22:47
On Ubuntu 16.04, since iOS 10 update, libimobiledevice can't connect to my iPhone. This is my attempt to document a fix.

Why this document?

I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).

The solution is to compile libimobiledevice and ifuse from source.

Audience

Who is this guide intended for?

//http://chrisbroadfoot.id.au/2008/08/06/groovy-threads/
//http://docs.groovy-lang.org/latest/html/gapi/groovy/transform/Synchronized.html
//https://github.com/jenkinsci/jenkins-scripts/blob/master/scriptler/findOfflineSlaves.groovy
import java.util.concurrent.locks.ReentrantLock
ReentrantLock.metaClass.withLock = {
lock()
try {
it()
@samrocketman
samrocketman / SENA_Linux.md
Last active February 22, 2023 14:41
Connecting my SENA device via USB on Linux to update the firmware

Update SENA from Linux

In May, 2016, I completely switched all of my home computing environments to Linux. As a result, I've had to find workarounds for things which require Windows. This article outlines my first attempt to update my SENA 10S helmet communicator from KUbuntu 16.04 Linux.

What works and what doesn't

If you follow this guide, I'll state up front what success you'll expect.

  • Installing the Sena Device Manager works.
  • Connecting SENA 10S via USB works.
@samrocketman
samrocketman / .gitignore
Last active February 13, 2023 17:15
A gitignore for ignoring common binary files
#common document extensions (case insensitive)
**.[pP][dD][fF]
**.[dD][oO][cC]
**.[dD][oO][tT]
**.[dD][oO][cC][xX]
**.[dD][oO][cC][mM]
**.[dD][oO][tT][xX]
**.[dD][oO][tT][mM]
**.[dD][oO][cC][bB]
**.[pP][pP][tT][xX]
@samrocketman
samrocketman / compile_git.md
Last active October 24, 2022 06:03
Compiling git

The version of git that comes with RHEL6 is very old. I'll outline steps for compiling the latest git version on RHEL6. Working from /usr/local/src.

Following instructions for Git Pro book Getting Started Installing Git.

Prerequisites

yum install gcc curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker

Optional man page prereqs.

@samrocketman
samrocketman / README-endless-sky-test-builds.md
Last active March 27, 2022 21:12
How to build the pirates campaign

Background Information

What is Docker?

Docker provides portable development environments (among many other uses but for Endless Sky this is a key feature). It enables you to bring all of your dependencies to compile endless sky into a docker container so that you do not need them to be installed on your main operating system.

Install Docker Engine for Linux

Follow these instructions https://docs.docker.com/engine/install/

@samrocketman
samrocketman / docker-compose.yml
Last active January 10, 2022 19:26
Vault UI + HA Vault + HA Consul + dnsmasq + service discovery for all the things
version: '2.2'
#define internal docker networks for container connectivity
networks:
internal:
driver: bridge
ipam:
driver: default
config:

Keybase proof

I hereby claim:

  • I am samrocketman on github.
  • I am samrocketman (https://keybase.io/samrocketman) on keybase.
  • I have a public key whose fingerprint is 8D8B F0E2 42D8 A068 572E BF3C E8F7 3234 7257 E65F

To claim this, I am signing this object:

@samrocketman
samrocketman / ubuntu_1204_import_ca.md
Last active October 14, 2021 00:36
Adding certificate authorities to Ubuntu 12.04

Overview

If you're able to visit a website and it successfully validates but you're not able to curl the website (i.e. you get certificate validation errors) then it is likely because your root certificate, or intermediate certificate, or both are not trusted in your system. Ubuntu provides an easy process for updating the root certificate stores using the update-ca-certificates command and the /etc/ca-certificates.conf for configuration.

Add CA and Intermediates to Ubuntu

Certificates should be installed under /usr/share/ca-certificates. You should create a directory for your org to place all certs and intermediates.

mkdir /usr/share/ca-certificates/my.org/
import groovy.json.JsonSlurper
// criteria
String title_contains = 'DevOps' // required
String salary_currency = 'USD' // or null; example: CAD, CHF, DKK, EUR, GBP, HKD, INR, NZD, PHP, USD
String company_location = 'US' // or null; example: AT, BG, CA, CH, CR, DE, DK, ES, FR, GB, IL, IN, IT, LT, NL, NZ, PH, PT, RO, RU, US
Boolean display_usd = true // false for native currency
List salaries = new JsonSlurper().parse(new File('/home/sam/Downloads/salaries.json'))