Color | Base16 (ish) |
---|---|
Dark Gray | #4A4848 |
Red | #AB4642 |
Green | #95B56C |
Yellow | #F7CA88 |
Blue | #7C98C2 |
Magenta | #B68BBA |
Cyan | #86C1B9 |
Light Gray | #D5D3D3 |
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:
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
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 |
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
.switcher-box-layout { | |
background-color: #323030; | |
border-radius: 4px; | |
box-shadow: 0 2px 8px rgba(24, 28, 32, .8); | |
color: #AAA; | |
font-family: Ubuntu, sans-serif; | |
margin-top: 100px; | |
overflow: hidden; | |
} |
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
<?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"> |
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
version: '2' | |
services: | |
transmission-vpn: | |
container_name: transmission-vpn | |
image: phlak/openvpn | |
ports: | |
- '9091:9091' | |
- '6771:6771' | |
volumes: |
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 | |
$finder = PhpCsFixer\Finder::create() | |
->exclude('vendor') | |
->in(__DIR__); | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR1' => true, | |
'@PSR2' => true, |
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 | |
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' |
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
// -------------------------------------------------------------------------- // | |
// -----| INTERFACE AND INPUT |---------------------------------------------- // | |
// -------------------------------------------------------------------------- // | |
cl_showloadout 1 | |
cl_teamid_overhead_mode 1 | |
engine_no_focus_sleep 0 | |
r_show_build_info 1 | |
m_rawinput 1 |
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
#!/usr/bin/env bash | |
adb reboot recovery | |
adb wait-for-device | |
adb shell twrp backup SDBO | |
adb reboot |
NewerOlder