Skip to content

Instantly share code, notes, and snippets.

@ob-ivan
ob-ivan / .gitaliases
Last active January 25, 2024 06:56
My aliases for git command line
#
# 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 February 4, 2023 13:41
Bot2048
/.idea/
@ob-ivan
ob-ivan / cookiebot.js
Last active June 27, 2022 07:47 — forked from jeresig/cookiebot.js
A little bit intelligent Cookie Clicker bot.
CookieBot = {
// Inner-use enum constants //
INTERVAL_BAKE : 0,
INTERVAL_GOLDEN : 1,
INTERVAL_PRODUCT : 2,
INTERVAL_UPGRADE : 3,
INTERVAL_DRAGON : 4,
INTERVAL_SANTA : 5,
#!/bin/sh -eu
SECONDS=0
while [ "${SECONDS}" -lt 10 ]
do
echo -n '.'
sleep 1
done
# 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
syntax "Jira" "\.jira$"
color brightwhite "^h1\. .*"
color brightwhite start="\*\<" end="\>\*"
color green start="\{\{" end="\}\}"
color brightyellow "\\\["
color brightblue start="[^\\]\[" end="\]"
color yellow "^\*+ "
@ob-ivan
ob-ivan / gitcommit.nanorc
Last active April 28, 2021 08:51 — 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!
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 .*"
#!/usr/bin/php
<?php
interface IFilter {
public function bAccept($sSequence);
}
class CFilterRegExp implements IFilter {
private $sRegExp;
public function __construct($sRegExp)
@ob-ivan
ob-ivan / .bashrc
Last active August 8, 2019 12:32
Do not disable umask
#
# 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:
#
# 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: