Skip to content

Instantly share code, notes, and snippets.

@karlarao
karlarao / controllers.application.js
Last active November 8, 2016 13:38
Test Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
# on mac: brew install tree
# on linux: yum install tree
## the XML output is 5 directories deep and filtering any folder name with "tmp" in it
tree -d -L 5 -X -I tmp /Users/karl/Dropbox/CodeNinja/GitHub | sed 's/directory/node/g'| sed 's/name/TEXT/g' | sed 's/tree/map/g' | sed '$d' | sed '$d' | sed '$d'| sed "1d" | sed 's/report/\/map/g' | sed 's/<map>/<map version="1.0.1">/g' > /Users/karl/Dropbox/CodeNinja/GitHub/Gitmap.mm
## to filter multiple folders do the following
tree -L 7 -I "tmp|node_modules|bower_components"
vi cpu_topology
# then copy paste
dmidecode | grep -i "product name"
cat /proc/cpuinfo | grep -i "model name" | uniq
function filter(){
sed 's/^.*://g' | xargs echo
}
ls -ltr | grep planx | awk -F '_' '{print $2}' > planx_out.txt
ls -ltr | grep sqld360 | awk -F '_' '{print $3}' > sqld360_out.txt
cat sqld360_out.txt planx_out.txt | sort | uniq -u
http://orasql.org/2014/02/10/sys_op_map_nonnull-is-in-the-documentation-now/
https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1274000564279
@karlarao
karlarao / readme.md
Created August 2, 2018 19:53 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

@karlarao
karlarao / Search my gists.md
Created August 2, 2018 20:20 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files. language:html

with temp as
(
select 108 Name, 'test' Project, 'Err1,Err2,Err3' Error from dual
union all
select 109, 'test2', 'Err1' from dual
)
select distinct
t.name, t.project,
trim(regexp_substr(t.error, '[^,]+', 1, levels.column_value)) as error
from
-- substr(table_name,instr(table_name,'GLT')+1)
select distinct table_name from
(
select
case when table_name like '%GLT%'
then substr(table_name,1,instr(table_name,'GLT')-2)
else table_name
end as table_name
from