Skip to content

Instantly share code, notes, and snippets.

ob-ivan

Block or report user

Report or block ob-ivan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ob-ivan
ob-ivan / gitcommit.nanorc
Last active Feb 21, 2019 — forked from keithamus/Nano Git Commit Syntax highlighting
Include this file from your ~/.nanorc and when running "git commit" (if your editor is nano) you'll have syntax highlighting in your commit message. Includes support for "git commit -v" too!
View gitcommit.nanorc
syntax "gitcommit" "COMMIT_EDITMSG$"
color cyan "#.*"
color brightgreen "# On branch .*"
color cyan "# On branch"
color green "#.(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 green "^\+.*"
@ob-ivan
ob-ivan / .bashrc
Last active Aug 8, 2019
Do not disable umask
View .bashrc
#
# 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
#
# 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
#!/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
#!/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 }')
@ob-ivan
ob-ivan / .gitaliases
Last active Aug 30, 2019
My aliases for git command line
View .gitaliases
#
# git aliases
#
# USAGE:
#
# $ mkdir ~/github
# $ cd ~/github
# $ git clone git@gist.github.com:5ad1168a4839d9bb9f4ec99c7d0ea949.git gitaliases
#
# Then add these lines to your .bashrc:
@ob-ivan
ob-ivan / .gitignore
Last active Feb 29, 2016
ElfQuest comics downloader
View srt-resize.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<textarea id="input"></textarea>
<label>Offset (ms): <input id="offset"/></label>
<label>Factor: <input id="factor"/></label>
<button id="resize">resize</button>
<textarea id="output"></textarea>
View oxcow.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<script type="text/javascript" src="oxcow.js"></script>
<script>
var game = new Game();
game.init();
You can’t perform that action at this time.