Table of Contents
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
$ snap connections wire | |
Plug Slot Interface Notes | |
wire:gtk-3-themes gtk-common-themes:gtk-3-themes content - | |
wire:icon-themes gtk-common-themes:icon-themes content - | |
wire:sound-themes gtk-common-themes2:sound-themes content - | |
$ snap connections wire |
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
#!/bin/bash | |
set -eu | |
export LC_ALL=C | |
LOOPS=40 | |
COUNT="${COUNT-20}" | |
PREFIX=/tmp/mounttest |
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 python3 | |
# prepare image: | |
# dd if=/dev/zero of=img bs=1M count=1 | |
# mkfs.vfat img | |
# echo 'foo=bar' > uboot.env | |
# mcopy -i img uboot.env ::uboot.env | |
# mcopy -i img uboot.env ::'uboot canary long name.env' | |
# ./corrupt.py img --corrupt 'uboot canary long name.env' --short=uboot.env --long=uboot.env --update-checksum | |
# /snap/core/current/sbin/fsck.vfat -av img |
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
#!/bin/bash | |
set -e -o pipefail | |
tmpfile=$(mktemp -t gopkgsize.XXXXX) | |
sizesfile=$(mktemp -t gopktsize-output.XXXXX) | |
trap "rm -f $tmpfile" EXIT | |
go build -work -v -x "$@" 2>$tmpfile |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"os/exec" | |
"strconv" | |
) |
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
package main | |
import ( | |
"errors" | |
"fmt" | |
"testing" | |
) | |
type App struct { | |
Name string |
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
#!/bin/bash | |
if [ -n "$V" ]; then | |
set -x | |
fi | |
PORT_BASE=59401 | |
make_port_number() { | |
echo $((PORT_BASE + RANDOM % 100)) |