-
Download .nix file
-
Run:
$ nix run -f all-minecrafts.nix versions.v1_8_9.client -c minecraft
-
Enjoy (…power of fixed-output derivations)!
This file contains 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
{ | |
systemd.timers."matrix-synapse-janitor" = { | |
wantedBy = [ "timers.target" ]; | |
timerConfig = { | |
OnBootSec = "2h"; | |
OnUnitActiveSec = "2h"; | |
Unit = config.systemd.services."matrix-synapse-janitor".name; | |
}; | |
}; | |
This file contains 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 | |
sources = import ./sources.nix; | |
in import sources.nixus { | |
specialArgs.sources = sources; | |
} ({ config, ... }: { | |
defaults = { lib, name, ... }: { | |
configuration = { | |
config._module.args.sources = sources; | |
config.networking.hostName = lib.mkDefault name; | |
}; |
This file contains 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 nix-shell | |
#! nix-shell -i perl -p perl nixUnstable.perl-bindings | |
# pipe using stdin, to this script, where each line has the format | |
# <algo> <hash> <name> | |
# sha256 0q6gwd9pqh41f6j5p9jl92aji4p8kx9inffpha93d7jc3ndsfq6q rematch2_2.1.2.tar.gz | |
use strict; | |
use Nix::Store; |
This file contains 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
{ config, pkgs, lib, ... }: | |
with lib; | |
let | |
verifiedNetfilter = { text, modules ? [ ] }: | |
let | |
file = pkgs.writeText "netfilter" text; | |
vmTools = pkgs.vmTools.override { | |
rootModules = |
This file contains 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
function hook_okhttp3() { | |
Java.perform(function() { | |
var ByteString = Java.use("com.android.okhttp.okio.ByteString"); | |
var Buffer = Java.use('okio.Buffer'); var Interceptor = Java.use("okhttp3.Interceptor"); | |
var MyInterceptor = Java.registerClass({ | |
name: "okhttp3.MyInterceptor", | |
implements: [Interceptor], | |
methods: { | |
intercept: function(chain) { | |
var request = chain.request(); |
A website is presented, where you can choose from a list of options. When changing the options, a request is sent to the backend server which will give you a reply. One of the options is XXE, which will tell you that you cannot do XXE on JSON.
Inspecting the source of the website, it is shown that it encodes using JSON to communicate with the backend, which includes setting Content-Type: application/json
, with a format of {"message": "Cola"}
.
Instead it can be set to Content-Type: application/xml
, <message>Cola</message>
.
This file contains 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
{ pkgs ? import <nixpkgs> }: | |
let | |
scriptScreenOCR = pkgs.writeScript "screenocr" ''#!/bin/sh | |
${pkgs.maim}/bin/maim -s | ${pkgs.tesseract4}/bin/tesseract stdin stdout -l "eng+equ" --psm 1 --oem 3 | ${pkgs.xsel}/bin/xsel -i -b | |
${pkgs.libnotify}/bin/notify-send "OCR ready!" | |
''; | |
scriptScreenOCRWayland = pkgs.writeScript "screenocr" ''#!/bin/sh | |
${pkgs.grim}/bin/grim -t png -g "$(slurp)" - | ${pkgs.tesseract4}/bin/tesseract tesseract stdin stdout -l "eng+equ" --psm 1 --oem 3 | ${pkgs.wl-clipboard}/bin/wl-copy | |
${pkgs.libnotify}/bin/notify-send "OCR ready!" |
This file contains 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
package memory | |
import ( | |
"reflect" | |
"testing" | |
"gitlab.com/deviosec/octp/server/pkgs/store/models" | |
"golang.org/x/exp/errors/fmt" | |
) |
This file contains 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
--- a/udev-installer.sh 2018-12-09 12:05:53.772318942 +0100 | |
+++ b/udev-installer.sh 2018-12-09 12:06:19.939947629 +0100 | |
@@ -24,12 +24,12 @@ systemd_start_stop_functions() | |
cat <<'EOF' | |
start_service() | |
{ | |
- systemctl start displaylink-driver | |
+ @systemd@/bin/systemctl start --no-block dlm | |
} | |
NewerOlder