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
| # bash completion for birdc, supporting _most_ command paths, relevant for BGP and some default actions. RIP/OSPF/other protocols explicitly not supported | |
| # License: MIT | |
| _birdc_get_protocol_names() { | |
| birdc show protocols 2>/dev/null | awk 'NR>2 {print $1}' | |
| } | |
| _birdc_completions_show() { | |
| # Only jump into current level, if the current level is already finished | |
| local this_level= |
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
| [bebe:~/stringtest] % gcc --version | |
| gcc (GCC) 8.2.1 20180831 | |
| Copyright (C) 2018 Free Software Foundation, Inc. | |
| This is free software; see the source for copying conditions. There is NO | |
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| [bebe:~/stringtest] % gcc -o stringtest stringtest.c -O0 | |
| [bebe:~/stringtest] % ./stringtest | |
| sameptr: (diff: 0) | |
| same1: 0x563efba8d004 | |
| same2: 0x563efba8d004 |
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
| /gdkpb |
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
| /x |
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
| # PKGBUILD builds current coccinelle master, as the current coccinelle stable release is not buildable on ArchLinux anymore. | |
| # Diff it against https://aur.archlinux.org/cgit/aur.git/commit/?h=coccinelle&id=540550d09c602fac376a87544833eda2a77e9647 | |
| # Maintainer: Omar Sandoval <osandov at osandov dot com> | |
| # Contributor: Roger Zanoni <rogerzanoni@gmail.com> | |
| # Contributor: Sylvain Henry <hsyl20@gmail.com> | |
| # Contributor: Marti Raudsepp <marti@juffo.org> | |
| # Contributor: Dan McGee <dpmcgee@gmail.com> | |
| # Contributor: LeCrayonVert <sunrider@laposte.net> | |
| # Contributor: Lukas Fleischer <archlinux@cryptocrack.de> |
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
| # See for WSSE key generation this link: | |
| # https://oroinc.com/orocrm/doc/2.0/cookbook/how-to-use-wsse-authentication | |
| # Returns a dictionary of headers | |
| def genheaders(user_name, user_key): | |
| random = str(uuid.uuid4()).encode('ascii') | |
| nonce = hashlib.md5(random).digest()[0:16] | |
| curdate = datetime.datetime.now().replace(microsecond=0) | |
| hash_digest = hashlib.sha1() | |
| hash_digest.update(nonce) |
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
| root/boot/ | |
| root/lib/modules | |
| root/usr/include/ | |
| root/usr/src/ | |
| root/usr/src/ | |
| root/var/log/ | |
| !root/var/log/nginx | |
| !root/var/log/seafile | |
| root/var/lib/apt | |
| root/tmp/* |
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
| FROM alpine | |
| RUN apk add --no-cache \ | |
| cairo \ | |
| dbus \ | |
| glib \ | |
| gtk+3.0 \ | |
| libxdg-basedir \ | |
| libxft \ | |
| libxinerama \ |
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 | |
| # 'ldd % | wc -l | grep -v ^1$' | |
| # ^ if file is not a dynamic linked executable, ldd will print one line on STDOUT, but we have to ignore this | |
| find $(echo $PATH | tr : ' ') -mindepth 1 -maxdepth 1 \ | |
| | xargs -I% bash -c 'ldd % | wc -l | grep -v ^1$' \ | |
| while read line;\ | |
| do l=$((l + line));\ | |
| done \ | |
| && echo $l |
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 -euo pipefail | |
| DNS_REC=<your record> | |
| SEC=<secret> | |
| INTERVAL=1200 # in seconds | |
| DNS_MASTER="$(dig SOA +short "${DNS_REC}")" | |
| unchanged4() { |
NewerOlder