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
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | |
From: Matthew Clarkson <[email protected]> | |
Date: Wed, 1 Jan 3000 00:00:00 +0000 | |
Subject: [PATCH] Make scripts relocatable | |
--- | |
Makefile.in | 2 ++ | |
bin/aclocal.in | 7 ++++--- | |
bin/automake.in | 3 ++- | |
lib/Automake/Config.in | 3 ++- |
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
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | |
From: Matt Clarkson <[email protected]> | |
Date: Wed, 1 Jan 3000 00:00:00 +0000 | |
Subject: [PATCH] refactor: make binaries relocatable | |
Uses the binary locations and relative paths to the | |
package data directory to avoid having absolute paths | |
baked into the binary scripts. | |
--- | |
Makefile.in | 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
#!/bin/sh | |
# Usage: ./safe-directory.sh directory [.gitconfig] [dst] | |
# | |
# `git` will throw permission errors when a repository has been cloned with a | |
# user different to the runtime user. This script allows adding the cloned | |
# repository to the `safe.directory` configuration variable without the need | |
# for an installed `git` binary. | |
# | |
# This can be useful on CI runners, when the repository has been cloned as the | |
# `root` user but the build runs inside a container that has a user different |
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 python3 | |
from __future__ import annotations | |
import hashlib | |
import tarfile | |
from inspect import signature | |
from logging import getLogger, Logger, basicConfig | |
from binascii import hexlify |
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
/* | |
"husky": { | |
"hooks": { | |
"commit-msg": "node change-id.js -E HUSKY_GIT_PARAMS" | |
} | |
}, | |
*/ | |
const [,, arg, key] = process.argv |
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 | |
# # The MIT License (MIT) | |
# | |
# Copyright © 2019 **Tub Technology** _<[email protected]>_ | |
# | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the “Software”), to deal in the Software without | |
# restriction, including without limitation the rights to use, |
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 python | |
# encoding: utf-8 | |
import argparse | |
import errno | |
import logging | |
import os | |
import platform | |
import re | |
import sys |
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
useradd -m guest | |
chown guest:root /home/guest | |
chmod -w /home/guest | |
userdel guest | |
useradd -d /mnt/guest guest | |
passwd --delete guest |
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/python | |
# | |
# Copyright (c) 2009 Google Inc. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are | |
# met: | |
# | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. |
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
@echo off | |
verify other 2>nul | |
setlocal EnableDelayedExpansion | |
if not %ERRORLEVEL% equ 0 ( | |
echo Unable to enable extensions | |
goto failure | |
) | |
rem Start the ssh-agent if needed by git | |
for %%i in ("git.exe") do set GIT=%%~$PATH:i |
NewerOlder