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
/** | |
* compile gcc `pkg-config --cflags gtk+-3.0` -o pluma-uri-decode pluma-uri-decode.c `pkg-config --libs gtk+-3.0` | |
* execute: | |
* ./pluma-uri-decode file:///tmp/pluma/pluma-1.8.1+dfsg1/pluma/pluma-window.c | |
* | |
* running as user will enter at mount part and not show uri, only a mount_name | |
* running as root will not enter at mount | |
*/ | |
#include <gtk/gtk.h> |
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
__module_name__ = 'Saluda cuando entras' | |
__module_version__ = '0.1' | |
__module_description__ = 'Saluda en un canal cuando entras' | |
__module_author__ = 'nterprais@gmail.com' | |
import xchat | |
c = '\x0312' | |
def on_join(word, word_eol, userdata): | |
#Add the channels you want to greet people in here, inbetween the ' marks. Example: channels = ['#Jake','#Example'] |
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
$.ajax('/users/new', {type:'OPTIONS'} ).done( function( data, textStatus) { console.log('->', data ); } ); |
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
# gnumeric provides ssconvert tool | |
# apt-get install gnumeric | |
ssconvert -S my_xls_file.xls "%s".csv |
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 | |
/** | |
* two ways to handle empty arrays | |
* */ | |
ini_set('error_reporting', E_ALL); | |
error_reporting(E_ALL); | |
$foo = array('Establishment' => array()); |
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
$response = $this->call( | |
'POST', | |
$path = '/api/foo, | |
$params, | |
[], | |
['file' => $uploadedFile], // instance of new \Symfony\Component\HttpFoundation\File\UploadedFile | |
$auth | |
); | |
call($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $headers = null) |
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 | |
# file: .git/hooks/pre-commit | |
# | |
# phpcs needed | |
# apt-get install php-codesniffer | |
while read -r file; | |
do | |
file=${file:2} |
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
$callers=debug_backtrace(); | |
foreach($callers as $call) { | |
$line = empty($call['line']) ? false : $call['line']; | |
$file = empty($call['file']) ? false : $call['file']; | |
$class = empty($call['class']) ? false : $call['class']; | |
$function = empty($call['function']) ? false : $call['function']; | |
echo sprintf("%s: %s %s->%s\n", $line, $file, $class, $function ); | |
} |
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
if (! function_exists('dd')) { | |
function dd($object, $end = true) | |
{ | |
(new Dumper)->dump($object); | |
$callers=debug_backtrace(); | |
foreach($callers as $call) { |
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
/** | |
* /vendor/laravel/framework/src/Illuminate/Support/helpers.php | |
*/ | |
if (! function_exists('dd')) { | |
/** | |
* Dump the passed variables and end the script. | |
* | |
* @param mixed | |
* @return void |
OlderNewer