Skip to content

Instantly share code, notes, and snippets.

View jcxk's full-sized avatar
🎯
Focusing

Juan carlos Escamilla jcxk

🎯
Focusing
View GitHub Profile
@jcxk
jcxk / ansible.sh
Last active June 1, 2016 03:31
ansible install
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
@jcxk
jcxk / phpdebug
Last active October 15, 2015 14:22
phpdebug
XDEBUG_CONFIG="idekey=PHPSTORM" PHP_IDE_CONFIG="serverName=vagrant" php $1
@jcxk
jcxk / create_bundle.sh
Last active October 15, 2015 14:36
create_bundle
php app/console generate:bundle --namespace=$1 --dir=src/ --format=yml --no-interaction
@jcxk
jcxk / ansible_install.sh
Created December 3, 2015 10:00
ansible basic install
#!/usr/bin/env bash
sudo add-apt-repository -y ppa:ansible/ansible
sudo apt-get update
# Update Repositories
sudo apt-get install -y --force-yes ansible
@jcxk
jcxk / 0_reuse_code.js
Created December 3, 2015 10:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jcxk
jcxk / gist:8c6375e6a00d47968a62
Last active December 11, 2015 08:44 — forked from spangey/gist:71804f40a5e6ad291a74
install sublime text 3
wget -O install-sublime.sh https://gist.github.com/xtranophilist/5932634/raw/sublime-text-3-x64.sh && sudo sh install-sublime.sh; rm -rf install-sublime.sh
@jcxk
jcxk / sample_context.sh
Created December 21, 2015 10:05
Phpstorm open context by api
curl http://localhost:63342/api/file/composer.json:20:80
curl http://localhost:63342/api/file/app/config/parameters.yml:1:1
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" hash="3364926860">
<data-source source="LOCAL" name="MySQL - @localhost" uuid="8632a12d-8103-4ada-9fac-a36a81c3ffac">
<driver-ref>mysql</driver-ref>
<synchronize>true</synchronize>
<configured-by-url>true</configured-by-url>
<jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
<driver-properties>
@jcxk
jcxk / ansible_centos.sh
Created March 1, 2016 10:32
ansible_centos_6
sudo rpm -Uvh http://mirror.serverbeheren.nl/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum install ansible -y
@jcxk
jcxk / mysql_info.sh
Created March 24, 2016 08:17
mysql_info.sh
mysql -uroot -p -NBe 'SHOW VARIABLES' | sed 's,\t,^=,' | column -ts^ | tr "\n" '@' | eval $(echo "sed '" "s,@\("{a..z}"\),\n\n\1,;" "'") | tr '@' "\n" | sed 's,^,# ,g' | grep timeout