| marp |
|---|
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| 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 |