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 | |
$OTS = '/usr/bin/ots'; | |
loadurl(); | |
if(!isset($_REQUEST['format']) || $_REQUEST['format'] =! 'text'){ | |
header('Content-Type: text/html; charset=utf-8'); | |
html_header(); | |
form(); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// ==UserScript== | |
// @name Laptop VIT | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 2.1 | |
// @description enter something useful | |
// @match http://tienda.vit.gob.ve/inicio | |
// @require https://code.jquery.com/jquery-2.1.1.min.js | |
// @copyright 2012+, You | |
// ==/UserScript== | |
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
#!/bin/bash | |
# FreeSWITCH Installation script for CentOS 5.5/5.6 | |
# and Debian based distros (Debian 5.0 , Ubuntu 10.04 and above) | |
# Copyright (c) 2011 Plivo Team. See LICENSE for details. | |
FS_CONF_PATH=https://github.com/plivo/plivoframework/raw/master/freeswitch | |
FS_GIT_REPO=git://git.freeswitch.org/freeswitch.git | |
FS_INSTALLED_PATH=/usr/local/freeswitch |
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
var pixel=document.createElement("img"); | |
pixel.setAttribute('src', 'http://coderanch.com/mooseImages/moosefly.gif'); | |
pixel.setAttribute('alt', 'holabb'); | |
document.getElementById('parawebs').appendChild(pixel); |
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
var express = require('express'), | |
http = require('http'), | |
path = require('path'), | |
child_process = require("child_process"); | |
var app = express(); | |
// Server settings | |
app.set('port', process.env.PORT || 9999); | |
app.use(express.favicon()); |
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
$categories = []; | |
$count = count($it); | |
for ($i = 0; $i < $count ; $i++) { | |
$item = $meli->get("/items/" . $it[$i]); | |
$category = $meli->get("/categories/" . $item['body']->category_id); | |
$cats = []; | |
try { | |
foreach ($category['body']->path_from_root as $value) { | |
$cats[] = $value->id; | |
$categories[$value->id] = ["ml_id" => $value->id, "name" => $value->name]; |
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
#!/bin/bash | |
# This script is used for create virtual hosts on CentOs. | |
# Created by alexnogard from http://alexnogard.com | |
# Improved by mattmezza from http://you.canmakethat.com | |
# Improved for Ubuntu by gerswin from http://gerswin.com | |
# Feel free to modify it | |
# PARAMETERS | |
# | |
# $usr - User |
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
// ==UserScript== | |
// @name Exito Price | |
// @namespace http://tampermonkey.net/ | |
// @version 0.4 | |
// @description bolivares y dolares en exito.com | |
// @author gerswin | |
// @require http://code.jquery.com/jquery-latest.js | |
// @match http://www.exito.com/* | |
// @grant none | |
// ==/UserScript== |
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
from socketIO_client import SocketIO, LoggingNamespace | |
import pygame | |
import urllib | |
import subprocess | |
import glob | |
import os | |
#v5 | |
def play(audio_file_path): | |
subprocess.call(["ffplay", "-nodisp", "-autoexit", audio_file_path]) |
OlderNewer