View hadoop_cleanup.sh
hadoop jar /opt/cloudera/parcels/CDH/lib/solr/contrib/mr/search-mr-job.jar \
org.apache.solr.hadoop.HdfsFindTool \
-find /user/spark/applicationHistory \
-mtime +60 | xargs hdfs dfs -rm -r -skipTrash
View delete_older_than_hadoop.sh
COMMAND='hadoop jar /opt/cloudera/parcels/CDH/lib/solr/contrib/mr/search-mr-job.jar org.apache.solr.hadoop.HdfsFindTool'
${COMMAND} -find /tmp/ -type f -mtime +30
View range.re
let rec range_aux n acc =>
switch (n, acc) {
| (0, acc) => acc
| (n, acc) => range_aux (n-1) [(n-1), ...acc]
};
let range x => range_aux x [];
View integer.clj
user=> Integer/MAX_VALUE
2147483647
user=> (type Integer/MAX_VALUE)
java.lang.Integer
user=> (+ Integer/MAX_VALUE 1)
2147483648
user=> (type (+ Integer/MAX_VALUE 1))
java.lang.Long
user=> Long/MAX_VALUE
9223372036854775807
View reasonml.md

Starting with ReasonML for backend devs

Background

Bucklescript

BuckleScript is a backend for the OCaml compiler which emits JavaScript. It works 
with both vanilla OCaml and Reason, the whole compiler is compiled into JS (and ASM) 
so that you can play with it in the browser.
View asd
biolab.chqrncngckmp.eu-central-1.rds.amazonaws.com:1433
View a.sh
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html
View clean_up_win10.ps
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *windowscalculator* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
View exec.bat
msiexec /package {90120000-001A-040E-0000-0000000FF1CE} /uninstall {BBE4FD45-34D1-4497-8F75-77965C4E044D} /qn /quiet /norestart
psexec \\CLIENT "msiexec.exe" /package "{90120000-001A-040E-0000-0000000FF1CE} /uninstall {BBE4FD45-34D1-4497-8F75-77965C4E044D} /qn /quiet /norestart"
View clojure.ml
let range ~small:a ~big:b =
let rec range_aux ~small:a ~big:b ~accumulator:acc =
if a > b then acc
else range_aux ~small:(a+1) ~big:b ~accumulator:(a :: acc) in
List.rev (range_aux ~small:a ~big:b ~accumulator:[])
let take ~list:l ~count:n =
if List.length l <= n
then l
else