Skip to content

Instantly share code, notes, and snippets.

View thiagoghisi's full-sized avatar
🖊️

Thiago Ghisi thiagoghisi

🖊️
View GitHub Profile
@samrocketman
samrocketman / libimobiledevice_ifuse_Ubuntu.md
Last active June 25, 2026 18:40
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?

@justanr
justanr / commandbus.py
Last active May 24, 2016 04:10
Basic Command Bus example
import inspect
class HandlerNotFound(Exception):
pass
class BasicCommandBus(object):
def execute(self, command):
@justanr
justanr / base_repository.py
Last active May 24, 2016 04:13
Toy Repository
from operator import attrgetter
from hashlib import md5 # because it's fast
class BaseRepository(object):
def find(self, pk):
raise NotImplementedError()
def find_by(self, **keys):
raise NotImplementedError()
@nicolasembleton
nicolasembleton / restart_bluetooth.sh
Last active March 13, 2026 16:50
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@aviflax
aviflax / notes.md
Last active October 3, 2020 22:53
My Notes on “Consumer-Driven Contracts: A Service Evolution Pattern”

My Notes on “Consumer-Driven Contracts: A Service Evolution Pattern”

My notes

  • This article is not exactly cutting-edge — I arrived at similar conclusions years ago
  • Many of the problems are related to XML and XSD and the excessive use of XSD validation that was popular in the SOA community 6–10 years ago

Types of Tests

Before we get back to concrete examples there are a few terms we'll want to define: State Verification, Behavior Verification, Solitary Unit Test, and Sociable Unit Test. These terms have plenty of definitions available on the Internet; unfortunately, many of those definitions differ and some are in direct conflict. This chapter will define those terms for the context of this book.

Strongly Recommended Reference Material

Unit Test

The definition of Unit Test is quite general:

In computer programming, unit testing is a method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures are tested to determine if they are fit for use. [...] A unit could be an entire module, but it is more commonly an individual function or procedure. --Wikipedia

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active September 18, 2026 09:05
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@denji
denji / README.md
Last active June 4, 2026 14:16 — forked from istepanov/gist:3950977
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
@cmilfont
cmilfont / quadro.rb
Created February 20, 2014 12:40
BDD com rspec
require 'spec_helper'
describe Quadro do
describe "#mover", %q{
Como um usuário
Eu quero mover um cartão de um quadro para outro
Para definir o status do cartão
} do