View dash-SECONDS.sh
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/sh -eu | |
SECONDS=0 | |
while [ "${SECONDS}" -lt 10 ] | |
do | |
echo -n '.' | |
sleep 1 | |
done |
View .XCompose
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
# https://wiki.debian.org/XCompose | |
# https://help.ubuntu.com/community/ComposeKey | |
include "%L" | |
# status icons | |
<Multi_key> <bracketleft> <greater> : "▶️" U25B6 # Black Right-Pointing Triangle | |
<Multi_key> <Multi_key> <greater> : "▶️" U25B6 # Black Right-Pointing Triangle | |
<Multi_key> <bar> <bar> : "⏯" U23EF # Black Right-Pointing Triangle with Double Vertical Bar | |
<Multi_key> <bracketleft> <exclam> : "⚠️" U26A0 # Warning Sign |
View jira.nanorc
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
syntax "Jira" "\.jira$" | |
color brightwhite "^h1\. .*" | |
color brightwhite start="\*\<" end="\>\*" | |
color green start="\{\{" end="\}\}" | |
color brightyellow "\\\[" | |
color brightblue start="[^\\]\[" end="\]" | |
color yellow "^\*+ " |
View sequence.php
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/php | |
<?php | |
interface IFilter { | |
public function bAccept($sSequence); | |
} | |
class CFilterRegExp implements IFilter { | |
private $sRegExp; | |
public function __construct($sRegExp) |
View gitcommit.nanorc
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
syntax "gitcommit" "COMMIT_EDITMSG$" | |
color cyan "#.*" | |
color brightgreen "# On branch .*" | |
color cyan "# On branch" | |
color green "#.(new file|modified|deleted).*" | |
color yellow start="# Changes.*" end="# Changed.*" | |
color red start="# Untracked.*" end="diff" | |
color red start="# Untracked.*" end="$$" | |
color brightred "^deleted file mode .*" | |
color brightgreen "^new file mode .*" |
View .bashrc
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
# | |
# my basic bashrc file | |
# | |
# USAGE: | |
# | |
# $ mkdir ~/github | |
# $ cd ~/github | |
# $ git clone git@gist.github.com:cf6f78eccaabf463fecbc9177dcb1f7d.git bashrc | |
# | |
# Then add these lines to your .bashrc: |
View .prompt_command
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
# | |
# prompt command for xshell | |
# | |
# USAGE: | |
# | |
# $ mkdir ~/github | |
# $ cd ~/github | |
# $ git clone git@gist.github.com:3c8f9f74aa0de586f977599e625fced7.git prompt_command | |
# | |
# Then add these lines to your .bashrc: |
View rotate-wallpaper.sh
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 | |
# Your wallpapers folder | |
picturesPath=/home/ivan/Wallpapers | |
# needed to be run from cron | |
export DISPLAY=:0 | |
# change `username` with your user name | |
export XAUTHORITY=/home/ivan/.Xauthority |
View screensaver-layout.sh
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 | |
# USAGE: | |
# - clone to ~/GitHub/screensaver-layout | |
# - edit ~/.config/lxsession/LXDE/autoload | |
# - add line: @~/GitHub/screensaver-layout/screensaver-layout.sh | |
# - save and exit | |
# - relogin to desktop environment | |
SYS_LAYOUTS=$(setxkbmap -query | grep 'layout' | awk '{ print $2 }') |
View .gitaliases
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
# | |
# git aliases | |
# | |
# USAGE: | |
# | |
# $ mkdir ~/github | |
# $ cd ~/github | |
# $ git clone git@gist.github.com:5ad1168a4839d9bb9f4ec99c7d0ea949.git gitaliases | |
# | |
# Then add these lines to your .bashrc: |
NewerOlder