marp |
---|
for WID in `xwininfo -root -tree | sed '/"plasma-desktop": ("Plasma" "Plasma")/!d; s/^ *\([^ ]*\) .*/\1/g'`; do | |
xprop -id $WID -remove _KDE_NET_WM_SHADOW | |
done | |
# or | |
for WID in `xwininfo -root -tree | sed '/"Plasma": ("plasmashell" "plasmashell")/!d; s/^ *\([^ ]*\) .*/\1/g'`; do | |
xprop -id $WID -remove _KDE_NET_WM_SHADOW | |
done |
From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
-
Switch to the main branch, usually 'develop':
git checkout develop
-
Get a list of fully merged branches:
This script can be used to feed collectd with cpu and memory usage statistics for running docker containers using the collectd exec
plugin.
This script will report the used and cached memory as well as the user and system cpu usage by inspecting the appropriate cgroup stat file for each running container.
This script is intented to be executed by collectd on a host with running docker containers. To use, simply configure the exec
plugin in collectd to execute the collectd-docker.sh
script. You may need to adjust the script to match your particulars, such as the mount location for cgroup.
source ~/path/to/tabs.sh | |
load-dev(){ | |
#Create sessi data format '<Tab Name/Title> <Profile Name> <Working Directory>' | |
local sessions=( | |
oak Shell 'clear; cd ~/git/apache/oak' | |
sling Shell 'clear; cd ~/git/apache/sling' | |
felix Shell 'clear; cd ~/git/apache/felix' | |
) | |
start_sessions sessions[@] |
This is the process I have found to be very helpful when migrating projects from their SVN repository over to Git. When migrating from one version control system to another it's important to retain as much information about the development history as possible (i.e., commit messages, tags, branches, etc.) and avoid the easy and tempting method of just downloading the project from a server and throw it into the new version control (you should only consider that if the project has never been in a version control system before).
Key concepts:
- tools for migrating svn repositories to git
- how to migrate standardized svn repositories
- how to migrate non-standardized svn repositories
- best practices for your now un-maintained SVN repository
#!/bin/bash | |
# | |
# A quickndirty bash-utility to generate REST-documentation from sourcecode comments. | |
# (initially aimed at php-files, but js should also work) | |
# Basically its a c-style comment -> markdown -> html converter | |
# Dependancies: | |
# - awk | |
# - sed | |
# - bash | |
# - php |
_listapi() | |
addExternalRPM(rpminfo, external_repo, strict=True) | |
description: Import an external RPM | |
This call is mainly for testing. Normal access will be through | |
a host call | |
addExternalRepoToTag(tag_info, repo_info, priority) | |
description: Add an external repo to a tag | |
addGroupMember(group, user, strict=True) | |
description: Add user to group |
// Copyright (c) 2012 Bryce Adelstein-Lelbach | |
// | |
// Distributed under the Boost Software License, Version 1.0. (See accompanying | |
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
// hpx::util::container_device can be found here: | |
// http://raw.github.com/STEllAR-GROUP/hpx/master/hpx/util/container_device.hpp | |
// The portable binary archives used can be found here: | |
// http://raw.github.com/STEllAR-GROUP/hpx/master/hpx/util/portable_binary_oarchive.hpp |
These steps show two less common interactions with git to extract a single file which is inside a subfolder from a git repository. These steps essentially reduce the repository to just the desired files and should performed on a copy of the original repository (1.).
First the repository is reduced to just the subfolder containing the files in question using git filter-branch --subdirectory-filter
(2.) which is a useful step by itself if just a subfolder needs to be extracted. This step moves the desired files to the top level of the repository.
Finally all remaining files are listed using git ls
, the files to keep are removed from that using grep -v
and the resulting list is passed to git rm
which is invoked by git filter-branch --index-filter
(3.). A bit convoluted but it does the trick.