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
#!/bin/bash | |
# Github repository, just the name/repo part, no .git suffix, no base url! | |
REPO="lede-project/source" | |
# Your repository token, generate this token at your profile page: | |
# - Navigate to https://github.com/settings/tokens | |
# - Click on "Generate new token" | |
# - Enter a description, e.g. "pr.sh" and pick the "repo" scope | |
# - Hit "Generate token" |
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
#!/bin/sh | |
REPO=$1 | |
PR=$2 | |
PATCH=$3 | |
URIS=$(curl -s https://api.github.com/repos/$REPO/pulls/$PR/commits | sed -ne 's|^.*"html_url": "\(.*/commit/.*\)",|\1.patch|p') | |
i=1 |
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
#!/bin/bash | |
git filter-branch -f --tag-name-filter cat --commit-filter ' | |
eval $(git show --format=%B "$GIT_COMMIT" | sed -ne "s|Signed-off-by: \(.*\) <\(.*\)>$|SOB_AUTHOR='"'"'\\1'"'"'; SOB_EMAIL='"'"'\\2'"'"'|p" | head -n1) | |
if [ -n "$SOB_AUTHOR" -a -n "$SOB_EMAIL" -a "$GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL>" != "$SOB_AUTHOR <$SOB_EMAIL>" ]; then | |
echo -e "\nRewrite $GIT_COMMIT: $GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL> => $SOB_AUTHOR <$SOB_EMAIL>" >&2 | |
export GIT_AUTHOR_NAME="$SOB_AUTHOR" | |
export GIT_AUTHOR_EMAIL="$SOB_EMAIL" |
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 bash | |
# Script to perform verified file downloads. | |
# Exit codes: | |
# 0 - File downloaded successfully and verified | |
# 1 - Failed to download requested file | |
# 2 - Failed to download sha256sums file | |
# 3 - Failed to download sha256sums.gpg file | |
# 4 - GnuPG is available but fails to verify the signature (missing pubkey, file integrity error, ...) | |
# 5 - The checksums do not match | |
# 6 - Unable to copy the requested file to its final destination |
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
# | |
# Copyright (C) 2006 OpenWrt.org | |
# | |
# This is free software, licensed under the GNU General Public License v2. | |
# See /LICENSE for more information. | |
# | |
# $Id$ | |
include $(TOPDIR)/rules.mk | |
include $(INCLUDE_DIR)/kernel.mk |
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
# | |
# Copyright (C) 2016 Dan Luedtke <[email protected]> | |
# | |
# This is free software, licensed under the GNU General Public License v2. | |
# See /LICENSE for more information. | |
include $(TOPDIR)/rules.mk | |
PKG_NAME:=jool | |
PKG_VERSION:=3.5.1 |
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 bash | |
git_author="$(git config user.name)" | |
git_email="$(git config user.email)" | |
gpg_keyid="" | |
base_url="http://downloads.lede-project.org/releases" | |
[ -f "./feeds.conf.default" ] || { | |
echo "Please execute as ./${0##*/}" >&2 |
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 perl | |
use strict; | |
use warnings; | |
use Text::CSV; | |
my $range = $ARGV[0]; | |
unless (defined $range) { | |
printf STDERR "Usage: $0 range\n"; |
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/perl | |
use strict; | |
use warnings; | |
use Fcntl ':mode'; | |
my $phys = $ENV{'DOCUMENT_ROOT'}; | |
my $virt = '/'.$ENV{'PATH_INFO'}; |
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 bash | |
yesno() { | |
local prompt="$1" | |
local default="${2:-n}" | |
local input | |
while [ 1 ]; do | |
printf "%s y/n [%s] > " "$prompt" "$default" | |
read input |
OlderNewer