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
[myrl@myrl:~/RISCV/diskimage-linux-riscv-2018-09-23]$ temu root-riscv64.cfg | |
[ 0.265492] NET: Registered protocol family 17 | |
[ 0.265826] 9pnet: Installing 9P2000 support | |
[ 0.268725] EXT4-fs (vda): couldn't mount as ext3 due to feature incompatibilities | |
[ 0.269414] EXT4-fs (vda): mounting ext2 file system using the ext4 subsystem | |
[ 0.275203] EXT4-fs (vda): mounted filesystem without journal. Opts: (null) | |
[ 0.275409] VFS: Mounted root (ext2 filesystem) on device 254:0. | |
[ 0.275965] devtmpfs: mounted | |
[ 0.276267] Freeing unused kernel memory: 80K | |
[ 0.276385] This architecture does not have kernel memory protection. |
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
Currently defined functions: | |
[, [[, acpid, add-shell, addgroup, adduser, adjtimex, arp, arping, ash, awk, base64, basename, beep, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, chmod, chown, | |
chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff, dirname, dmesg, | |
dnsd, dnsdomainname, dos2unix, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, | |
findfs, flock, fold, free, freeramdisk, fsck, fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, | |
ifconfig, ifdown, ifenslave, ifplugd, ifup, init, insmod, install, ionice, iostat, ip, ipaddr, i |
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
{ | |
environment.systemPackages = with pkgs; let | |
otacon = pkgs.writeScriptBin "otacon" | |
'' | |
#!${pkgs.stdenv.shell} | |
echo 'Baka onii-chan!' | |
''; | |
yi = callPackage /home/myrl/Development/yi {}; | |
system = [ efibootmgr grub2_efi ]; | |
word_editing = [ evince ]; # tex libreoffice ghostscript biber plover |
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
{ | |
environment.systemPackages = with pkgs; let | |
ghc = ghcWithPackages (hpkgs: with hpkgs; | |
[ xmonad | |
xmonad-contrib | |
xmonad-extras | |
]); | |
system = []; | |
word_editing = []; | |
media = []; |
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
listToAttrs (builtins.concatMap (name: | |
[(nameValuePair "duplicity-${name}" gcfg.archives.${name}.backupService) | |
(nameValuePair "duplicity-${name}-cleanup" gcfg.archives.${name}.backupService) | |
] | |
) (builtins.attrNames gcfg.archives)); |
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
defmodule TermuxSmsCli.Fetcher do | |
use GenServer | |
defp fetch_int(filter_fn, minimum) do | |
fetch_int(filter_fn, minimum, minimum) | |
end | |
defp fetch_int(filter_fn, minimum, count) do | |
{reply, 0} = System.cmd("ssh", ["192.168.2.8", "-p", "8022", "termux-sms-list", "-l", "#{count}"]) | |
reply = Jason.decode!(reply) |
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
[myrl@myrl:~]$ nix-build '<nixpkgs>' -A elixir.src --no-out-link | |
/nix/store/ffbdgaaq9sm3wq4mcpsbjjah78jbfala-source | |
[myrl@myrl:~]$ TERM=xterm-256color ssh [email protected] -p 8022 | |
Welcome to Termux! | |
[ omitted ] | |
$ ./nix-in-termux/nix-in-termux bash |
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
defmodule TermuxSmsCli.Fetcher do | |
use GenServer | |
defp fetch_int(filter_fn, minimum) do | |
fetch_int(filter_fn, minimum, minimum) | |
end | |
defp fetch_int(filter_fn, minimum, count) do | |
{reply, 0} = System.cmd("ssh", ["myrl-phone-tether", "-p", "8022", "termux-sms-list", "-l", "#{count}"]) | |
reply = Jason.decode!(reply) |
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
nix-shell -p '(with import <nixpkgs> { overlays = [ (self: super: { beam = self.lib.recursiveUpdate super.beam { interpreters.erlang = self.beam.interpreters.erlangR21; interpreters.elixir = self.beam.packages.erlang.elixir; packages.erlang = super.beam.packages.erlangR21.extend (self: super: { elixir = super.elixir_1_8; }); }; } )]; }; [ elixir beamPackages.hex ] )' |
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
iex([email protected])14> x = self(); Node.spawn_link(:"[email protected]", fn -> send x, TermuxSmsCli.Fetcher.start_link([]) end); {:ok, pid} = receive do x -> x end | |
{:ok, #PID<16052.226.0>} | |
iex([email protected])15> TermuxSmsCli.Fetcher.fetch(pid, 1) | |
[ | |
%{ | |
"body" => "You have up to 1GB of VIDEO EVERY DAY with your GIGA subscription. To check your balance and other exciting offers, dial *121# NOW! It's FREE and easy!", | |
"number" => "SMART", | |
"read" => true, | |
"received" => "2019-06-09 01:38", | |
"threadid" => 1, |