Skip to content

Instantly share code, notes, and snippets.

View Shade30's full-sized avatar

Sergey Fedorov Shade30

  • Haulmont
  • Samara, Russia
View GitHub Profile
@Shade30
Shade30 / set_wallpaper
Last active March 21, 2017 11:03
Variety - custom set_wallpaper script for KDE
#!/bin/bash
# KDE - User will have to manually choose ~/Pictures/variety-wallpaper/ as a slideshow folder with a short iterval.
# Afterwards, with the command below, Variety will just overwrite the single file there when changing the wallpaper
# and KDE will refresh it
if [ "`env | grep KDE_FULL_SESSION | tail -c +18`" == "true" ]; then
mkdir -p "$(xdg-user-dir PICTURES)/variety-wallpaper"
NEWWP="$(xdg-user-dir PICTURES)/variety-wallpaper/wallpaper-kde-$RANDOM.jpg"
cp "$WP" "$NEWWP"
touch "$NEWWP"
PWDIR=`pwd`
@Shade30
Shade30 / LICENSE
Last active March 21, 2017 06:49
qt-stop-watch.py
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@echo off
Setlocal EnableDelayedExpansion
set CYGDIR=D:\cygwin64
set CYGBINDIR=%CYGDIR%\bin
set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
cd /d %CYGDIR%\home\%USERNAME%
if [%1]==[] goto BLANK
" ==Vimperator_Color_Scheme==
" name: Darkness_shd
" ==Darkness_shd_Colorscheme_Settings==
"StatusLine settings
hi StatusLine color: #ffffff; background: #000000; "font-size: 8pt;
" hi StatusLineBroken color: #000000; background: #afafff; "font-size: 8pt;
" hi StatusLineSecure color: #000000; background: #afffaf; "font-size: 8pt;
"CmdLine settings excluding Gradient
@echo off
rem Starter script for Clojure liverepl uberjar edition
set JDK_HOME=%JAVA_HOME%
set LIVEREPL_HOME=%~dp0
set LIVEREPL_UBERJAR=%LIVEREPL_HOME%\liverepl.jar
java -classpath "%JDK_HOME%\lib\tools.jar;%LIVEREPL_UBERJAR%" net.djpowell.liverepl.client.Main %LIVEREPL_UBERJAR% %LIVEREPL_UBERJAR% %LIVEREPL_UBERJAR% %*
@Shade30
Shade30 / emacs-run.bat
Created February 17, 2015 04:20
Cygwin emacs-w32 wrapper. Allows to run emacs with arguments directly from windows.
@echo off
Setlocal EnableDelayedExpansion
set CYGDIR=D:\cygwin64
set CYGBINDIR=%CYGDIR%\bin
set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
cd /d %CYGDIR%\home\%USERNAME%
if [%1]==[] goto BLANK
@Shade30
Shade30 / osql.sh
Created November 20, 2014 06:01
Wrapper to run SQL queries using MS SQL osql.exe utility from Cygwin
#!/bin/bash
# transform arguments for osql
args=
for arg in "$@"
do
if [[ $arg == -* ]] ;
then
args="$args "