Starting
sudo systemctl start application.service
or simply
sudo systemctl start application
# | |
# Count the number of positive integers less | |
# than N that does not contains digit 4. | |
# | |
# Source: http://www.careercup.com/question?id=4752301805797376 | |
class PositiveNonFour | |
def count_integers_non_four_less_than(max, strategy = :brute_force) | |
@filter = 4 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#!/bin/bash | |
# myapp daemon | |
# chkconfig: 345 20 80 | |
# description: myapp daemon | |
# processname: myapp | |
DAEMON_PATH="/home/wes/Development/projects/myapp" | |
DAEMON=myapp | |
DAEMONOPTS="-my opts" |
<?php | |
trait Singleton | |
{ | |
private static $_instance; | |
private function __construct(){} | |
public function __clone() | |
{ | |
throw new Exception('This object cannot be cloned!'); |