Skip to content

Instantly share code, notes, and snippets.

@desolat
desolat / git_move_files.sh
Last active February 5, 2021 05:42 — forked from trongthanh/gist:2779392
How to move a folder from one repo to another and keep its commit history
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html
# see also: https://medium.com/@ayushya/move-directory-from-one-repository-to-another-preserving-git-history-d210fa049d4b
# First of all you need to have a clean clone of the source repository so we didn't screw the things up.
git clone git://server.com/my-repo1.git
# For safety remove the origin ref:
git remote rm origin
# Remove unneeded branches, ... (will slim the .git folder)
@desolat
desolat / Docker DNS failure "invalid argument
Last active December 18, 2019 16:50
https://github.com/docker/for-linux/issues/877 Docker daemon debug log for DNS failure with message "invalid argument"
-- Logs begin at Fri 2019-11-08 17:46:41 CET, end at Wed 2019-12-18 12:10:41 CET. --
Dec 18 11:28:03 ip-172-31-40-101 dockerd[16819]: time="2019-12-18T11:28:03.127974516+01:00" level=debug msg="Running health check for container 1a6e453027c980569f8794a094d329b69a9f43f23c76603d67793e838f048677 ..."
Dec 18 11:28:03 ip-172-31-40-101 dockerd[16819]: time="2019-12-18T11:28:03.128186175+01:00" level=debug msg="starting exec command 21b897d773a7358b146a5e164edcb3b78543b137a19760f3d7cae8e9c3cd3ee5 in container 1a6e453027c980569f8794a094d329b69a9f43f23c76603d67793e838f048677"
Dec 18 11:28:03 ip-172-31-40-101 dockerd[16819]: time="2019-12-18T11:28:03.131957728+01:00" level=debug msg="attach: stdout: begin"
Dec 18 11:28:03 ip-172-31-40-101 dockerd[16819]: time="2019-12-18T11:28:03.132198009+01:00" level=debug msg="attach: stderr: begin"
Dec 18 11:28:03 ip-172-31-40-101 dockerd[16819]: time="2019-12-18T11:28:03.259686029+01:00" level=debug msg="Running health check for container 53e37fcf01154c839e9204d94ac126e2056653894e
@desolat
desolat / fiddle.html
Created March 20, 2018 09:53 — forked from anonymous/fiddle.html
Fiddle: table2excel
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Untitled</title>
</head>
<body>
<button>click me</button>
<div id="tableWrap">
<table>
/*** BEGIN META {
"name" : "Multi Copy Artifacts",
"comment" : "Copy artifacts from multiple builds of the same job, based on http://kevinormbrek.blogspot.de/2013/11/using-copy-artifact-plugin-in-system.html",
"parameters" : ['jobName', 'commaSeparatedBuildNumbers', 'filter'],
"core": "",
"authors" : [
{ name : "desolat" }
]
} END META**/