Hello, I'm Darren 👋
I'm the CTO & Co-founder @ Thanx. If you're looking to join a great engineering team, check out our careers page or feel free to send me a note at darren-at-thanx-dot-com.
:new_moon: Obsessively curated dotfiles.
License: MIT License
Hello, I'm Darren 👋
I'm the CTO & Co-founder @ Thanx. If you're looking to join a great engineering team, check out our careers page or feel free to send me a note at darren-at-thanx-dot-com.
Better namespacing of:
Exec
Run
RunSilent
Osascript
Potentially:
cmd.Capture()
cmd.Run()
cmd.Silent()
cmd.OSA()
Custom CLI managed by Homebrew that is triggered via HS binding - https://github.com/drn/dots/blob/master/hammerspoon/background.lua
brianmario/mysql2#1005 (comment)
Ensure bundle config --global build.mysql2 --with-opt-dir="$(brew --prefix openssl)"
is configured
Current ~/.bundle/config
:
---
BUNDLE_DISABLE_LOCAL_BRANCH_CHECK: "true"
BUNDLE_GEM__TEST: "false"
BUNDLE_GEM__MIT: "true"
BUNDLE_GEM__COC: "true"
BUNDLE_DELETE: "thanx-style"
BUNDLE_BUILD__NOKOGIRI: "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2"
BUNDLE_BUILD__MYSQL2: "--with-opt-dir=/usr/local/opt/openssl"
Running git lfs install --local
installs global lfs hooks. To handle, potential options:
https://github.com/drn/dots/blob/master/vim/functions.vim#L163
:GithubCopy
:GithubOpen
verify that sha / branch has not changed immediately before
git checkout root
git reset --hard upstream/master
this will prevent checkout of fallback branch if a different branch was checked out async while the prune network request ran
intelligence ⭠ master ❯ g km
error: malformed object name origin/fatal:
bash: line 1: Use: command not found
bash: line 2: git <command> [<revision>...] -- [<file>...]: command not found
Deleting fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD from origin...
❯ git push origin :fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD
fatal: invalid refspec ':fatal:'
bash: line 1: Use: command not found
bash: line 2: git <command> [<revision>...] -- [<file>...]: command not found
error: malformed object name upstream/fatal:
bash: line 1: Use: command not found
bash: line 2: git <command> [<revision>...] -- [<file>...]: command not found
Deleting fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD from upstream...
❯ git push upstream :fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD
fatal: invalid refspec ':fatal:'
bash: line 1: Use: command not found
bash: line 2: git <command> [<revision>...] -- [<file>...]: command not found
❯ git checkout root 2>/dev/null
❯ git checkout root 2>/dev/null || git checkout -b root
Switched to a new branch 'root'
❯ git reset --hard
❯ git branch -D fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD
error: branch 'fatal:' not found.
error: branch 'ambiguous' not found.
error: branch 'argument' not found.
error: branch 'HEAD:' not found.
error: branch 'unknown' not found.
error: branch 'revision' not found.
error: branch 'or' not found.
error: branch 'path' not found.
error: branch 'not' not found.
error: branch 'in' not found.
error: branch 'the' not found.
error: branch 'working' not found.
error: branch 'tree.' not found.
bash: line 1: Use: command not found
bash: line 2: git <command> [<revision>...] -- [<file>...]: command not found
Trigger go install ./...
(if needed) when running update
Dependabot couldn't find a Gemfile for this project.
Dependabot requires a Gemfile to evaluate your project's current Ruby dependencies. It had expected to find one at the path: /Gemfile
.
If this isn't a Ruby project, or if it is a library, you may wish to disable updates for it from within Dependabot.
rbenv: version `2.4.3' is not installed (set by .../.ruby-version)
❯ g t
❯ rbenv install
Downloading openssl-1.1.0j.tar.gz...
-> ...
Currently not user-agnostic
https://github.com/drn/dots/blob/master/lib/home/nvim
https://github.com/drn/dots/blob/master/lib/home/nvimrc
style ⭠ Layout/SpaceAroundEqualsInParameterDefault ❯ g kmf
Deleting Layout/SpaceAroundEqualsInParameterDefault from origin...
To https://github.com/drn/style-guide.git
- [deleted] Layout/SpaceAroundEqualsInParameterDefault
sed: 1: "/Layout/SpaceAroundEqua ...": invalid command code S
Switched to branch 'root'
sed: 1: "/Layout/SpaceAroundEqua ...": invalid command code S
HEAD is now at c7b16e3 Set SpaceAroundEqualsInParameterDefault to no_spaces.
Deleted branch Layout/SpaceAroundEqualsInParameterDefault (was c7b16e3).
https://github.com/drn/dots/blob/master/git/functions/git-killme#L39
Unfortunately, Spotify does not provide any Osascript scripting hooks into toggling the track as saved & not saved. However, Spotify does provide API access to control this functionality.
Steps:
~/.spotify/config
user-library-modify
and user-read-currently-playing
scopesdrn.dev/spotify/callback
~/.spotify/config
https://accounts.spotify.com/authorize?client_id=#{client_id}&redirect_uri=https%3A%2F%2Fdrn.dev%2Fspotify%2Fcallback&response_type=code&scope=user-read-currently-playing+user-library-modify&state=${...}
drn.dev/spotify/callback
to display a message and copy returned token to
https://drn.dev/spotify/callback?code=#{...}&state=#{...}
~/.spotify/config
hs.alert
based on response and error state from CLI commandNotes:
the following SBAT work
log.Info(
"this color is %s but this rest is not",
color.WhiteString("white"),
)
color.InfoString()
instead of requiring import of fatih/color
Dependabot couldn't find a Gemfile for this project.
Dependabot requires a Gemfile to evaluate your project's current Ruby dependencies. It had expected to find one at the path: /Gemfile
.
If this isn't a Ruby project, or if it is a library, you may wish to disable updates for it from within Dependabot.
If battery is < 20%, display charging or not-charging in different colors
Configure aliases for all extensions (git-killme
, etc)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.