Skip to content

Instantly share code, notes, and snippets.

View davidino's full-sized avatar

David Funaro davidino

  • AWS
  • Dublin
  • 22:48 (UTC +01:00)
View GitHub Profile
some text to read;
@davidino
davidino / list-shortcuts.md
Last active August 29, 2015 14:18
Tmux Shortcuts

My Shortcutlist

Define the prefix

Prefix = Ctrl-b
@davidino
davidino / bio.md
Last active August 29, 2015 14:21
My Bio

David Funaro is a Software Engineer with more that 10 years of experience and a strong passion in building high maintainable software. He spent the last years coaching developer teams, providing tools, knowledge and method to get the software design always better. Building a team, He believe in people and he think that the right ones are those that has strong passion for that work. He continuously improve his knowledge getting updated, reading books/blogs and play with the new available tools. Over the years he has delivered software for companies such as Eni, Ferrari, Nissan, Samsung. Since he believes that communication is the most complex part to manage during the software development, he really trust on the value that the test methodologies like TDD and BDD are be able to provide. When he is not working you can find him riding some board (sea/snow).

short

David Funaro is a Software Engineer with more that 10 year

@davidino
davidino / docker.md
Last active August 29, 2015 14:23
ssh command forwarding

In that way you can expose the docker service outside from the Virtual machine.

# /lib/systemd/system/docker.service
ExecStart=/usr/bin/docker -d -H tcp://0.0.0.0:2375 -H fd://

then

systemctl daemon-reload && sudo service docker restart
@davidino
davidino / vm.sh
Last active August 29, 2015 14:25 — forked from unlucio/vm.sh
simple vm management script
#!/bin/sh
if [ -z "$vmFile" ]
then
echo "please set your 'vmFile' environment variable to point to your vm's .vmx file"
exit 1
fi
case "$1" in
start)
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
if ([tabBarController.viewControllers objectAtIndex:1] == viewController)
{
UIViewController *articles = [[ListViewController alloc] initWithStyle:UITableViewStylePlain andArticles:[self.appDelegate getPreferredArticles]];
[articles setTitle:@"Preferiti"];
// Pass the selected object to the new view controller.
[viewController setTitle:@"prova"];
[viewController.navigationController pushViewController:articles animated:YES];
[articles release];
@davidino
davidino / getIdVideo.php
Created May 5, 2011 14:10
Youtube Widget & Validator for Symfony
<?php
$urls = array(
'/http:\/\/www.youtube.com\/watch\?v=([a-zA-Z0-9_-]+)([%&=#a-zA-Z0-9_-])*/',
'/http:\/\/www.youtube.com\/watch#\!v=([a-zA-Z0-9_-]+)([%&=#a-zA-Z0-9_-])*/',
'/http:\/\/youtu.be\/([a-zA-Z0-9_-]+)/',
);
$youtube_video_id = preg_replace($urls, '$1', $videoUrl);
@davidino
davidino / annotation.php
Created May 23, 2011 09:32
how to use doctrine annotations
<?php
//http://jwage.com/2010/08/02/doctrine-annotations-library/
//http://www.doctrine-project.org/projects/common/2.0/docs/reference/annotations/en
namespace Orient;
require_once 'lib/Doctrine/Common/ClassLoader.php';
use Doctrine\Common\ClassLoader;
@davidino
davidino / result.json
Created May 29, 2011 10:45
some result
{ "schema": {
"id": 16,
"name": "GraphMotocycle",
"properties":{
"inEdges":{
"id": 1,
"name": "inEdges",
"type": "LINKSET",
"mandatory": false,
"notNull": false,
tabBarController = [[UITabBarController alloc] init];
[tabBarController setDelegate:self];
//home
IndigeniWebViewController *home = [[IndigeniWebViewController alloc] initWithNibName:@"IndigeniWebViewController"
bundle:nil
withUrl:[NSString stringWithFormat:@"%@/home%@",urlIdg,coordinate]];
idcontroller = home;