This file contains 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
<?php | |
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php | |
/** | |
* The root directory where the repos live. | |
* | |
* @var string | |
*/ | |
$root_dir = '/your/root/dir/'; |
This file contains 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
_ __ _ __ __ __ | |
| | / /___ _____ __ _____ / | / /__ / /__ ______ _____/ /_______ | |
| | / / __ `/ __ `/ | / / _ \ / |/ / _ \/ __/ | /| / / __ \/ ___/ //_/ ___/ | |
| |/ / /_/ / /_/ /| |/ / __/ / /| / __/ /_ | |/ |/ / /_/ / / / ,< (__ ) | |
|___/\__,_/\__,_/ |___/\___/ /_/ |_/\___/\__/ |__/|__/\____/_/ /_/|_/____/ | |
______ ______ __ __ | |
/_ __/__ ____ _____ ___ / ____/___ / /_ ___ ________ ____ ____/ /___ | |
/ / / _ \/ __ `/ __ `__ \ / / / __ \/ __ \/ _ \/ ___/ _ \/ __ \/ __ /_ / | |
/ / / __/ /_/ / / / / / / / /___/ /_/ / / / / __/ / / __/ / / / /_/ / / /_ |
This file contains 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
[root@freelancer DBD-Oracle-1.68]# perl Makefile.PL | |
Multiple copies of Driver.xst found in: /usr/local/lib64/perl5/auto/DBI/ /usr/lib64/perl5/auto/DBI/ at Makefile.PL line 39 | |
Using DBI 1.63 (for perl 5.010001 on x86_64-linux-thread-multi) installed in /usr/local/lib64/perl5/auto/DBI/ | |
Configuring DBD::Oracle for perl 5.010001 on linux (x86_64-linux-thread-multi) | |
Remember to actually *READ* the README file! Especially if you have any problems. | |
Installing on a linux, Ver#2.6 | |
Using Oracle in /usr/lib/oracle/11.2/client64 |
This file contains 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
AS199318: | |
AS32066:[email protected],[email protected] | |
AS35629: | |
AS56886: | |
AS54419:[email protected] | |
AS53912:[email protected] | |
AS25897:[email protected],[email protected] | |
AS7399:[email protected] | |
AS47603: | |
AS35725: |
This file contains 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 "sinatra/base" | |
require "sinatra/namespace" | |
require "multi_json" | |
require "api/authentication" | |
require "api/error_handling" | |
require "api/pagination" | |
module Api | |
class Base < ::Sinatra::Base |
This file contains 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
wget https://github.com/downloads/github/hubot/hubot-1.1.9.tar.gz | |
tar zxvf hubot-*.tar.gz | |
cd hubot | |
vim Procfile | |
app: bin/hubot -a gtalk -n Hubot | |
vim bin/hubot | |
#npm install | |
#heroku logs will be more silence the error if remove the npm install from bin/hubot | |
git init |
This file contains 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
/* | |
* L.TileLayer is used for standard xyz-numbered tile layers. | |
*/ | |
L.Google = L.Class.extend({ | |
includes: L.Mixin.Events, | |
options: { | |
minZoom: 0, | |
maxZoom: 18, | |
tileSize: 256, |
This file contains 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
ifconfig wlan0 up |
This file contains 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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*/([a-zA-Z0-9_-]+)|([a-zA-Z0-9_-]+))$ ./profile.php?username=$1 [L] |
This file contains 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
<?php | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])) { | |
$ip=$_SERVER['HTTP_CLIENT_IP']; | |
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { | |
$ip=$_SERVER['HTTP_X_FORWARDED_FOR']; | |
} else { | |
$ip=$_SERVER['REMOTE_ADDR']; | |
} | |
?> |