cvlc v4l2:// :v4l2-vdev="/dev/video0" --sout '#transcode{vcodec=mjpg,threads=2}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8080/}'wget -q -O - https://www.reddit.com/r/listentothis/top/.json\?count\=50\&t\=all | jq -r '.data.children[].data.url' | youtube-dl -f bestaudio -i -a -INIT=$(find . -type f -path '*nixos*/init' | tail -n 1)
BASH=$(find . -type f -path '*/bin/bash' | tail -n 1)
sed -i "s,exec systemd,exec /$BASH," $INIT
chroot . /$INIT
cp /etc/resolv.conf etc/resolv.conffind -name "*.webm" -exec ffmpeg -i {} -acodec libmp3lame -ab 128k {}.mp3 \;Hey! I'm Shenanigansen and I make comics around here, among other things. TAKE A LOOK WHY DON'TCHA.
nixpkgs.config = {
packageOverrides = pkgs: rec {
foo = pkgs.foo.override {
bar = true;
};
};
};nix-env -i nix-prefetch-scripts
nix-prefetch-git github.com/url --rev REV
clone nixpkgs, checkout -b branch, modify
NIX_PATH=nixpkgs=https://github.com/schneefux/nixpkgs/archive/master.tar.gz nix-env -i yourpkg
nixos-rebuild switch -I nixpkgs=pathtonixpkgsclone
Go:
new pkgs/.../default.nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "pkg-${version}";
version = "0";
rev = "hash";
goPackagePath = "github.com/foo/bar";
src = fetchFromGitHub {
inherit rev;
owner = "foo";
repo = "bar;
sha256 = "hash";
};
goDeps = ./deps.json;
}
new pkgs/.../deps.json
[
{
"include": "../../libs.json",
"packages": [
"github.com/bla/blub"
]
}
]
edit pkgs/development/go-modules/libs.json, add deps
Python:
{ stdenv, fetchurl, python3Packages }:
python3Packages.buildPythonApplication rec {
name = "app-${version}";
version = "0";
src = fetchurl {
url = "mirror://pypi/f/foo/${name}.tar.gz";
sha256 = "";
};
doCheck = false; # disable tests
meta = {
homepage = "https://home.page/";
license = stdenv.lib.licenses.gpl3;
};
}
edit pkgs/top-level/all-packages.nix
pk = callPackage ../()/pk { };pkgs:
perlPackages.CGI
perlPackages.HTMLParser
gitweb.conf
our $projectroot = "/var/www/git";
our $omit_owner = true;
our @git_base_url_list = qw(git://domain.net/);
web.nix nginx
server {
listen 80;
listen [::]:80;
server_name git.domain.net;
location /.well-known/acme-challenge {
root /var/www/challenges/;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name git.domain.net;
root ${pkgs.git}/share/gitweb;
index gitweb.cgi;
location /static {
root /var/www/git/;
}
location /gitweb.cgi {
include ${pkgs.nginx}/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME ${pkgs.git}/share/gitweb/gitweb.cgi;
fastcgi_param GITWEB_CONFIG /etc/nixos/gitweb.conf;
fastcgi_param PERL5LIB "${pkgs.perlPackages.CGI}/lib/perl5/site_perl:${pkgs.perlPackages.HTMLParser}/lib/perl5/site_perl";
fastcgi_pass unix:/run/fcgiwrap.sock;
}
}
web.nix
# perl cgi
services.fcgiwrap = {
enable = true;
user = "nginx";
group = "nginx";
};nick: user@device/network
pass: user:pass
umount boot: /boot has data, remove from fstab ;)
pacman -S trickle
trickle -s -d 400 -u 40 $CMDgit filter-branch -f --commit-filter 'GIT_COMMITER_NAME="schneefux"; GIT_AUTHOR_NAME="schneefux"; GIT_COMMITER_EMAIL="schneefux+commit@schneefux.xyz"; GIT_AUTHOR_EMAIL="schneefux+commit@schneefux.xyz"; git commit-tree "$@";' HEAD
checkout esp8266/Arduino, commit 1c5751460b7988041fdc80e0f28a31464cdf97a3
upload sketch: https://github.com/RandDruid/esp8266-deauth/blob/master/DeAuth/DeAuth.ino
diff --git a/tools/sdk/include/user_interface.h b/tools/sdk/include/user_interface.h
index 672ee7a..9adaccc 100644
--- a/tools/sdk/include/user_interface.h
+++ b/tools/sdk/include/user_interface.h
@@ -447,4 +447,9 @@ bool wifi_wps_start(void);
typedef void (*wps_st_cb_t)(int status);
bool wifi_set_wps_cb(wps_st_cb_t cb);
+typedef void (*freedom_outside_cb_t)(uint8 status);
+int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb);
+void wifi_unregister_send_pkt_freedom_cb(void);
+int wifi_send_pkt_freedom(uint8 *buf, int len, bool sys_seq);
+
#endifesptool flash_id
http://code.coreboot.org/svn/flashrom/trunk/flashchips.h
search for 0x (manufacturer)
search for 0x (device) from manufacturer
use a search engine to search device id
or: 2**(last 2 digits)/16
manufacturer: c8
device: 4014
-> 1MB flash, 64K SPIFFS
did not work :(
512K, no spiff works
device: 4013
-> 512K flash
further info: https://github.com/themadinventor/esptool/#read-spi-flash-id
reupload via serial, set flash size >= 1M
(if available)