Skip to content

Instantly share code, notes, and snippets.

View truetamtam's full-sized avatar

Роман Уляшев (Roman Ulashev) truetamtam

View GitHub Profile
@truetamtam
truetamtam / after.sh
Last active May 16, 2016 18:59
Homestead after.sh commands(for vanilla).
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
# vim & .gitconfig
#
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/' /home/vagrant/.bashrc
echo "syntax on\nset nu\n" > /home/vagrant/.vimrc
@truetamtam
truetamtam / aliases
Last active May 16, 2016 18:58
Homestead aliases file. Vagrant and Laravel specific.
alias ..='cd ../'
alias ...='cd ../..'
alias ~='cd ~'
alias h='cd ~'
alias c='clear'
alias pa='php artisan'
alias cm='composer'
alias l='ls -Al'
@truetamtam
truetamtam / wbsdi.sh
Last active October 25, 2015 20:42
Webasyst shop with homestead. Install helper script.
#!/usr/bin/env bash
# Installer script for use with homestead and webasyst framework.
# All keys for interacting with github and bitbucket must be set.
# Installs also webasyst shop-script 6.
while getopts "h:d:b:" optname
do
case "$optname" in
"h")
@truetamtam
truetamtam / vbox_vagrant_symlinks.txt
Created November 5, 2015 09:24
VirtualBox Vagrant Homestead. Symlinks where not created. Solves "npm" problem.
@truetamtam
truetamtam / OpenWithSublimeText3.bat
Last active December 2, 2015 12:19 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@truetamtam
truetamtam / index.php
Created August 1, 2016 09:27
Sypex Dumper index.php file. Fixed and works with php7.
<?php
/***************************************************************************\
| Sypex Dumper version 2.0.11 |
| (c) 2003-2011 zapimir zapimir@zapimir.net http://sypex.net/ |
| (c) 2005-2011 BINOVATOR info@sypex.net |
|---------------------------------------------------------------------------|
| created: 2003.09.02 19:07 modified: 2013.08.27 06:27 |
|---------------------------------------------------------------------------|
| Sypex Dumper is released under the terms of the BSD license |
| http://sypex.net/bsd_license.txt |
filetype off " required
set rtp+=$HOME/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'rking/ag.vim'
Plugin 'skwp/greplace.vim' " search and replace
Plugin 'MarcWeber/vim-addon-mw-utils' " vim-snipmate dependency
Plugin 'tomtom/tlib_vim' " vim-snipmate dependency
@truetamtam
truetamtam / index.html
Created August 3, 2017 11:24
jquery long description text toggler
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script
src="http://code.jquery.com/jquery-1.12.4.min.js"
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin="anonymous"></script>