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 sys | |
| import time | |
| import csv | |
| class AddressesFinder: | |
| def __init__(self, addresses): | |
| self.addresses = addresses | |
| def call(self): | |
| output = [] |
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
| require 'csv' | |
| require 'json' | |
| require 'uri' | |
| require 'ostruct' | |
| require 'httparty' | |
| require 'progressbar' | |
| require 'people' | |
| class OutputCSV | |
| attr_reader :filename |
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
| for file in *.txt; do | |
| iconv -f ISO-8859-1 -t utf-8 "$file" > "${file%.txt}.utf8.txt" | |
| done |
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
| server { | |
| listen 80; | |
| server_name *.mycoolblog.com mycoolblog.com www.mycoolblog.com; | |
| root /home/malev/blog/current/; | |
| try_files $uri $uri/ /index.php; | |
| location / { | |
| index index.html index.htm index.php; | |
| } |
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 | |
| PHP_SCRIPT=/usr/bin/php5-fcgi | |
| RETVAL=0 | |
| case "$1" in | |
| start) | |
| echo "Starting fastcgi" | |
| $PHP_SCRIPT | |
| RETVAL=$? | |
| ;; | |
| stop) |
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
| server { | |
| listen 80; | |
| server_name example.com www.example.com; | |
| root /home/malev/sites/infofund/current/public; | |
| access_log /home/malev/sites/infofund/current/log/infofund.access.log; | |
| error_log /home/malev/sites/infofund/current/log/infofund.error.log; | |
| rewrite_log on; | |
| passenger_enabled on; | |
| } |
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
| <script type='text/html' id='template'> | |
| <div class='description'>{{#truncate}}{{item.description}}{{/truncate}}</div> | |
| </script> |
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
| var helpers = { | |
| truncate: function (str) { | |
| if (str.length > 400) { | |
| return str.slice(0, 400) + "..."; | |
| } else { | |
| return str; | |
| } | |
| } | |
| } | |
| var template = "<div class='description'>{{#truncate}}{{item.description}}{{/truncate}}</div>"; |
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
| var template = " | |
| <h1>{{header}}</h1> | |
| {{#bug}} | |
| {{/bug}} | |
| {{#items}} | |
| {{#first}} | |
| <li><strong>{{name}}\</strong></li> | |
| {{/first}} | |
| {{#link}} | |
| <li><a href="{{url}}">{{name}}</a></li> |
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
| server { | |
| listen 80; | |
| server_name midominio.com www.midominio.com mialias.com www.mialias.com; | |
| root /opt/nginx/html/infofund/public; | |
| access_log /opt/nginx/html/infofund/log/infofund.access.log; | |
| error_log /opt/nginx/html/infofund/log/infofund.error.log; | |
| rewrite_log on; |