Keybase proof
I hereby claim:
- I am sergeylukin on github.
- I am sergeylukin (https://keybase.io/sergeylukin) on keybase.
- I have a public key ASAT5Q5Fzp-1mB8mJYAXvkD_DA4ifS2gloH3vCl-CMDa1Qo
To claim this, I am signing this object:
#!/bin/bash | |
# Copyright (c) 2015 gruberator | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms are permitted | |
# provided that the above copyright notice and this paragraph are | |
# duplicated in all such forms and that any documentation, | |
# advertising materials, and other materials related to such | |
# distribution and use acknowledge that the software was developed | |
# by the gruberator. The name of the |
docker run -d -p 8080:8080 jenkins/jenkins | |
docker ps | |
# Install docker-enter function: | |
# docker-enter() { | |
# docker exec -it "$@" bash | |
# } | |
docker-enter <container_id> |
--Reload config | |
local hyper = { "cmd", "alt", "ctrl", "shift" } | |
hs.hotkey.bind(hyper, "0", function() | |
hs.reload() | |
hs.notify.new({title="Hammerspoon", informativeText="Config loaded"}):send() | |
end) | |
--Resize windiows | |
hs.window.animationDuration = 0 | |
hs.hotkey.bind(hyper, "h", function() |
#!/usr/bin/env sh | |
# | |
# This script automates images optimization | |
# is mainly used by a developer who manually | |
# can execute it when adding new images to the | |
# project | |
# | |
# Download and compile following binaries: | |
# | |
# - [jpegtran](http://www.ijg.org/) |
I hereby claim:
To claim this, I am signing this object:
<?php | |
define('MY_APP_DIR', __DIR__ . '/src'); | |
function rsearch($folder, $pattern) { | |
$dir = new RecursiveDirectoryIterator($folder); | |
$ite = new RecursiveIteratorIterator($dir); | |
$files = new RegexIterator($ite, $pattern, RegexIterator::GET_MATCH); | |
$fileList = array(); | |
foreach($files as $file) { |
<?php | |
// Set your Slack WEBHOOK here | |
define('_SLACK_ERRORS_CHANNEL_WEBHOOK_URL', '<WEBHOOK>'); | |
// Register function that will be executed in the end of PHP runtime | |
register_shutdown_function("shutdown_error_handler"); | |
/* | |
* Sends a message to channel on Slack, example: |
<?php | |
register_shutdown_function("shutdown_error_handler"); | |
function FriendlyErrorType($type) | |
{ | |
switch($type) | |
{ | |
case E_ERROR: // 1 // | |
return 'E_ERROR'; | |
case E_WARNING: // 2 // |
#!/bin/sh | |
# | |
# This hook is placed in Bare repository and it updates Working tree whenever a PUSH | |
# is executed | |
# | |
# Assuming following file structure: | |
# . | |
# |-- myproject | |
# |-- myproject.git | |
# set WORKTREE=../myproject |
{ | |
"ch1": 1, | |
"ch2": 1, | |
"ch3": 1, | |
"title": "כפר סבא", | |
"ch4": 1, | |
"ch5": 1, | |
"ch6": 1, | |
"ch7": 1, | |
"ch8": 1, |