|
|\_ app
|...
|\_ docker
| |
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/perl | |
| # Author: Todd Larason <[email protected]> | |
| # $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $ | |
| # use the resources for colors 0-15 - usually more-or-less a | |
| # reproduction of the standard ANSI colors, but possibly more | |
| # pleasing shades | |
| # colors 16-231 are a 6x6x6 color cube | |
| for ($red = 0; $red < 6; $red++) { |
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
| extern crate gtk; | |
| #[macro_use] | |
| extern crate relm; | |
| #[macro_use] | |
| extern crate relm_derive; | |
| use gtk::{ | |
| Button, ButtonExt, ContainerExt, Inhibit, | |
| Orientation::{Horizontal, Vertical}, | |
| WidgetExt, Window, WindowType, |
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
| /* | |
| * dropbox_ext4.c | |
| * | |
| * Compile like this: | |
| * gcc -shared -fPIC -ldl -o libdropbox_ext4.so dropbox_ext4.c | |
| * | |
| * Run Dropbox like this: | |
| * LD_PRELOAD=./libdropbox_ext4.so ~/.dropbox-dist/dropboxd | |
| */ | |
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
| /* debug.css | MIT License | zaydek.github.com/debug.css */ if (!("is_debugging" in window)) { is_debugging = false; var debug_el = document.createElement("style"); debug_el.append(document.createTextNode(`*:not(g):not(path) { color: hsla(210, 100%, 100%, 0.9) !important; background: hsla(210, 100%, 50%, 0.5) !important; outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important; }`)); } function enable_debugger() { if (!is_debugging) { document.head.appendChild(debug_el); is_debugging = true; } } function disable_debugger() { if (is_debugging) { document.head.removeChild(debug_el); is_debugging = false; } } !is_debugging ? enable_debugger() : disable_debugger(); |
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
| <%= simple_form_for @product do |f| %> | |
| <%= f.simple_fields_for :attributes do |d| %> | |
| <% f.object.attributes.try(:each) do |key, value| %> | |
| <%= d.input key, :input_html => {:value => value } %> | |
| <% end %> | |
| <% end %> | |
| <% end %> |
I hereby claim:
- I am zzeroo on github.
- I am zzeroo (https://keybase.io/zzeroo) on keybase.
- I have a public key ASALy6kT3iwcgj3Y8Z0D1SygahKj5-odwVyve3SiC1W8Zgo
To claim this, I am signing this object:
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
| # Backup virtual maschines | |
| # TODO: debug notes `echo 'backup vm $i'` | |
| # fish | |
| for i in (virsh --connect=qemu:///system list --all --name); [ ! -z $i ] && virsh --connect=qemu:///system dumpxml $i | sudo tee /var/lib/libvirt/images/$i.xml >/dev/null ; end | |
| # bash | |
| #for i in $(virsh --connect=qemu:///system list --all --name); do [ ! -z $i ] && virsh --connect=qemu:///system dumpxml $i | sudo tee /var/lib/libvirt/images/$i.xml >/dev/null ; done | |
| # Create btrfs Snapshot | |
| sudo btrfs subvol snap -r /mnt/btrfs_storage2900G/@var-lib-libvirt-images /mnt/btrfs_storage2900G/@snapshots/@var-lib-libvirt-images-ro |
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
| --> src/main.rs:60:41 | |
| | | |
| 29 | ui_event_sender: Sender<UiEvent>, | |
| | --------------- move occurs because `ui_event_sender` has type `futures_channel::mpsc::Sender<UiEvent>`, which does not implement the `Copy` trait | |
| ... | |
| 49 | refresh_button.connect_clicked(move |_| { | |
| | -------- value moved into closure here | |
| 50 | ui_event_sender | |
| | --------------- variable moved due to use in closure | |
| ... |
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
| use std::thread; | |
| use tokio::runtime::Runtime; | |
| use tokio_modbus::prelude::*; | |
| use tokio_serial::Serial; | |
| fn main() { | |
| thread::spawn(|| { | |
| let mut rt = Runtime::new().expect("Couldn't create Runtime"); | |
| rt.block_on(async { | |
| let port = Serial::from_path("/dev/ttyUSB0", &Default::default()).unwrap(); |