zpool export -a
zpool import -N -R /mnt rpool
zpool import -N -R /mnt bpool
zfs load-key -a
# Add *UUID* at the end, if appropriate; use zfs list to see your values:
zfs mount rpool/ROOT/ubuntu
zfs mount bpool/BOOT/ubuntu
zfs mount -a
  
    
      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
    
  
  
    
  | with (import (fetchTarball https://git.io/Jf0cc) {}); | |
| let Deps = ps: with ps; [ pip wheel cython ]; | |
| Env = python3.withPackages Deps; | |
| in mkShell { | |
| buildInputs = [ Env ]; | |
| shellHook = '' | |
| python -m venv env | |
| source env/bin/activate | |
| ''; | 
  
    
      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
    
  
  
    
  | void quickSort(int arr[], int start, int end) | |
| { | |
| if (start >= end) return; | |
| int p = partition(arr, start, end); | |
| quickSort(arr, start, p - 1); | |
| quickSort(arr, p + 1, end); | |
| } | 
  
    
      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
    
  
  
    
  | /dev/mapper/cr_system-opensuse / btrfs defaults,ssd 0 0 | |
| /dev/mapper/cr_system-opensuse /var btrfs subvol=/@/var 0 0 | |
| /dev/mapper/cr_system-opensuse /usr/local btrfs subvol=/@/usr/local 0 0 | |
| /dev/mapper/cr_system-opensuse /tmp btrfs subvol=/@/tmp 0 0 | |
| /dev/mapper/cr_system-opensuse /srv btrfs subvol=/@/srv 0 0 | |
| /dev/mapper/cr_system-opensuse /root btrfs subvol=/@/root 0 0 | |
| /dev/mapper/cr_system-opensuse /opt btrfs subvol=/@/opt 0 0 | |
| /dev/mapper/cr_system-opensuse /home btrfs subvol=/@/home 0 0 | |
| /dev/mapper/cr_system-opensuse /.snapshots btrfs subvol=/@/.snapshots 0 0 | |
| /dev/system/swap swap swap defaults 0 0 | 
  
    
      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
    
  
  
    
  | Config { overrideRedirect = False | |
| , font = "xft:iosevka-9" | |
| , bgColor = "#5f5f5f" | |
| , fgColor = "#f8f8f2" | |
| , position = TopW L 90 | |
| , commands = [ Run Weather "EGPF" | |
| [ "--template", "<weather> <tempC>°C" | |
| , "-L", "0" | |
| , "-H", "25" | |
| , "--low" , "lightblue" | 
  
    
      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 XMonad | |
| import XMonad.Hooks.DynamicLog | |
| import XMonad.Hooks.StatusBar | |
| import XMonad.Hooks.StatusBar.PP | |
| import XMonad.Hooks.EwmhDesktops | |
| import XMonad.Hooks.ManageDocks | |
| import XMonad.Hooks.ManageHelpers | |
| import XMonad.Util.EZConfig | 
  
    
      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
    
  
  
    
  | fn main() { | |
| let mut from:i32 = 0; | |
| let to:i32 = 10; | |
| loop { | |
| if from != to { | |
| print!("{},",from); | |
| from = from + 1; | |
| } else if from == to { | |
| println!("{}",to); | |
| break; | 
  
    
      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
    
  
  
    
  | COUNTER=0 | |
| while true; do | |
| xdotool click 1 | |
| sleep 0.001s | |
| echo chicked $COUNTER | |
| let COUNTER=COUNTER+1 | |
| done | 
  
    
      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
    
  
  
    
  | bmi :: (RealFloat a) => a -> a -> String | |
| bmi weight height | |
| | weight / (height / 100)^2 <= 18.5 = "You're underweight, you emo, you!" | |
| | weight / (height / 100)^2 <= 25.0 = "You're supposedly normal. Pffft, I bet you're ugly!" | |
| | weight / (height / 100)^2 <= 30.0 = "You're fat! Lose some weight, fatty!" | |
| | otherwise = "You're a whale, congratulations!" | 
  
    
      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
    
  
  
    
  | //compile with pkg-config --cflags gtk+-3.0 --libs gtk+-3.0 | |
| #include <gtk/gtk.h> | |
| static void | |
| start(GtkApplication* app, gpointer user_data); | |
| int | |
| main(int argc, char**argv) | |
| { | |
| GtkApplication *app; | 
NewerOlder