Skip to content

Instantly share code, notes, and snippets.

View ingenieroariel's full-sized avatar

Ariel Núñez ingenieroariel

View GitHub Profile
/run/binfmt/riscv64 -strace ./busybox
12829 brk(NULL) = 0x00000000000a1000
12829 brk(0x00000000000a1f74) = 0x00000000000a1f74
12829 uname(0x40007ff578) = 0
12829 openat(AT_FDCWD,"/dev/tty",O_RDWR|O_NOCTTY|O_NONBLOCK) = 3
12829 writev(3,0x40007ff610,0x1)FATAL: kernel too old
= 22
12829 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000004000801000
12829 rt_sigprocmask(SIG_UNBLOCK,0x00000040007ff4d8,NULL) = 0
12829 rt_sigprocmask(SIG_BLOCK,0x00000040007ff440,0x00000040007ff3c0) = 0
#[root@nuc:/etc/nixos]# cat configuration.nix
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
./qemu.nix
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
@ingenieroariel
ingenieroariel / nix.sh
Last active January 22, 2019 22:18
nix on riscv development vm
# download riscv bbl
curl -O https://fedorapeople.org/groups/risc-v/disk-images/bbl
# download linux image
curl -O https://fedorapeople.org/groups/risc-v/disk-images/stage4-disk.img.xz
# uncompress linux image
unxz stage4-disk.img.xz
# run fedora inside riscv64 emulator
{
"builds": [
{ "src": "kepler.gl/package.json", "use": "@now/static-build" },
{ "src": "cog-explorer/package.json", "use": "@now/static-build" },
{ "src": "storage.go", "use": "@now/go" },
{ "src": "cluster.js", "use": "@now/node" }
]
}
@ingenieroariel
ingenieroariel / overpass.geojson
Created February 27, 2018 12:35 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ingenieroariel
ingenieroariel / README.md
Created February 10, 2018 18:04 — forked from KoGor/README.md
Earth globe

Интерактивный глобус с возможностью вращения мышкой и центрированием на выбранную страну. Подробнее о создании можно почитать на Хабрахабре.

This projected is licensed under the terms of the MIT license.

openapi: 3.0.0
servers:
- url: https://bsaexcedti.api.geosure.tech
description: development
- url: https://bsaexcedti.api.geosure.tech
description: staging
- url: https://bsaexcedti.api.geosure.tech
description: production
info:
description: GeoSure API
@ingenieroariel
ingenieroariel / index.html
Last active October 31, 2017 21:42 — forked from Lenninlasd/README
Heatmap
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.41.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.41.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
We couldn’t find that file to show.
@ingenieroariel
ingenieroariel / color-scale.js
Last active October 17, 2017 13:39
Ethiopia Population
var d3 = d3|| {};
d3.ColorScaleChooser = function(){
var squareWidth = 80, squareHeight = 30;
var scaleValues = [];
var parent = null;
var dispatcher = d3.dispatch("change");
var title = null;
var addText = "Add";
var yOffset = 0;