Skip to content

Instantly share code, notes, and snippets.

View legionus's full-sized avatar

Alexey Gladkov legionus

  • Brno, Czech Republic
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <keymap.h>
int main(int argc, char **argv)
{
lk_table_shape table = LK_SHAPE_DEFAULT;
int rc = -1;
char numeric = 0;
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdio.h>
int main(int argc, const char *argv[])
{
int sock_pair[2];
if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sock_pair) < 0) {
#!/bin/sh
gettimeofday() {
date '+%s%N'
}
bash_timing() {
local LANG=C rc=$?
if [ "$BASH_COMMAND" == "$PROMPT_COMMAND" ]; then
[ -n "${__BASH_TIMING__-}" ] ||
14:58.76 gmake[4]: Leaving directory '/usr/src/RPM/BUILD/firefox-61.0/mozilla/objdir/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_gn'
14:59.34 error: linking with `/usr/src/RPM/BUILD/firefox-61.0/mozilla/build/cargo-linker` failed: exit code: 1
14:59.34 |
14:59.34 = note: "/usr/src/RPM/BUILD/firefox-61.0/mozilla/build/cargo-linker" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "/usr/src/RPM/BUILD/firefox-61.0/mozilla/objdir/toolkit/library/release/build/style-cfd05dae3d00f247/build_script_build-cfd05dae3d00f247.build_script_build0.rcgu.o" "-o" "/usr/src/RPM/BUILD/firefox-61.0/mozilla/objdir/toolkit/library/release/build/style-cfd05dae3d00f247/build_script_build-cfd05dae3d00f247" "/usr/src/RPM/BUILD/firefox-61.0/mozilla/objdir/toolkit/library/release/build/style-cfd05dae3d00f247/build_script_build-cfd05dae3d00f247.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/usr/src/RPM/
diff --git a/vendor/github.com/docker/distribution/registry/storage/driver/swift/swift.go b/vendor/github.com/docker/distribution/registry/storage/driver/swift/swift.go
index 4b7aa4e9f2..27f15bfd25 100644
--- a/vendor/github.com/docker/distribution/registry/storage/driver/swift/swift.go
+++ b/vendor/github.com/docker/distribution/registry/storage/driver/swift/swift.go
@@ -31,6 +31,7 @@ import (
"strings"
"time"
+ "github.com/coreos/go-semver/semver"
"github.com/mitchellh/mapstructure"
@legionus
legionus / sha256.sh
Last active November 13, 2019 14:17
#!/bin/bash -u
# Released into the Public Domain.
#
# Original implementation in C by Brad Conte ([email protected]) <https://github.com/B-Con/crypto-algorithms>
# Ported to Bash (lol) by Josh Junon ([email protected]) <https://github.com/qix->
#
# Original gist is https://gist.github.com/Qix-/affef08b50686e54e1f2ca18f97a6ff7
# Removed external utilities.
#
#!/bin/sh -eu
. shell-error
. shell-signal
PROG_VERSION=1.0
show_help()
{
cat <<-EOF
<!doctype html>
<html>
<head>
<script src="https://d3js.org/d3.v5.min.js"></script>
</head>
<body>
<svg width="600" height="400" style="background: #ccc" font-family="sans-serif" font-size="10" text-anchor="middle"></svg>
<script>
const width = 600, height = 400;
#!/bin/ash -efux
export DISPLAY=:0
export LIBDIR="$(getconf LIBDIR)"
# $ hsh --init
# $ hsh-install firefox xauth
# $ hsh-install fonts-ttf-google-droid-sans fonts-ttf-google-droid-sans-mono fonts-ttf-google-droid-serif
# $ grep -v '^#' /etc/hasher-priv/fstab
# tmpfs /dev/shm tmpfs size=500m,nr_inodes=4096 0 0
#!/bin/bash -efu
# SPDX-License-Identifier: GPL-2.0
PROG="${0##*/}"
PROGCMD="${PROG#git-}"
message()
{
printf >&2 '%s: %s\n' "$PROG" "$*"
}