Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Tadeusz Stępnikowski versedi

🎯
Focusing
View GitHub Profile
@versedi
versedi / show-branches.sh
Last active Apr 19, 2016
Show branches for all subdirectories repos in current directory
View show-branches.sh
#!/bin/bash
for D in *; do
if [ -d "${D}" ]; then
if [ -d "${D}/.git" ]; then
echo
echo --------------
echo
echo -e "\033[1m${D}\033[0m"
echo
View CodeIgniter-PHPStorm-codeStyleSettings.xml
<code_scheme name="CodeIgniter">
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="4" />
<option name="CONTINUATION_INDENT_SIZE" value="8" />
<option name="TAB_SIZE" value="4" />
<option name="USE_TAB_CHARACTER" value="true" />
<option name="SMART_TABS" value="false" />
<option name="LABEL_INDENT_SIZE" value="0" />
<option name="LABEL_INDENT_ABSOLUTE" value="false" />
@versedi
versedi / main.css
Created Jan 8, 2016
Sublime Text CSS ASCII ART Sections Snippet
View main.css
/*
Tool used to generate ASCII ART:
http://www.kammerl.de/ascii/AsciiSignature.php
(Font: 'georgi16')
1. RESETS
2. GENERAL REUSABLE COMPONENTS
3. TYPOGRAPHY
4. FORMS
5. HEADER
@versedi
versedi / Magento-MySQL.sql
Last active Sep 18, 2016
Magento MySQL snippets
View Magento-MySQL.sql
##Clean all Customer before going Live
SET FOREIGN_KEY_CHECKS=0;
-- reset customers
TRUNCATE customer_address_entity;
TRUNCATE customer_address_entity_datetime;
TRUNCATE customer_address_entity_decimal;
TRUNCATE customer_address_entity_int;
TRUNCATE customer_address_entity_text;
@versedi
versedi / bs3-media-desktop-lg.sublime-snippet
Last active Sep 10, 2017
Sublime Text 3 Snippets with Bootstrap 3 media queries
View bs3-media-desktop-lg.sublime-snippet
<snippet>
<content><![CDATA[
/* Large Desktop */
@media only screen and (min-width: ${1:@screen-lg-min})
{
${3:}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bs3-media-lg-desktop,bs3-media-lg</tabTrigger>
@versedi
versedi / Alternative_Flat_Dark-Markdown.tmTheme
Last active Nov 23, 2015
Alternative-Flat-Dark for GitGutter,Markdowns,SublimeLinter
View Alternative_Flat_Dark-Markdown.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Alternative Flat Dark Extended</string>
@versedi
versedi / Alternative Flat Dark Extended.tmTheme
Last active Oct 22, 2015
Alternative version of Flat Dark sublime theme with support for: Sublimelinter, GitGutter.
View Alternative Flat Dark Extended.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Alternative Flat Dark Extended</string>
@versedi
versedi / .bashrc
Created Oct 12, 2015
.bashrc - linux
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@versedi
versedi / kill-ssh-agents.bat
Created Aug 30, 2015
Kill all ssh-agents Windows
View kill-ssh-agents.bat
taskkill /F /IM ssh-agent.exe /T
View .bash_functions
#!/bin/bash
cd_func()
{
local x2 the_new_dir adir index
local -i cnt
if [[ $1 == "--" ]]; then
dirs -v
return 0
fi