Weapon | Base Damage | Silencer Damage | Silent Killer Aced (+30%) | Shotgun Extra Damage (+20%) | Pistol Extra Damage (+25%) |
---|---|---|---|---|---|
Rifles | |||||
308 | 8 | 6 | 7.8 | ||
AK 7.62 | 4 | 3 | 3.9 | ||
AMR-16 | 3 | 2 | 2.6 | ||
CAR4 | 2.25 | 1.5 | 1.95 | ||
CAR4 (Stealth) | 2.23 |
This file contains 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 | |
namespace Enum { | |
abstract class Enum { | |
public function __toString() { | |
return get_called_class(); | |
} | |
public static function types() { | |
$thisclass = get_called_class(); | |
if (get_parent_class($thisclass) !== __CLASS__) { |
This file contains 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
Directory Structure: | |
- /gits/<repo> | |
- /www/<site base>/ | |
- /www/<site base>/pages (docroot) | |
- /www/<site base>/conf.d/ (config files) | |
This file contains 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
Virtualbox | |
613mb ram | |
CentOS6.4 | |
- based on this box: https://github.com/2creatives/vagrant-centos/releases/download/v6.5.2/centos65-x86_64-20131219.box | |
- from this fellow: https://github.com/2creatives/vagrant-centos/ | |
Just a basic, masterless provision that takes 1 minutes to run. | |
Minion file looks like: |
This file contains 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
goofy: | |
- cmd.run: | |
- name: echo hello |
This file contains 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
# echo '{"test":123, "peso": [1,2,3]}' | docker run -i --rm --networking=false app /bin/bash -c 'cat - | php app.php' | |
object(stdClass)#1 (2) { | |
["test"]=> | |
int(123) | |
["peso"]=> | |
array(3) { | |
[0]=> | |
int(1) | |
[1]=> | |
int(2) |
This file contains 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 | |
require './defs.php'; | |
$gearmanClient = new GearmanClient(); | |
$gearmanClient->addServer(); | |
$modelsToRun = [ | |
ModelA::CLASS, | |
ModelB::CLASS, |
This file contains 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 | |
/* | |
* Make your Hue lights dance -- a very rudimentary Hue control script | |
*/ | |
$ip = 'your-ip-here'; | |
$user = 'your-username-here'; | |
$lights = array_flip(array(1,2)); // 3,4,5, etc |
This file contains 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 | |
echo '<pre>'; | |
/* | |
Have a table like | |
CREATE TABLE `inty` ( | |
`biu` bigint unsigned NOT NULL AUTO_INCREMENT, | |
`bis` bigint NOT NULL , |
This file contains 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
import time | |
import logging | |
import pprint | |
import random | |
from threading import Thread, Event | |
class lastPerThread(logging.Handler): | |
""" | |
A log handler which keeps the last log message availble per thread | |
""" |
OlderNewer