Skip to content

Instantly share code, notes, and snippets.

View truetamtam's full-sized avatar

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

View GitHub Profile
@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>
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.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 [email protected] http://sypex.net/ |
| (c) 2005-2011 BINOVATOR [email protected] |
|---------------------------------------------------------------------------|
| 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 |
@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 / vbox_vagrant_symlinks.txt
Created November 5, 2015 09:24
VirtualBox Vagrant Homestead. Symlinks where not created. Solves "npm" problem.
@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 / 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 / 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 / homestead_problesm_solutions.txt
Last active October 15, 2015 21:38
Homestead problems and solutions(npm err windows7x64 shared folders)
----------------------------------------------------
Problem 1:
npm install
... npm ERR...
Soft:
Laravel Homestead version 2.1.6
Vagrant 1.7.4
VirtualBox 4.3.30
Solution:
1. ssh into homestead
@truetamtam
truetamtam / laravel-lumen-5-homestead-win.md
Created October 14, 2015 12:41 — forked from prograhammer/laravel-lumen-5-homestead-win.md
Laravel/Lumen 5.1 Homestead for Windows (includes fixes for shared-folder related slowness, npm install problems, caching, etc)

Laravel / Lumen Homestead for Windows w/fixes

###Initial installation and configuration Install Git for Windows which includes Git Bash.

Install VirtualBox and Vagrant.

Note: Do not install VirtualBox 5.0 and Vagrant 1.7.4. At the moment these versions are causing problems that I've been unable to solve with this Gist. Use the previous versions instead. VirtualBox 4.3.30 and Vagrant 1.7.3.