https://www.youtube.com/playlist?list=PLKK11Ligqitg9MOX3-0tFT1Rmh3uJp7kA
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
// Using the && (logical AND) operator. | |
#define pm_driver_has_callback(__device, __callback) \ | |
((__device)->driver && (__device)->driver->pm && (__device)->driver->pm->__callback) | |
#define pm_driver_do_callback(__device, __callback) \ | |
(pm_driver_has_callback(__device, __callback) ? (__device)->driver->pm->__callback(__device) : 0) | |
// Using a statement expression to avoid using ternary operator... |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/focal64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize [ "modifyvm", :id, "--uartmode1", "file", "/dev/null" ] | |
end | |
end |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
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
[ 5.250222] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) | |
[ 5.255513] ------------[ cut here ]------------ | |
[ 5.255514] WARN_ON(!IS_PLATFORM(dev_priv, INTEL_SKYLAKE) && !IS_PLATFORM(dev_priv, INTEL_KABYLAKE)) | |
[ 5.255562] WARNING: CPU: 3 PID: 518 at drivers/gpu/drm/i915/i915_drv.c:192 intel_pch_type+0x1f3/0x5f0 [i915] | |
[ 5.255563] Modules linked in: i915(+) snd_hda_intel snd_intel_nhlt snd_hda_codec drm_kms_helper snd_hda_core drm snd_hwdep snd_pcm i2c_algo_bit snd_timer fb_sys_fops snd syscopyarea intel_rapl_perf(+) sysfillrect sysimgblt soundcore input_leds intel_pch_thermal pcspkr intel_wmi_thunderbolt serio_raw topstar_laptop sparse_keymap acpi_pad acpi_tad fjes(-) mac_hid zcommon(PO+) znvpair(PO) spl(O) vhost_net vhost tap ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi sunrpc scsi_transport_iscsi ip_tables x_tables autofs4 xfs btrfs xor zstd_compress raid6_pq libcrc32c psmouse i2c_i801 r8169 ahci realtek libahci wmi video | |
[ 5.255579] CPU: 3 PID: 518 Comm: |
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
kwilczynski@ubuntu:~$ grpcurl kw-alpha4.us-east1.apps.lbcs.io:443 describe | |
com.example.myservice.MyService is a service: | |
service MyService { | |
rpc AddItem ( .com.example.myservice.MyAddItem ) returns ( .google.protobuf.Empty ) { | |
option (.google.api.http) = { post:"/state/{user_id}/items/add" body:"*" }; | |
} | |
rpc GetState ( .com.example.myservice.MyGetState ) returns ( .com.example.myservice.MyState ) { | |
option (.google.api.http) = { get:"/state/{user_id}" additional_bindings:<get:"/state/{user_id}/items" response_body:"items" > }; | |
} | |
rpc RemoveItem ( .com.example.myservice.MyRemoveItem ) returns ( .google.protobuf.Empty ) { |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"os/signal" | |
"syscall" | |
) |
Problems with italics and the code blocks (inline or otherwie).
Given:
`test _test_`
```
test _test_
```
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
diff --git a/include/linux/ip_vs.h b/include/linux/ip_vs.h | |
index 4deb383..3d4e7af 100644 | |
--- a/include/linux/ip_vs.h | |
+++ b/include/linux/ip_vs.h | |
@@ -27,6 +27,18 @@ | |
#define IP_VS_DEST_F_AVAILABLE 0x0001 /* server is available */ | |
#define IP_VS_DEST_F_OVERLOAD 0x0002 /* server is overloaded */ | |
+ /* | |
+ * Advisory flags for slow start. |
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 ( | |
"github.com/aelsabbahy/goss/outputs" | |
"github.com/aelsabbahy/goss/util" | |
) | |
func TestUseAsPackage(t *testing.T) { | |
output := &bytes.Buffer{} | |
// temp spec file | |
fh, err := ioutil.TempFile("", "*.yaml") |