Skip to content

Instantly share code, notes, and snippets.

View jsoref's full-sized avatar
🤕
concussions are awful things would not recommend

Josh Soref jsoref

🤕
concussions are awful things would not recommend
View GitHub Profile
@hazelweakly
hazelweakly / cry-more.html
Last active January 8, 2023 07:46
Enron Mullet Is A Giant CryBaby
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Redirecting to the Fediverse</title>
<head>
<script>
// let's say this is hosted at example.com. Given a url of one of the forms:
// - example.com/@user@instance.com/post_id
// - example.com/@user@instance.com
// - example.com/@instance.com
// redirect accordingly
@captn3m0
captn3m0 / README.md
Created June 30, 2021 10:05
Grant Security Alert Permission on GitHub Org Script
  1. Set your Cookie header value in Line 3 of give-access.sh
  2. Set the team IDs that will have access on Line 24. You can add multiple teams.
  3. Edit the repos.txt file with one repository per line
  4. Make sure jq curl and pup are installed. (pup is available at https://github.com/EricChiang/pup)
  5. Run the script (./give-access.sh). A response code of 302 indicates the change was made successfully for that repo. Anything else is failure.

The only 3 cookies that you need to set are: __Host-user_session_same_site, user_session, _gh_sess

The values for user_session and _gh_sess are the same.

diff --git a/downloads.md b/downloads.md
index 0ef3bfe..1cbcec3 100644
--- a/downloads.md
+++ b/downloads.md
@@ -20,14 +20,14 @@ available, often in the package called **pdns**, **powerdns-server**,
#### Current releases
Release notes can be browsed as part of the documentation: [Authoritative Server](https://doc.powerdns.com/authoritative/changelog/), [Recursor](https://doc.powerdns.com/recursor/changelog/).
-The most recent release of the PowerDNS Authoritative Server is **4.4.0** and is available as:
+The most recent supported release of the PowerDNS Authoritative Server is **4.4.0** and is available as:
@swinton
swinton / README.md
Last active May 14, 2024 10:06
Automatically sign your commits from GitHub Actions, using the REST API

Verified commits made easy with GitHub Actions

image

So you want to commit changes generated by a GitHub Actions workflow back to your repo, and have that commit signed automatically?

Here's one way this is possible, using the REST API, the auto-generated GITHUB_TOKEN, and the GitHub CLI, gh, which is pre-installed on GitHub's hosted Actions runners.

You don't have to configure the git client, just add a step like the one below... Be sure to edit FILE_TO_COMMIT and DESTINATION_BRANCH to suit your needs.

@johngrimes
johngrimes / macos-10133-fail.md
Last active February 5, 2021 19:39
macOS 10.13.3 Update FAIL

I had some massive problems when installing the 10.13.3 update on macOS. The update installed, my computer successfully restarted - but on a subsequent restart the boot failed and displayed the following installation log:

Apr  4 04:07:04 MacBook-Pro opendirectoryd[186]: [session] Processing a network change notification
Apr  4 04:07:06 MacBook-Pro Unknown[526]: Launching the Language Chooser for an OS Install
Apr  4 04:07:06 MacBook-Pro bspowerassertiontool[521]: Tool exited successfully (0).
Apr  4 04:07:06 MacBook-Pro launchprogresswindow[524]: ISAP: Show progress UI called
Apr  4 04:07:07 MacBook-Pro Installer Progress[180]: Progress UI App Starting
Apr  4 04:07:32 MacBook-Pro opendirectoryd[186]: [session] Received a network change notification
Apr  4 04:07:32 MacBook-Pro opendirectoryd[186]: [session] Received a network change notification
@jsoref
jsoref / indent-exim4-conf.pl
Created October 13, 2017 19:06
indent exim conf if else endif
#!/usr/bin/perl -n
# argument: /path/to/exim.conf
if (/^\s*\.else/) {
$spaces=" "x($level-1);
print $spaces.$_; next;
}
if (/^\s*\.if/) {
$spaces=" "x$level;
print $spaces.$_;