Skip to content

Instantly share code, notes, and snippets.

View dflima's full-sized avatar
📱
developing stuff

Danilo dflima

📱
developing stuff
View GitHub Profile
@dkgndianko
dkgndianko / clone_github_org_repos.sh
Last active May 16, 2023 13:55
Clone all repositories belonging to a given org or user at Github. You must install `gh` command (`brew install gh` under mac) and be authenticated (`gh auth login`).
org=myorg_is_here
gh repo list $org --limit 100 | cut -f 1 | xargs -L1 gh repo clone $1
@dflima
dflima / find_and_copy.sh
Created July 5, 2017 15:55
Encontra todos os arquivos pertencentes ao usuário "d.lima", que tenham sido modificados nos últimos seis dias e copia, mantendo a estrutura de diretórios, para o diretório "/home/d.lima/xavier_files"
find /srv/dev_data/xavier/ -type f -user "d.lima" -mtime -6 -exec cp --parents --target-directory=/home/d.lima/xavier_files/ {} \;
@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?

@jberger
jberger / gist:3976227
Created October 29, 2012 20:12
data from imdb
#!/usr/bin/env perl
use strict;
use warnings;
use v5.10;
use Mojo::DOM;
my $dom = Mojo::DOM->new( <<'HTML' );
<table border="0" cellpadding="2">
<tbody><tr><th class="xxxx">Country</th><th class="xxxx">Date</th></tr>
<snippet>
<content><![CDATA[public function get${1/(.*)/\u$1/}()
{
return \$this->${1:$SELECTION};
}
public function set${1/(.*)/\u$1/}(\$$1)
{
return \$this->$1 = \$$1;
}