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
rm -rf `find /diretorio/que/quer/apagar/ -iname "*.extensao"` | |
# or | |
find ./ -type f -not -name "*.xls" -and -not -name "*.doc" -exec rm {} \; |
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
find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u |
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
declare | |
l_MaxVal pls_integer; | |
l_Currval pls_integer default - 1; | |
begin | |
-- insert primary key and table name | |
select max(cod_os) | |
into l_MaxVal | |
from os; | |
while l_Currval < l_Maxval | |
loop |
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
chrome.exe --restore-last-session |
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
select | |
TABLE_NAME, | |
decode(column_id,0,null,column_id) as COLUMN_ID, | |
COLUMN_NAME, NULLABLE, DATA_TYPE, COMMENTS | |
from ( | |
select cc.TABLE_NAME, | |
tc.COLUMN_ID, tc.COLUMN_NAME, | |
tc.NULLABLE, tc.DATA_TYPE || | |
case when tc.DATA_SCALE is not null then '(' || tc.DATA_PRECISION || ',' || tc.DATA_SCALE || ')' | |
when tc.DATA_PRECISION is not null then '(' || tc.DATA_PRECISION || ')' |
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
#/etc/lightdm/lightdm.conf | |
[SeatDefaults] | |
greeter-hide-users=true | |
greeter-show-manual-login=true | |
allow-guest=false |
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
SELECT GROUP_CONCAT(table_schema, '.', table_name)FROM information_schema.tables WHERE table_schema = 'database_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
<style> | |
a.negrito { font-weight: bold; } | |
input.fundo_verde { background-color: #8CDFAD} | |
</style> | |
<script> | |
$(document).ready(function(){ | |
$("input").focus(function(){ | |
$(this).addClass("fundo_verde"); | |
}); |
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
<!-- with gem "jquery-rails" --> | |
<%= javascript_include_tag :defaults %> | |
<script>jQuery.noConflict();</script> | |
<%= javascript_include_tag 'prototype' %> |
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
# ~/.nanorc | |
set const | |
set tabsize 2 |
OlderNewer