This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import PromisedFuture | |
class APIClient { | |
var http:HttpProtocol = HttpAlamofire() | |
func getNews() -> Future<[ListNewsUseCase.ListNews.SuccessResponse.NewModel]> { | |
return self.http.getArray(endpoint: "news") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 mailer.mislistasdecorreo.com | |
127.0.0.1 localhost localhost.localdomain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto lo | |
iface lo inet loopback | |
pre-up iptables-restore < /etc/iptables.up.rules | |
auto eth0 | |
iface eth0 inet dhcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*filter | |
# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0 | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -i ! lo -d 127.0.0.0/8 -j REJECT | |
# Accepts all established inbound connections | |
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
# Allows all outbound traffic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# source directory containing files to transfer | |
LBDIR=/backups/daily.0 | |
# destination directory | |
[email protected]:remotedirectory | |
######################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install PHP Client with mysql and imap support | |
# | |
# Author : Carlos Jacobs | |
# Date : 09 dic 2010 | |
# | |
sudo aptitude install php5-cli mysql-client php5-mysql php5-imap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install Postgresql9 From Source On Ubuntu 10.04 (Slicehost) | |
# Execute as root | |
# | |
# Author : Carlos Jacobs | |
# Date : 27 Sep 2010 | |
sudo aptitude install libreadline6 libreadline6-dev | |
sudo aptitude install zlib1g zlib1g-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Create digital certificates for a virtual domain on Ubuntu 10.04 (Slicehost) | |
# Execute as root | |
# | |
# Author : Carlos Jacobs | |
# Date : 11 Aug 2010 | |
echo Please, enter domain | |
read DOMAIN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Create a virtual domain on Nginx Ubuntu 10.04 (Slicehost) | |
# Execute as root | |
# | |
# Author : Carlos Jacobs | |
# Date : 16 Jul 2010 | |
echo Please, enter domain | |
read DOMAIN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install Nginx, PHP and fcgi on Ubuntu 10.04 (Slicehost). | |
# Execute as root | |
# | |
# Author : Carlos Jacobs | |
# Date : 16 Jul 2010 | |
# | |
# install nginx, php5 , fastcgi |
NewerOlder