By default MariaDB use the unix_socket
plugin to authenticate users.
But it's easier to use mysql_native_password
for dev (and only for dev because it's way less secure).
Get root access
sudo su
I use separate Firefox profiles for work and personal stuff. To distinguish those I place them on different workspaces.
firefox --no-remote -P MyJob
firefox --no-remote -P default
I have also company Slack on Workspace 0. Which usually contains links to some work stuff.
#!/bin/bash | |
set -e | |
export CONFIG_MODULE_SIG=n | |
export CONFIG_MODULE_SIG_ALL=n | |
# For current kernel | |
export KERNELRELEASE=$(cat /proc/version | awk '{print $3}') | |
temp_dir=$(mktemp -d) | |
echo "Installing FacetimeHD camera for $KERNELRELEASE" |
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers |
Open the iTerm preferences ⌘+
, and navigate to the Profiles tab (the Keys tab can be used, but adding keybinding to your profile allows you to save your profile and sync it to multiple computers) and keys sub-tab and enter the following:
⌘+←Delete
Send Hex Codes:
0x18 0x7f
– Less compatible, doesn't work in node and won't work in zsh by default, see below to fix zsh (bash/irb/pry should be fine), performs desired functionality when it does work.0x15
– More compatible, but typical functionality is to delete the entire line rather than just the characters to the left of the cursor.⌘+fn+←Delete
or ⌘+Delete→
Send Hex Codes:
0x0b
Layout info: | |
{ | |
"id": "com.apple.keylayout.DVORAK-QWERTYCMD", | |
"lang": "en" | |
} | |
isUSStandard: false | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| HW Code combination | Key | KeyCode combination | Pri | UI label | User settings | Electron accelerator | Dispatching string | WYSIWYG | | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| KeyA | a | A | | A | a | A | [KeyA] | | |
<?xml version="1.1" encoding="UTF-8"?> | |
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!--Last edited by Ukelele version 3.0.2.59 on 2016-03-07 at 15:15 (SGT)--> | |
<keyboard group="126" id="-12870" maxout="1" name="x_layout"> | |
<layouts> | |
<layout first="0" last="17" mapSet="16c" modifiers="f4"/> | |
<layout first="18" last="18" mapSet="984" modifiers="f4"/> | |
<layout first="21" last="23" mapSet="984" modifiers="f4"/> | |
<layout first="30" last="30" mapSet="984" modifiers="f4"/> | |
<layout first="194" last="194" mapSet="984" modifiers="f4"/> |
From Metaphox for Metaphox
xcode-select --install
# Thanks to this post: | |
# http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x | |
$ brew install cabextract | |
$ cd ~/Downloads | |
$ mkdir consolas | |
$ cd consolas | |
$ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe | |
$ cabextract PowerPointViewer.exe | |
$ cabextract ppviewer.cab |
<?php | |
namespace App\Http\Middleware; | |
class CaptureRequestExtension | |
{ | |
public function handle($request, $next) | |
{ | |
if ($request->route()->parameter('_extension') !== null) { | |
$request->attributes->set('_extension', substr($request->route()->parameter('_extension'), 1)); |