Skip to content

Instantly share code, notes, and snippets.

View drolean's full-sized avatar
🎯
Focusing

Leandro Ross drolean

🎯
Focusing
View GitHub Profile
<?php
$blacklist = array(
"220.181.108.93", "78.39.133.5", "220.165.8.137", "220.181.108.171", "69.171.245.113", "220.181.108.176",
"123.125.71.71", "170.251.174.113", "220.181.108.82", "123.125.71.73", "220.181.51.109", "173.252.108.226",
"71.202.21.139", "198.92.33.151", "204.106.202.64", "173.252.114.232", "173.252.80.198", "66.220.149.11",
"71.202.16.134", "173.252.120.238", "173.252.99.217", "12.218.86.204", "76.21.113.231", "69.63.190.52",
"69.63.185.47", "67.180.20.138", "128.22.1.119", "128.21.1.119", "66.220.153.15", "69.63.176.38",
"66.220.158.20", "69.63.186.48", "128.28.62.180", "69.63.179.41", "66.220.159.21", "69.63.181.43",
"67.169.84.202", "128.22.36.154", "128.21.42.160", "128.21.22.140", "66.220.156.18", "128.53.22.140",
"128.18.0.118", "173.252.107.225", "173.252.113.231", "199.2.25.143", "173.252.105.223", "66.220.157.19",
Event::listen('laravel.query', function($sql, $bindings) {
File::append(path('storage') . 'logs/sql-' . Auth::user()->username . '.log', date('Y-m-d H:i:s') . ' - ' . $sql . ' { ' . implode(':', $bindings) . ' } ' . PHP_EOL );
});
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-11755421-1', 'auto');
ga('send', 'pageview');
ga('_setLocalGifPath', 'http://www.tnonline.com.br/refresh/urchin.gif');
</script>
diff -Naurp php-pecl-apd-1.0.1/apd-1.0.1/php_apd.c php-pecl-apd-1.0.1.patched/apd-1.0.1/php_apd.c
--- php-pecl-apd-1.0.1/apd-1.0.1/php_apd.c 2004-09-27 20:25:59.000000000 -0700
+++ php-pecl-apd-1.0.1.patched/apd-1.0.1/php_apd.c 2011-01-14 23:31:08.921523776 -0800
@@ -964,7 +964,7 @@ ZEND_DLEXPORT void onStatement(zend_op_a
int apd_zend_startup(zend_extension *extension)
{
TSRMLS_FETCH();
- CG(extended_info) = 1; /* XXX: this is ridiculous */
+ CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
return zend_startup_module(&apd_module_entry);
#Requisitos
##Obrigatórios:
- HTML5 - Saber diferenciar <span> de <div>
- CSS ( LESS ou SASS )
- Photoshop
- Entender que Javascript não é jQuery!
- Automatizadores
- Utilizar padrões e boas práticas para desenvolvimento
A solução que encontrei foi utilizar o pacote https://github.com/vinkla/laravel-hashids
ai na model tive que incluir:
public function getRouteKey()
{
return Hashids::encode($this->getKey());
}
e no controller ao chamar pelo id tive que usar decode:
public function edit($id)
@charset UTF-8;
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,hr,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,input{border:0;vertical-align:baseline;margin:0;padding:0}
ol,ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
table{border-collapse:collapse;border-spacing:0}
:focus{outline:0}
h1,h2,h3,h4,h5,h6{font-weight:normal;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
a{text-decoration:none}
npcscan_targets = {
["SERGEANT CURTIS"] = true,
["KRELLACK"] = true,
["GRIMMAW"] = true,
["SCARSHIELD QUARTERMASTER"] = true,
["SLAVERJAW"] = true,
["SKARR THE BROKEN"] = true,
["IRONBACK"] = true,
["LADY SESSPIRA"] = true,
site.com.br/300x250/original/2017/04/06/f96cf7211a_unnamed.jpg
{tipo} /{imagem}
Route::get('/{tipo}/{imagem}', [
'as' => 'media.imagem',
'uses' => 'MediaController@GeraImagem'
])->where(['imagem' => '(original(.*))']);
@mixin scrollbars($size, $foreground-color, $background-color: mix($foreground-color, white, 50%)) {
::-webkit-scrollbar {
width: $size;
height: $size;
}
::-webkit-scrollbar-thumb {
background: $foreground-color;
}