This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Copyright (c) 2013, Miro Hrončok <[email protected]> | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
# AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export LANG=C.utf-8 | |
SPEAKERS=alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__Speaker__sink | |
MIC=alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__Mic1__source | |
if [[ $1 == "+" ]]; then | |
# pacmd dump|awk --non-decimal-data '$1~/set-sink-volume/{system ("pacmd "$1" "$2" "$3+2000)}' > /dev/null | |
volume=$(pactl get-sink-volume $SPEAKERS | head -n1 | cut -f3 -d' ') | |
pactl set-sink-volume $SPEAKERS $(($volume+2000)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# BSDL Miro Hrončok <[email protected]> | |
# subrnm .avi .srt (or vice versa) | |
if [ $# -ne 2 ]; then | |
#echo "USAGE: subrnm .avi .srt (or vice versa)" | |
zenity --error --text "Nebyly vybrány dva soubory" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for FILE in `git status | grep deleted | awk '{print $3}'`; do | |
echo $FILE | |
git rm $FILE | |
done | |
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Public domain | |
if [ $# -lt 1 ]; then | |
echo "Give me some file(s), dude!" 1>&2 | |
exit 1 | |
fi | |
for svg in $@; do | |
shortname="$(basename "$svg")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOOK=/usr/lib/fedpkg-patch-check.py | |
function addhook { | |
hookdir="${1%%/}/.git/hooks" | |
test -d "$hookdir" || (echo "$hookdir doesn't exist or is not a directory" 1>&2 && return 1) | |
test -h "$hookdir/pre-commit" && echo "$hookdir/pre-commit is already a link, skipping" 1>&2 && return 1 | |
test -f "$hookdir/pre-commit" && echo "$hookdir/pre-commit is a file, you should call $HOOK manually from that file depending on what language is your hook written in" 1>&2 && return 1 | |
ln -s $HOOK "$hookdir/pre-commit" || (echo "Could not link the hook into $hookdir" 1>&2 && return 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fedora-livecd-3dprint.ks | |
# | |
# Description: | |
# - Fedora Live Spin with the light-weight Xfce Desktop Environment and 3D printing stuff | |
# | |
# Maintainer(s): | |
# - Miro Hrončok <[email protected]> | |
%include fedora-live-base.ks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[main] | |
username = Miro Hrončok | |
email = [email protected] | |
copr_url = https://copr.fedoraproject.org/ | |
upload_command = scp %s [email protected]:public_html/SRPMS/ | |
upload_url = http://churchyard.fedorapeople.org/SRPMS/%s | |
[openscad-devel] | |
git_url = https://github.com/openscad/openscad.git | |
git_folder = ~/upstream/openscad-git/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific environment | |
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test session starts ============================== | |
platform darwin -- Python 2.7.9 -- py-1.4.26 -- pytest-2.7.0 | |
rootdir: /Users/churchyard/Documents/devassistant, inifile: | |
collected 911 items | |
test/test_actions.py ................... | |
test/test_argument.py ............ | |
test/test_assistant_base.py ....... | |
test/test_cache.py ....FF.. | |
test/test_command_helpers.py ............................... |
OlderNewer