Skip to content

Instantly share code, notes, and snippets.

@clample
clample / dualboot.md
Last active March 29, 2024 09:03
NixOS Ubuntu Dual Boot

NixOS Ubuntu Dual Boot

Why?

After using NixOS for a year, I've found it to be a great operating system. When the software I need is on nixpkgs, things work out great. When I need to install software from outside of nixpkgs, though, it can become a pain. Trying to figure out the quirks of some closed source application can become pretty complicated. It would be great to package it and contribute it back to nixpkgs, but a lot of the time I just want to have the application working as soon as possible.

Since Ubuntu is a more standard linux distribution, I hope that it's better supported by some of these closed source applications. By dual booting, it's possible to get the best of both worlds.

Alternatives to Dual Booting

package org.testobject.appium.tests.android.basic;
import io.appium.java_client.android.AndroidDriver;
import org.junit.Test;
import org.openqa.selenium.remote.DesiredCapabilities;
import java.net.URL;
public class NoResetWebTest {
@clample
clample / error.txt
Created April 17, 2018 14:13
Appium appium-remote-debugger error
root@d4fd30cf9ff1:/# node /node_modules/appium --version
Error: Cannot find module 'appium-remote-debugger'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/node_modules/appium/node_modules/appium-xcuitest-driver/build/lib/commands/context.js:15:29)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
@clample
clample / links.md
Created January 5, 2017 16:14
Link Checker Sample
import qualified Data.Sequence as Sequence
import Control.Monad
import Data.Maybe
import System.Random
data Move = Move Position Space
newtype Position = Position (Int, Int)
newtype Board = Board (Sequence.Seq Space)
i=1
while (i<=100):
threeDivides = i%3==0
fiveDivides = i%5==0
if (threeDivides and fiveDivides):
print("CracklePop")
elif(threeDivides):
print("Crackle")
elif(fiveDivides):
print("Pop")