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
let | |
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/8c007b60731c07dd7a052cce508de3bb1ae849b4.tar.gz); | |
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }; | |
rustStableChannel = (nixpkgs.rustChannels.stable).rust.override { | |
extensions = [ | |
"rust-src" | |
"rust-analysis" | |
"rustfmt-preview" | |
"clippy-preview" | |
]; |
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
sudo mkdir /etc/nix | |
echo "use-sqlite-wal = false" | sudo tee -a /etc/nix/nix.conf | |
curl https://nixos.org/nix/install | sh | |
source ~/.profile | |
nix-env -iA direnv | |
echo "eval \"\$(direnv hook bash)\"" >> ~/.profile | |
source ~/.profile |
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/env bash | |
# enable USB tethering on an unrooted Android phone | |
PHONE_PIN=$(cat ~/.phone_pin) | |
$ADB shell <<SCRIPT | |
SCREEN_STATE=\$(dumpsys nfc | grep 'mScreenState=') | |
# unlock screen if needed |
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
sudo mkdir /etc/nix | |
echo "use-sqlite-wal = false" | sudo tee -a /etc/nix/nix.conf | |
curl https://nixos.org/nix/install | sh |
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
sudo apt install python | |
sudo mkdir /etc/nix | |
echo "use-sqlite-wal = false" | sudo tee -a /etc/nix/nix.conf | |
curl https://nixos.org/nix/install | sh | |
# restart terminal here | |
nix-env -f '<nixpkgs>' -iA nox nodejs-10_x yarn gnumake gcc git openssh | |
git clone [email protected]:FruitieX/wind-waker.git | |
cd wind-waker |
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
[tsl] ERROR in /home/rasse/src/lari-gatsby/src/p ages/index.tsx(17,14) [620/750] | |
TS7023: 'App' implicitly has return type 'any' because it does not have a return type anno tation and is referenced directly or indirectly in one of its r | |
eturn expressions. | |
Error: ./~/gatsby-module-loader?name=component---src-pages-index-tsx!./src/pages/index.tsx | |
[tsl] ERROR in /home/rasse/src/lari-gatsby/src/p ages/index.tsx(20,54) | |
TS2339: Property '__proto__' does not exist on type '() => any'. | |
Error: ./~/gatsby-module-loader?name=component---src-pages-index-tsx!./src/pages/index.tsx | |
[tsl] ERROR in /home/rasse/src/lari-gatsby/src/p ages/index.tsx(23,5) | |
TS2554: Expected 3 arguments, but got 2. | |
Error: ./~/babel-loader/lib?{"plugins":["/home/rasse/src/lari-gatsby/~/gatsby/dist/utils/babel-plugin-ext ract-graphql.js","/home/rasse/src/lari-gatsby/~/babel- |
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
users.extraUsers.foo = { | |
isNormalUser = true; | |
extraGroups = [ "wheel" ]; | |
}; | |
users.extraUsers.foo.extraGroups = [ "audio" ]; |
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 <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
name = "customEdid"; | |
src = ./1920x1080.bin; | |
phases = [ "installPhase" ]; | |
installPhase = '' |
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
android-env-chrootenv:rasse@rasse-laptop:~/Android/Sdk/build-tools/23.0.1$ strace -f ./aapt | |
execve("./aapt", ["./aapt"], 0x7ffeca4f9a98 /* 152 vars */) = -1 ENOENT (No such file or directory) | |
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 10), ...}) = 0 | |
write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory | |
) = 40 | |
getpid() = 12298 | |
exit_group(1) = ? | |
+++ exited with 1 +++ |
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
android-env-chrootenv:rasse@rasse-laptop:~/Android/Sdk/build-tools/23.0.1$ ldd aapt | |
linux-gate.so.1 (0xf7f9a000) | |
libc++.so => /home/rasse/Android/Sdk/build-tools/23.0.1/./lib/libc++.so (0xf7db9000) | |
librt.so.1 => /usr/lib32/librt.so.1 (0xf7db0000) | |
libdl.so.2 => /usr/lib32/libdl.so.2 (0xf7dab000) | |
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7d8d000) | |
libz.so.1 => /usr/lib32/libz.so.1 (0xf7d74000) | |
libm.so.6 => /usr/lib32/libm.so.6 (0xf7c79000) | |
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7c5c000) | |
libc.so.6 => /usr/lib32/libc.so.6 (0xf7a8e000) |
NewerOlder