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
| plugins { | |
| id 'jacoco' | |
| } | |
| jacocoTestReport { | |
| reports { | |
| xml.enabled true | |
| } | |
| } |
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 | |
| class UserDao { | |
| public function findByLoginFromRequest(Request $request) | |
| { | |
| $sql = 'SELECT user FROM users WHERE login=:login'; | |
| $login = $request->request->get('login'); | |
| $statement = $this->database->prepare($sql); | |
| $statement->bindValue(':login', $login); |
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 | |
| class UserDao { | |
| public function findByLoginFromRequest(Request $req) | |
| { | |
| $login = $req->request->get('login'); | |
| $statement = $this->db->prepare('SELECT user FROM users WHERE login=?'); | |
| $statement->bindValue(1, $login); | |
| return $statement->execute() ? $statement->fetch(\PDO::FETCH_ASSOC) : false; | |
| } | |
| } |
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 | |
| class UserDao { | |
| public function findByLoginFromRequest(Request $r) { | |
| $s = $this->c->prepare('SELECT user FROM users WHERE login=?'); | |
| $s->bindValue(1, $r->request->get('login')); | |
| return $s->execute() ? $s->fetch(\PDO::FETCH_ASSOC) : false; | |
| } | |
| } |
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
| # @file /etc/systemd/system/docker-postgres.service | |
| # @see https://docs.docker.com/articles/host_integration/ | |
| [Unit] | |
| Description=postgres container | |
| Requires=docker.service | |
| After=docker.service | |
| [Service] | |
| Restart=always |
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
| # Using ext4 as fast as it can be... | |
| UUID=... /tmp ext4 barrier=0,data=writeback,nouser_xattr,noacl,noatime,nodiratime 0 0 |
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
| # Path to your oh-my-zsh installation. | |
| export ZSH=/home/lins/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="avit" | |
| # Uncomment the following line to use case-sensitive completion. |
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/plasma-workspace/shutdown/gpg-agent-shutdown.sh | |
| #!/bin/sh | |
| echo KILLAGENT | gpg-connect-agent |
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/plasma-workspace/shutdown/ssh-agent-shutdown.sh | |
| #!/bin/sh | |
| [ -z "$SSH_AGENT_PID" ] || eval "$(ssh-agent -k)" |
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
| cmake_minimum_required(VERSION 3.2) | |
| project(url-function-bug) | |
| set(CMAKE_BUILD_TYPE Debug) | |
| set(SOURCE_FILES url-function-bug.c empty.cpp) | |
| include_directories("../libsass/include") | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") | |
| message("search for libsass static library in: ${CMAKE_SOURCE_DIR}/../libsass/lib") |