This tip can be used if you forget or want to change MariaDB root password.
Make sure to install MariaDB using Homebrew.
This tip is from Update root password in MariaDB 10.4 on MacOS
This tip can be used if you forget or want to change MariaDB root password.
Make sure to install MariaDB using Homebrew.
This tip is from Update root password in MariaDB 10.4 on MacOS
# If you have issue with | |
# objc[18501]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. | |
# objc[18501]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug. | |
# I had this problem when running `bin/rails c` on Mac M1 Pro. The solution for this is below | |
$ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES | |
$ export DISABLE_SPRING=true | |
This should help. |
For the best guide, use search keyword: chmod. It should scroll down to:
# this forces Arena into full screen mode on startup, set back to 3 to reset | |
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these | |
# and you will need to run these commands again | |
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0 | |
defaults write com.wizards.mtga "Screenmanager Resolution Use Native" -integer 0 | |
# you can also replace the long complicated integer bit with any other scaled 16:9 | |
# resolution your system supports. | |
# to find the scaled resolutions, go to System Preferences --> Display and then | |
# divide the width by 16 and multiple by 9. on my personal system this ends up |
# The following comments fill some of the gaps in Solargraph's understanding of | |
# Rails apps. Since they're all in YARD, they get mapped in Solargraph but | |
# ignored at runtime. | |
# | |
# You can put this file anywhere in the project, as long as it gets included in | |
# the workspace maps. It's recommended that you keep it in a standalone file | |
# instead of pasting it into an existing one. | |
# | |
# @!parse | |
# class ActionController::Base |
/* Optional CSS to customize fonts, colors, syntax highlighting. */ | |
/* Normal */ | |
@font-face { | |
font-family: Roboto; | |
src: url(~/Library/Fonts/Roboto/Roboto-Light.ttf); | |
} | |
/* Bold */ | |
@font-face { |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
Tested on a standard $5/mo DigitalOcean VPS running Ubuntu 16.04.
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
#!/usr/bin/env bash | |
if [ -f "${rvm_path}/scripts/rvm" ]; then | |
source "${rvm_path}/scripts/rvm" | |
# use the config files | |
# .rvmrc supersedes all others | |
if [ -f ".rvmrc" ]; then | |
source ".rvmrc" |