Quantcast
Channel: EmotiCODE - Snippets and Source Code Search Engine
Browsing all 30 articles
Browse latest View live

SQL - SQL GROUP IP ADDRESSES BY NET RANGE /24

SELECT inet_ntoa(min(ip_address)), inet_ntoa(max(ip_address)),count(*) FROM ip_list GROUP BY ip_address >> 8 ...

View Article



Bash - QUERY A MYSQL DB AND SEND RESULTS AS CSV FILE VIA EMAIL

1. connect to db 2. connect to smtp server 3. execute the query 4. create a csv file 5. send it (to,cc,bcc)

View Article

Python - COPY MYSQL ROWS FROM A DATABASE TO ANOTHER

1. connect to db1 2. execute query to extract everything we need 3. connect to db2 4. copy data collected at point 2 4. close connections

View Article

SQL - SELECT DATE AND HOUR YYY-MM-DD HH

select substring('2013-04-02 10:12:53',1,13 ...

View Article

SQL - SELECT DATE AND HOUR YYY-MM-DD HH UNIX_TIMESTAMP

SELECT substring(from_unixtime(saved_time),1,13 ...

View Article


Python - Extract data from different MySql databases and write results into...

# set credentilas # set databases dictionary # set sql query # for cycle to extract data from all databases # wirte results in separated csv files NOTE this script includes also column names :D

View Article

stripTags

Remove tag form a String

View Article

wordWrap

Function: wordWrap Returns an string with the extra characters/words "broken". maxLength maximum amount of characters per line breakWtih string that will be added whenever it's needed to break the line...

View Article


Clear Array

Clear an Array

View Article


cloneArray

Clone an Array

View Article

find DOM selector

DOM selector

View Article

vanilla tooltip

A vanilla tooltip

View Article

SQL GROUP IP ADDRESSES BY NET RANGE /24

SQL GROUP IP ADDRESSES BY NET RANGE /24

View Article


QUERY A MYSQL DB AND SEND RESULTS AS CSV FILE VIA EMAIL

connect to db connect to smtp server execute the query create a csv file send it (to,cc,bcc)

View Article

COPY MYSQL ROWS FROM A DATABASE TO ANOTHER

connect to db1 execute query to extract everything we need connect to db2 copy data collected at point 2 close connections

View Article


SELECT DATE AND HOUR YYY-MM-DD HH

SELECT DATE AND HOUR YYY-MM-DD HH

View Article

SELECT DATE AND HOUR YYY-MM-DD HH UNIX_TIMESTAMP

SELECT DATE AND HOUR YYY-MM-DD HH UNIX_TIMESTAMP

View Article


Extract data from different MySql databases and write results into separated...

set credentilas set databases dictionary set sql query for cycle to extract data from all databases wirte results in separated csv files NOTE this script includes also column names :D

View Article

Simple use of PDO

Simple use of PDO

View Article

read id3 v1 information from mp3

read id3 v1 information from mp3

View Article
Browsing all 30 articles
Browse latest View live




Latest Images