Skip to content

Instantly share code, notes, and snippets.

View MichaelDimmitt's full-sized avatar
:shipit:
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫

MichaelDimmitt

:shipit:
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile
@MichaelDimmitt
MichaelDimmitt / make_process_move.applescript
Last active April 16, 2018 00:55
aargh! I am not a fan of SystemPreferences -> Security & Privacy -> Accessability -> Assistive Access

Well, this was todays work.

Unable to get it working without assistive access.

works with assistive scripteditor, not works with assistive terminal

Not a good practice to enable it on peoples computers who user your program.

@MichaelDimmitt
MichaelDimmitt / .bashrc
Last active June 25, 2018 22:02 — forked from vsouza/.bashrc
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin

Quick-docs-for-haskel-mac

Installation of other peoples projects with haskel has been met with varying success.

Hopefully this post helps:

https://pemungkah.com/xmonad-on-os-x-mavericks/
condensed info from that article into a command below: (excluding, XQuartz)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" &&
brew install ghc cabal-install wget &&
@MichaelDimmitt
MichaelDimmitt / animated-svg-avatar-for-login-page.markdown
Created April 17, 2019 12:00
Animated SVG Avatar - For Login Page
cd ~ &&
startingFolderLocation=$OLDPWD &&
git clone https://github.com/bats-core/bats-core.git &&
cd bats-core &&
sudo ./install.sh /usr/local &&
cd $startingFolderLocation &&
mkdir bats_test_suite_example &&
cd bats_test_suite_example &&
echo '
#!/usr/bin/env bats

i-search and reverse-i-search for terminal

crtl-r performs: reverse-i-search

How do you move to the next match?

type crtl-r again!

How do you move to the previous match?

type crtl-i. (for some it is crtl+shift+r)

Example:

global-npm-bats-install-including-bats-assert.md

Check before running bats does not exist: which bats
Check after running bats exists at nodemodule path which bats

If you have nvm and switch versions a reinstall may be required.
Putting the following into terminal will setup a bash test suite example using NPM global packages.

## remove potential previous bats installation:
## rm -rf /usr/local/bats;
@MichaelDimmitt
MichaelDimmitt / animated-svg-avatar-for-login-page.markdown
Created May 17, 2019 22:52
Animated SVG Avatar - For Login Page
@MichaelDimmitt
MichaelDimmitt / animated-svg-avatar-for-login-page.markdown
Created May 18, 2019 20:08
Animated SVG Avatar - For Login Page
@MichaelDimmitt
MichaelDimmitt / twitter_stream.ex
Created August 17, 2019 22:49 — forked from mgwidmann/twitter_stream.ex
Infinite Streams with Elixir
# Elixir has lazily evaluated enumerable objects that allow you
# to work with enumerable objects like lists either only as needed
# or infinitely.
# Start up iex to play around
$ iex
# Typical enumeration is done eagerly where the result is computed ASAP
iex> Enum.map(1..10, fn i -> i * 2 end)
[2, 4, 6, 8, 10, 12, 14, 16, 18, 20]