Skip to content

Instantly share code, notes, and snippets.

View Stichoza's full-sized avatar
💻
Coding...

Levan Velijanashvili Stichoza

💻
Coding...
View GitHub Profile
@Stichoza
Stichoza / tbconline.ge.css
Created December 4, 2015 09:22
Switch to Mountain theme from settings and add this to your Stylish extension styles.
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500,700);
.MountainScheme {
background: url('http://i.imgur.com/aLevwFr.jpg') no-repeat center top fixed !important;
background-size: cover !important;
}
body.MountainScheme {
font-family: Roboto, 'Helvetica Neue', Helvetica, sans-serif !important;
}
@Stichoza
Stichoza / delayed_callback.js
Created May 21, 2015 23:14
Delayed Callback
var timeout, callback;
callback = function(event) {
console.log("Hey!");
}
button.addEventListener('click', function(event) {
clearTimeout(timeout);
timeout = setTimeout(function() {
callback(event);
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoriesTableWithI18n extends Migration {
/**
* Run the migrations.
*
@Stichoza
Stichoza / flat-ui-green.itermcolors
Created April 5, 2015 22:57
iTerm Color Scheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.24594299495220184</real>
<key>Green Component</key>
<real>0.18407571315765381</real>
@Stichoza
Stichoza / composer.json
Last active August 29, 2015 14:16
Bring back Laravel theme to Whoops exception handler in Laravel 5
"scripts": {
"post-install-cmd": [
...
"curl https://raw.githubusercontent.com/VladShcherbin/whoops-orange-laravel-colors/master/whoops.base.css > vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css"
],
"post-update-cmd": [
...
"curl https://raw.githubusercontent.com/VladShcherbin/whoops-orange-laravel-colors/master/whoops.base.css > vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css"
]
}
@Stichoza
Stichoza / download.sh
Created January 18, 2015 22:45
Rustavi2 Video Downloader
#!/usr/bin/bash
# URL example: http://tv.guda.tv/vodr2live/_definst_/news%20portal/2015/ianvari/18/ps%20hak%20tbilisi.mp4/playlist.m3u8
ffmpeg -i $1 output.mkv
@Stichoza
Stichoza / DeployController.php
Last active November 3, 2017 13:52
Laravel 4.2 Push-to-Deploy controller for GitHub webhooks
<?php
/**
* Deployment controller
*
* @author Stichoza <me@stichoza.com>
*/
class DeployController extends BaseController
{
@Stichoza
Stichoza / command.sh
Last active August 29, 2015 14:06
FMPEG - Convert image sequence to video
ffmpeg -r 25 -qscale 2 -i DSCN%04d.JPG output.mp4
@Stichoza
Stichoza / debug_decoder.sh
Created January 7, 2014 03:27
FreshPHP debug_text decoder linux CLI
#!/bin/sh
echo debug_decoder v0.0.2
echo making temporary directories
mkdir debug_decode_tmp
cd debug_decode_tmp
echo getting source via 'wget'
wget --output-document=wgetfile $1
echo parsing data
dout=`grep -o '<code>.*</code>' wgetfile | sed 's/\(<code>\|<\/code>\)//g' | rev | base64 --decode | python -mjson.tool`
echo data parsing ended
@Stichoza
Stichoza / (Debian) Preferences.sublime-settings
Last active January 1, 2016 23:59
My custom settings for Sublime Text 3 on Linux (Debian Wheezy) and Mac OSX (Yosemite)
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"font_face": "Consolas",
"font_options":
[
"subpixel_antialias",
"gray_antialias"
],
"font_size": 12,
"highlight_line": true,