Skip to content

Instantly share code, notes, and snippets.

@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,
<?php
error_log(__METHOD__ . ':' . __LINE__); // debug
error_log(__METHOD__ . ':' . __LINE__ . ': message'); // debug
error_log(__METHOD__ . ':' . __LINE__ . ': gettype($value) = ' . gettype($value)); // debug
error_log(__METHOD__ . ':' . __LINE__ . ': get_class($object) = ' . get_class($object)); // debug
@ob-ivan
ob-ivan / .gitignore
Last active February 4, 2023 13:41
Bot2048
/.idea/
<!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();
@ob-ivan
ob-ivan / srt-resize.html
Created August 23, 2015 21:06
Resize srt
<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>
@ob-ivan
ob-ivan / .gitattributes
Last active September 5, 2015 11:29
unequal
* text eol=lf
@ob-ivan
ob-ivan / .gitignore
Last active February 29, 2016 20:49
ElfQuest comics downloader
/data/
@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:
#!/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 }')
#!/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