It is possible to use curl to query the LXD unix.socket directly:
curl --unix-socket /var/lib/lxd/unix.socket http:/1.0/containers | jq .Example output:
{| diff --git a/tests/vmtests/__init__.py b/tests/vmtests/__init__.py | |
| index 593db694..b317e0ec 100644 | |
| --- a/tests/vmtests/__init__.py | |
| +++ b/tests/vmtests/__init__.py | |
| @@ -896,7 +896,8 @@ class VMBaseClass(TestCase): | |
| cmd = ["tools/launch", "--arch=" + cls.arch, "-v", dowait, | |
| "--smp=" + cls.get_config_smp(), "--mem=%s" % cls.mem] | |
| if not cls.interactive: | |
| - cmd.extend(["--silent", "--power=off"]) | |
| + #cmd.extend(["--silent", "--power=off"]) |
It is possible to use curl to query the LXD unix.socket directly:
curl --unix-socket /var/lib/lxd/unix.socket http:/1.0/containers | jq .Example output:
{| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE KeyboardMappingScheme> | |
| <!-- Written by Qt Creator 4.2.1, 2017-03-27T21:24:06. --> | |
| <mapping> | |
| <shortcut id="CppTools.OpenHeaderSourceInNextSplit"> | |
| <key value="Ctrl+E, F4"/> | |
| </shortcut> | |
| <shortcut id="CppTools.SwitchHeaderSource"> | |
| <key value="F4"/> | |
| </shortcut> |
| #!/bin/bash | |
| set -e | |
| echo -e "Image Converter for Slack Emoji\nNOTICE: The image will be overwritten." | |
| if [ $# -lt 1 ]; then | |
| echo "USAGE:" | |
| echo -e " ${0} IMG_FILE [IMG_FILE...]\n" | |
| echo "IMG_FILE:" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| var _log = console.log; | |
| window.console.log = function(log){ | |
| _log.call(console, log.reverse ? log.reverse() : typeof log === 'string' ? log.split('').reverse().join('') : typeof log === 'number' ? log.toString().split('').reverse().join('') : typeof log === 'boolean' ? !log : log); | |
| }; |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
This script only works for older versions of Spotify for Linux.
An actively developed admute script for Spotify on Linux can be found here: https://github.com/SecUpwN/Spotify-AdKiller