Skip to content

Instantly share code, notes, and snippets.

View 64lines's full-sized avatar

Julian Alexander Murillo 64lines

  • Huge Inc.
  • Medellin - Colombia
View GitHub Profile
@64lines
64lines / Send_mail.php
Last active September 10, 2015 19:18
Send email with PHP
<?php
$mensaje = "Línea 1\r\nLínea 2\r\nLínea 3";
$mensaje = wordwrap($mensaje, 70, "\r\n");
mail('[email protected]', 'Mi título', $mensaje);
?>
@64lines
64lines / videoplayer.html
Created May 12, 2014 17:28
Create a video with Youtube Player API
<div id="player"></div>
<script src="http://www.youtube.com/player_api"></script>
<script>
// create youtube player
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('player', {
@64lines
64lines / google_tricks.txt
Last active June 18, 2024 20:49
Master Google Tricks
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www" domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@64lines
64lines / vimrc
Last active February 3, 2017 13:21
VIM Configuration file
syntax on
set nu " Enable number lines"
set showcmd
set incsearch
set hlsearch
set autoindent
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
@64lines
64lines / change_schema
Last active August 5, 2016 05:18
Change database schema on Django
from django.db import connection
connection.set_schema("other_schema")
-- Manual para 200000 inserts
BEGIN
FOR i IN 1..200000 LOOP
INSERT INTO CIUDAD VALUES(i, 'Ciudad ' || i);
COMMIT;
END LOOP;
END;
-- Bulk con 20000 inserts (Cargar en memoria y luego cargar en la tabla)
DECLARE
-- Activar el DBMS_OUTUPUT
SET SERVEROUTPUT ON
Begin
Dbms_Output.Put_Line(Systimestamp);
End;
-- Creacion de tablas
CREATE TABLE TBL_EXAMPLE_CHAINED (
Columna_1 number(15),
CREATE TABLE LLAMADAS_PARTICIONADA(
ID NUMBER(8),
FECHA_INICIO DATE,
DURACION NUMBER(8)
)
PARTITION BY RANGE("FECHA_INICIO")
(
PARTITION llamadas_enero2014 VALUES LESS THAN (TO_DATE('02/01/2014', 'MM/DD/YYYY')) TABLESPACE USERS,
PARTITION llamadas_febrero2014 VALUES LESS THAN (TO_DATE('03/01/2014', 'MM/DD/YYYY')) TABLESPACE USERS,
PARTITION llamadas_marzo2014 VALUES LESS THAN (TO_DATE('04/01/2014', 'MM/DD/YYYY')) TABLESPACE USERS,
@64lines
64lines / Clustered Tables.sql
Last active August 5, 2016 05:20
Clustered tables
-- Creating clusters
CREATE CLUSTER CLS_Persona_Ciudad (CIUDAD_ID NUMBER(20));
CREATE TABLE CIUDAD_REG
(
CIUDAD_ID NUMBER(20) NOT NULL PRIMARY KEY,
NOMBRE VARCHAR2(20 BYTE)
) CLUSTER CLS_Persona_Ciudad (CIUDAD_ID);
@64lines
64lines / IncludeLibraries.js
Last active August 5, 2016 05:15
[JAVASCRIPT] - Including Javascript Libraries to HTML document using JavaScript
var s = document.createElement("script");
s.src="https://code.jquery.com/jquery-1.12.2.min.js";
document.body.appendChild(s);
void(0);