Skip to content

Instantly share code, notes, and snippets.

👨‍💻
☕️ ☕️ ☕️ ☕️ ☕️ ☕️ ☕️ ☕️ ☕️

Chris Kankiewicz PHLAK

👨‍💻
☕️ ☕️ ☕️ ☕️ ☕️ ☕️ ☕️ ☕️ ☕️
Block or report user

Report or block PHLAK

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@PHLAK
PHLAK / README.md
Last active Mar 30, 2019
Restic Installation & Configuration
View README.md

Install the pre-compiled Restic binary.

curl --silent --location https://github.com/restic/restic/releases/download/v0.9.4/restic_0.9.4_linux_amd64.bz2 | bzip2 --decompress \
| sudo tee /usr/bin/restic > /dev/null && sudo chmod +x /usr/bin/restic

Backup:

source /etc/restic/config && sudo -E restic backup --option b2.connections=10 --exclude-caches --exclude-file /etc/restic/excludes.list /home /etc

Cleanup:

@PHLAK
PHLAK / docker-compose.yaml
Created Jun 1, 2018
Plex Docker compose file
View docker-compose.yaml
version: '2'
services:
plex-media-server:
container_name: plex-media-server
image: plexinc/pms-docker
environment:
PLEX_CLAIM: [YOUR_TOKEN_HERE]
TZ: America/Phoenix
network_mode: host
View stylesheet.css
.switcher-box-layout {
background-color: #2B303B;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(24, 28, 32, .8);
color: #AAA;
font-family: Ubuntu, sans-serif;
margin-top: 100px;
}
StEntry.switcher-entry {
@PHLAK
PHLAK / phpmd.xml
Created Sep 19, 2017
PHPMD ruleset
View phpmd.xml
<?xml version="1.0"?>
<ruleset
name="My first PHPMD rule set"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
>
<description>
<rule ref="rulesets/cleancode.xml">
@PHLAK
PHLAK / docker-compose.yml
Created Jul 25, 2017
Docker compose file for transmission-daemon + OpenVPN
View docker-compose.yml
version: '2'
services:
transmission-vpn:
container_name: transmission-vpn
image: phlak/openvpn
ports:
- '9091:9091'
- '6771:6771'
volumes:
@PHLAK
PHLAK / .php_cs.dist
Last active May 16, 2017
Custom .php_cs.dist file for php-cs-fixer
View .php_cs.dist
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
@PHLAK
PHLAK / test.php
Created Sep 19, 2016
Testing the difference between PHP's "??" and "?:" operators.
View test.php
<?php
unset($foo);
var_dump($foo ?? 'bar'); // 'bar'
var_dump($foo ?: 'bar'); // 'bar' (PHP Notice: Undefined variable: foo ...)
$foo = 'foo';
var_dump($foo ?? 'bar'); // 'foo'
var_dump($foo ?: 'bar'); // 'foo'
@PHLAK
PHLAK / autoexec.cfg
Last active Feb 17, 2019
Custom Counter-Strike: Global Offensive autoexec.cfg
View autoexec.cfg
// -------------------------------------------------------------------------- //
// -----| INTERFACE AND INPUT |---------------------------------------------- //
// -------------------------------------------------------------------------- //
cl_hud_radar_scale 1
cl_radar_scale 0.66
cl_crosshairdot 0
cl_crosshairgap -1
cl_crosshairstyle 4
cl_crosshairsize 2
@PHLAK
PHLAK / twrp_backup.sh
Last active Dec 27, 2018
TWRP Backup Script
View twrp_backup.sh
#!/usr/bin/env bash
adb reboot recovery
adb wait-for-device
adb shell twrp backup SDBO
adb reboot
@PHLAK
PHLAK / build.json
Created Nov 13, 2014
Packer QEMU / KVM example.
View build.json
{
"variables": {
"ssh_user": "root",
"ssh_pass": "T@c0_Bu3n0"
},
"builders": [
{
You can’t perform that action at this time.