Skip to content

Instantly share code, notes, and snippets.

View Stmol's full-sized avatar
👨‍🔧
SwiftUI & Flutter

Yury S. Stmol

👨‍🔧
SwiftUI & Flutter
  • Earth
View GitHub Profile
@Stmol
Stmol / backup.sh
Last active December 17, 2015 04:28
Simple backup through rsync
#!/bin/bash
DIST_DIR="/Volumes/Stmol HDD/Backup"
if [ ! -d "$DIST_DIR" ]; then
echo "-- Error: Directory $DIST_DIR not found"
exit
fi
echo "-- Start backuping to $DIST_DIR"
@Stmol
Stmol / View.php
Last active October 3, 2018 16:15
Native simple PHP template engine
<?php
class View
{
/** @var string Path to template */
protected $_path;
/** @var array Variables for template */
public $_var = array();
@Stmol
Stmol / l2datdec.php
Created August 29, 2013 20:08
Lineage 2 dat files decoder. Author: Hint aka Ilya
<?php
/**
* L2 file decoder (4 october 2011).
* @author Hint aka Ilya
*/
function decode($filename, $original = true)
{
$file = @file_get_contents($filename);
@Stmol
Stmol / swap
Created September 22, 2013 13:48
Swap letters on Ru-En keyboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<input type="text" id="issue" value="">
<input type="button" id="convert" value="Convert">
@Stmol
Stmol / webrtc.js
Created October 1, 2013 15:40 — forked from coderaiser/webrtc.js
/*
* пример использования WebRTC
* http://rastacoding.kodingen.com/webrtc
*/
(function(){
'use strict'
/* определяем вариант функции getUserMedia в зависимости от браузера */
navigator.getUserMedia = navigator.getUserMedia || /* версия, которая останется */
navigator.webkitGetUserMedia || /* chrome и safari */
@Stmol
Stmol / README.md
Last active October 3, 2018 16:20 — forked from nikcub/README.md
[Facebook Hack Story] #hack
@Stmol
Stmol / jshintrc
Last active October 3, 2018 16:16
My JSHINT options #config
{
"node": true,
"browser": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
"latedef": true,
@Stmol
Stmol / hack.sh
Created May 17, 2014 19:29 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@Stmol
Stmol / bash_profile
Last active October 3, 2018 16:14
[My bash profile on Mac OS X] #settings
# export PATH="/usr/local/mysql/bin:$PATH"
export EDITOR='subl -w'
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
export HOMEBREW_GITHUB_API_TOKEN=''
PS1='➞ \w$ '
@Stmol
Stmol / brew.plugin.zsh
Last active August 29, 2015 14:01
My zsh options
#compdef brew
#autoload
# imported from the latest homebrew contributions
_brew_all_formulae() {
formulae=(`brew search`)
}
_brew_installed_formulae() {