7z x archive.zip -oSomeDirectory
👋 Moved to https://github.com/borekb/docker-path-workaround
UPDATE 07/2018: I switched from Git Bash to MSYS2 recently which should be very similar, if not the same, but there some subtle differences which made me realize this is more tricky than I thought and that I don't 100% understand what is going on. If someone can help, please let me know in the comments.
Invoking docker
in MSYS2 shell or Git Bash typically fails with complains about paths, for example:
#!/bin/bash | |
# Repo merge script used to merge OLD_REPO into TARGET_REPO. | |
# Based on https://gofore.com/merge-multiple-git-repositories-one-retaining-history/ | |
# How to use: | |
# | |
# 1. Create a temp directory | |
# 2. Checkout TARGET_REPO and OLD_REPO there | |
# 3. Put this script into the temp directory, side by side with the repos. |
ToC:
- [Hello `make`](#hello-make)
## Hello `make`
- Configure tasks
- Paste from below
- Ctrl+Shift+B on an HTML file
#!/bin/bash | |
# Merges child repo into target repo. Maintains branches and tags, filters history. | |
# | |
# Based on this amazing article: https://gofore.com/merge-multiple-git-repositories-one-retaining-history/ | |
#--------------------------------- | |
# Variables | |
#--------------------------------- |
This has been sent to several freelancers on Fiverr.
I'm looking for an extension that provides MRU (most-recently-used) tab behavior in Chrome on Windows. This is generally hard to achieve as it's not supported natively but I think there's a trick: there's a CLUT extension that implements the MRU behavior (https://chrome.google.com/webstore/detail/clut-cycle-last-used-tabs/cobieddmkhhnbeldhncnfcgcaccmehgn) and I can manually update the Preferences
file to change the CLUT's default Alt+S
shortcut to Ctrl+Tab
. Then it works for a single session. The problem is that after I restart Chrome, the shortcut is back to Alt+S
.
So the gig would be about creating an extension (or an extension plus a small Chrome app) that:
- Expects CLUT to be installed
- On every Chrome start, or shortly after that, searches the
Preferences
file forAlt+S
and replaces it withCtrl+Tab
.
That's it. If I understand the security constraints correctly, this would need to be a pair of Chrome app that has the filesystem
function get_git_num_unpushed_commits(branch_name) | |
for line in io.popen("git rev-list --count origin/"..branch_name..".."..branch_name.." 2>nul"):lines() do | |
return tonumber((string.gsub(line, "%s+", ""))) | |
end | |
return 0 | |
end | |
function git_prompt_filter() | |
-- Colors for git status |
<?php | |
global $wpdb; | |
$factory = new \ProxyManager\Factory\AccessInterceptorValueHolderFactory(); | |
$backupFields = array(); | |
$prefixInterceptor = function ($proxy, wpdb $instance, $method, $params) use (&$backupFields) { | |
$backupFields["last_error"] = $instance->last_error; | |
$backupFields["last_query"] = $instance->last_query; |
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 | |
insert_final_newline = true | |
indent_style = space | |
indent_size = 4 | |
[*.{js,json}] |