set $mod Mod4
set $mod2 Mod1
mode "mouse" {
# set your three speeds here
set $slow 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .config/i3/config | |
| set $mod Mod4 | |
| set $alt Mod1 | |
| font pango:Segoe UI 8 | |
| # Use Mouse+$mod to drag floating windows to their wanted position | |
| floating_modifier $mod | |
| # class border backgr. text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install Gnome and some other useful thins | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # And based on https://wiki.archlinux.de/title/Anleitung_f%C3%BCr_Einsteiger | |
| # I have just copied commands from https://wiki.archlinux.de/title/Anleitung_f%C3%BCr_Einsteiger#Weitere_notwendige_Dienste | |
| # It's just to have it with one view after doing a [fresh installation](https://gist.github.com/thacoon/05d5a39606ab554455d6713e8a714b2c) | |
| # Some useful services | |
| pacman -S acpid ntp dbus avahi cups cronie ntp |
To make selenium easier to be used by developer this 2 packages added into dev dependencies:
enm1989/chromedriverse/selenium-server-standalone
New bash script bin/start-selenium added, so developer can start selenium by using this command:
# cd path/to/phplist3
$ bin/start-seleniumAfter migrating from heroku to dokku, we had to also chance codeship so we deploy to dokku. I followed the following steps to successfully deploy to dokku.
- Save the public key of the codeship project. It is found in Project Settings > General Settings.
- Copy the public key to a file /tmp/codeship_projectname.pub.
- Make sure when pasting, all the contents are in a single line and not multiple lines.
- Add the public key to dokku using the following command in console. Reference.
cat /tmp/codeship_projectname.pub | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle
The API we are creating in this gist will follow these rules :
- The API only returns JSON responses
- All API routes require authentication
- Authentication is handled via OAuth2 with
passwordGrant Type only (no need for Authorization pages and such). - API versioning is managed via a subdomain (e.g.
v1.api.example.com)
The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Behat\Behat\Context\ClosuredContextInterface, | |
| Behat\Behat\Context\TranslatedContextInterface, | |
| Behat\Behat\Context\BehatContext, | |
| Behat\Behat\Exception\PendingException; | |
| use Behat\Gherkin\Node\PyStringNode, | |
| Behat\Gherkin\Node\TableNode; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerName old.kmcmission.or.kr | |
| DocumentRoot /home/kmcbishop/kmcmission.or.kr | |
| </VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'wp_enqueue_scripts', 'registerMyPluginScripts' ); | |
| function registerMyPluginScripts(){ | |
| wp_enqueue_script( 'myPluginScript', plugins_url('my-plugin/js/script.js',__FILE__), array('jquery')); | |
| } |