Please read official documentation from PfSense project here:
See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.jsonfile in/etc/docker:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
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
| # docker-compose up -d | |
| sabnzbd: | |
| image: "sabnzbd/sabnzbd" | |
| container_name: "sabnzbd" | |
| volumes: | |
| - "/opt/appdata/sabnzbd:/datadir" | |
| - "/mnt/volume01/movies:/movies" | |
| - "/mnt/volume01/downloads:/downloads" | |
| ports: |
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
| #!/usr/bin/env python | |
| import os | |
| import re | |
| import subprocess | |
| def cpuTemp(hostname): | |
| sysctl = subprocess.Popen(['/sbin/sysctl', '-a'],stdout=subprocess.PIPE) | |
| while True: | |
| line = sysctl.stdout.readline() |
NOTE: Your mileage may vary, depending on project, and/or perhaps you prefer a different IDE altogether.
The principles here are what we're shooting for, not necessarily that everything be used verbatim.
In the interest of automating code quality, and cutting down on the necessity for manual code reviews, we strongly urge each front-end developer to install these Sublime Text packages.
- Babel
- SublimeLinter
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
| def toCamelCase(String string) { | |
| String result = "" | |
| string.findAll("[^\\W]+") { String word -> | |
| result += word.capitalize() | |
| } | |
| return result | |
| } | |
| afterEvaluate { project -> | |
| Configuration runtimeConfiguration = project.configurations.getByName('compile') |
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
| platform :ios, '7.0' | |
| # Core Data | |
| pod 'SSDataKit', :git => 'https://github.com/soffes/SSDataKit', :commit => '60d432e734ae11e8cfedac8ac5f68c0ce8a1b9ba' | |
| # On-disk & in-memory caching | |
| pod 'SAMCache' | |
| # Fast image view for Core Image | |
| pod 'SAMCoreImageView', '0.1.3' |
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
| @import MobileCoreServices; | |
| static CFStringRef UTTypeForImageData(NSData *data) { | |
| const unsigned char * bytes = [data bytes]; | |
| if (data.length >= 8) { | |
| if (bytes[0] == 0x89 && bytes[1] == 0x50 && bytes[2] == 0x4E && bytes[3] == 0x47 && bytes[4] == 0x0D && bytes[5] == 0x0A && bytes[6] == 0x1A && bytes[7] == 0x0A) { | |
| return kUTTypePNG; | |
| } | |
| } |
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
| @interface UIView (MPAdditions) | |
| @end | |
| @implementation UIView (MPAdditions) | |
| - (id)debugQuickLookObject { | |
| if (self.bounds.size.width < 0.0f || self.bounds.size.height < 0.0f) { | |
| return nil; | |
| } | |
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: reveal.py | |
| Add to ~/.lldbinit: | |
| command script import ~/.lldb-scripts/reveal.py | |
| Q: Want to automatically load the Reveal lib on launch while debugging from Xcode? | |
| A: In Xcode: | |
| Add a Symbolic Breakpoint | |
| Symbol: "UIApplicationMain" | |
| Action: Debugger Command with value "reveal" |
NewerOlder