Stash current changes
- git > Stash > Stash (Include Untracked)
Create stash as patch
git stash show "stash@{0}" -p > changes.patch
Apply patch
# path on linux /usr/share/dbeaver/dbeaver.ini | |
# path on macos /Applications/DBeaverEE.app/Contents/Eclipse/dbeaver.ini | |
-vm | |
/usr/bin/java | |
-startup | |
plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1100.v20190907-0426 | |
-vmargs | |
-javaagent:/home/tunknown/.apps/dbeaver/dbeaver-agent.jar |
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var styleEl = document.getElementById('css-layout-hack'); | |
if (styleEl) { | |
styleEl.remove(); | |
return; | |
} | |
styleEl = document.createElement('style'); | |
styleEl.id = 'css-layout-hack'; |
# .ebextensions/01_install_yarn.config | |
files: | |
'/opt/elasticbeanstalk/hooks/appdeploy/pre/49install_yarn.sh' : | |
mode: '000755' | |
owner: root | |
group: root | |
content: | | |
#!/usr/bin/env bash | |
set -euxo pipefail |
.has-dropdown { | |
display: relative; | |
.dropdown { | |
display: none; | |
position: absolute; | |
background-color: $white-bis; | |
padding: 14px; | |
border: 1px solid $grey-lighter; | |
border-radius: $radius; |
<?xml version="1.0"?> | |
<ruleset name="MyStandard"> | |
<description> | |
PSR2 with changes: | |
* tabs instead of spaces (https://gist.github.com/gsherwood/9d22f634c57f990a7c64) | |
* bracers on end of line instead new line | |
</description> | |
<!-- tabs --> | |
<arg name="tab-width" value="4"/> |
Vim provides built-in mechanisms to search through projects in the form of the grep
command.
However, on large projects, grep is known to be slow; and hence people have been switching to simpler searchers like ack, and faster, parallel (metal?) searchers like ag and pt.
Correspondingly, several plugins have been created that integrate these tools in vim: ack.vim, ag.vim, etc.
However, it's actually very easy to get the functionalities these plugins provide (faster search, results in quickfix-window, jumps, previews, and so on) in vanilla Vim itself; in fact, Vim already populates the grep-search results in a quickfix window. We just need to tell Vim to do the following things (use-case: ag):
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
<?php | |
require_once __DIR__.'/vendor/autoload.php'; | |
use GraphQL\Type\Definition\ObjectType; | |
use GraphQL\Type\Definition\Type; | |
use GraphQL\Schema; | |
use GraphQL\GraphQL; | |
$queryType = new ObjectType([ |
## | |
# "I did [mean that]" | |
# Re-run the suggested git command | |
# Intended to be run as 'idid "!!"' | |
# Place this file in your $PATH | |
# TODO create this as a brew script | |
## | |
declare last='' | |
declare selection_ordinal='1' |