Skip to content

Instantly share code, notes, and snippets.

View criaturaExperimental's full-sized avatar

Lucas deGomez criaturaExperimental

View GitHub Profile
@criaturaExperimental
criaturaExperimental / randomNumbersArray.js
Created July 6, 2019 10:24
Generates an array with random numbers in javascript
randomArray = (length, max) => [... new Array(length)]
.map(()=> Math.round(Math.random() * max ));
let arr = randomArray(10, 100);
console.log(arr);
@criaturaExperimental
criaturaExperimental / gatekeeper_security.sh
Created October 6, 2017 08:21
Disables mac security for unknow origin apps
sudo spctl --master-disable
@criaturaExperimental
criaturaExperimental / iterm2_badges.md
Last active October 11, 2019 07:36
Customizing badges for iTerm2

Customizing iTerm badges

There are two variables available to use in the badge field with

\(user.gitBranch) \n \(user.humpDay)
  • gitBranch shows the current branch the folder opened in the terminal is
  • humpDay shows an icon according to the date

This code goes into ~/.bash_profile

@criaturaExperimental
criaturaExperimental / split2tasks.workflow
Last active October 19, 2017 09:41
Parallel tasks runners in iterm2 (3) applescript
tell application "iTerm"
create window with profile "Positiv"
tell current session of current window
set secondary to split vertically with profile "miniPositiv"
tell secondary
set columns to 50
delay 1
write text "gulp watch"
delay 3
set terciary to split horizontally with profile "miniPositiv"