THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
stashgrep() { | |
for i in `git stash list | awk -F ':' '{print $1}'`; do | |
git stash show -p $i | grep -H --label="$i" "$1" | |
done | |
} |
svenfuchs: 5515 (#1) | |
joshk: 2234 (#2) | |
michaelklishin: 2206 (#3) | |
drogus: 1145 (#4) | |
rkh: 888 (#5) | |
roidrage: 674 (#6) | |
henrikhodne: 394 (#7) | |
sferik: 302 (#8) | |
ifesdjeen: 220 (#9) | |
randym: 192 (#10) |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
#!/bin/sh | |
# | |
# Compiles a static xvfb for the Heroku platform. | |
# | |
# This script is a conglomeration of: | |
# * https://github.com/ddollar/heroku-buildpack-apt | |
# * http://stackoverflow.com/questions/14845291/compile-static-linked-binary-of-xvfb | |
# * gumption | |
set -e # fail fast |
Tracks down when a Minecraft account was created.
Mojang has an API endpoint for usernames:
https://api.mojang.com/users/profiles/minecraft/<name>?at=<timestamp>
It can be used to find the UUID of an account, by username it used at the given time.
It returns either 200 OK
or 204 No Content
– indicating that the username was not in use at the time.
git log --oneline -1 <PR-BRANCH>
git push -f origin :
If an application is crashing during a github actions run then you can use this guide to capture the core as an artifact for debugging.
This guide was developed to debug Mac crashes specifically. It should mostly apply to Linux as well but getting dumps from Windows is unknown for now.
By default these systems will not be in a state where they are recording core dumps, and even when enabled you need to run with elevated permissions for a core to even be written. To capture dumps you need to do the following:
# Dynamic window title with zsh shell. | |
# Shows current directory and running (multi-line) command. | |
case "$TERM" in (rxvt|rxvt-*|st|st-*|*xterm*|(dt|k|E)term) | |
local term_title () { print -n "\e]0;${(j: :q)@}\a" } | |
precmd () { | |
local DIR="$(print -P '[%c]%#')" | |
term_title "$DIR" "zsh" | |
} | |
preexec () { | |
local DIR="$(print -P '[%c]%#')" |
const axios = require('axios'); | |
async function getLocations() { | |
const locationsData = await axios.post("https://publicapi.txdpsscheduler.com/api/AvailableLocation", { | |
"TypeId": 71, | |
"ZipCode": "10001", | |
"CityName": "", | |
"PreferredDay": 0 | |
}); | |
return locationsData.data; | |
} |
--- glibc-2.33/nptl/pthreadP.h 2022-01-02 23:37:20.000000000 -0500 | |
+++ glibc-2.33-modified/nptl/pthreadP.h 2022-01-03 00:56:39.622447597 -0500 | |
@@ -220,7 +220,7 @@ | |
hidden_proto (__pthread_keys) | |
/* Number of threads running. */ | |
-extern unsigned int __nptl_nthreads attribute_hidden; | |
+extern unsigned int __nptl_nthreads; | |
#ifndef __ASSUME_SET_ROBUST_LIST |