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
| grep -Ri 'oldprojectame' * | cut -f1 -d':' | sort | uniq |
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
| // | |
| // UIImage+ImageEffects.m | |
| // AnimationExamples | |
| // | |
| // Created by Timothy Patrick Johnson on 7/3/13. | |
| // Copyright (c) 2013 Meister. All rights reserved. | |
| // | |
| #import "UIImage+ImageEffects.h" |
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
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent" | |
| android:orientation="vertical" | |
| tools:context=".MainActivity"> | |
| <RelativeLayout | |
| android:layout_width="fill_parent" | |
| android:layout_height="wrap_content"> |
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
| rpm -Uvh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm | |
| yum install postgresql93 postgresql93-server postgresql93-contrib postgresql93-devel postgis2_93 postgis2_93-utils | |
| #Configure PostgreSQL | |
| chkconfig postgresql-9.3 on | |
| service postgresql-9.3 initdb | |
| service postgresql-9.3 start | |
| # Create PostGIS template |
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 | |
| # | |
| # A shell script used to setup rules for iptables. Rules gleened from | |
| # various websites. | |
| # | |
| # References: | |
| # http://www.newartisans.com/blog_files/tricks.with.iptables.php | |
| # Wipe the tables clean | |
| iptables -F |
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 | |
| # | |
| # nginx Startup script for nginx | |
| # | |
| # chkconfig: - 85 15 | |
| # processname: nginx | |
| # config: /etc/nginx/nginx.conf | |
| # config: /etc/sysconfig/nginx | |
| # pidfile: /var/run/nginx.pid | |
| # description: nginx is an HTTP and reverse proxy server |
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
| sh -c 'cat /usr/share/dict/words | sed -n $(echo $((`cat /dev/urandom | od -N3 -An -i` % `cat /usr/share/dict/words | wc -l`)))p' |
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
| jQuery.ajax({ | |
| type: 'POST', | |
| url: 'validarCodigoInvitacion', | |
| data: {inputCodigo : '41F8**** tu codigo'}, | |
| dataType: 'json', | |
| success: function(response) { console.log(response) ;}, | |
| error: function(req, err){ console.log(err); } | |
| }); |
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
| NSString *address = @"http://gdata.youtube.com/feeds/api/playlists/PLH6Z1vsFvaeTMmRL8GfC3i_rAwLKOOtNF?v=2"; | |
| NSURL *url = [[NSURL alloc] initWithString:address]; | |
| NSError *error; | |
| NSString *XML = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&error]; | |
| NSData *data = [XML dataUsingEncoding:NSUTF8StringEncoding]; | |
| NSXMLParser *parser = [[NSXMLParser alloc] initWithData:data]; |
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
| # su - postgres | |
| psql testgisdb -f /usr/share/postlbs/routing_core.sql | |
| psql testgisdb -f /usr/share/postlbs/routing_core_wrappers.sql | |
| psql testgisdb -f /usr/share/postlbs/routing_topology.sql | |
| psql testgisdb -f /usr/share/postlbs/routing_tsp.sql | |
| psql testgisdb -f /usr/share/postlbs/routing_tsp_wrappers.sql | |
| psql testgisdb -f /usr/share/postlbs/routing_dd.sql | |
| psql testgisdb -f /usr/share/postlbs/routing_dd_wrappers.sql |