This assumes you have GitHub CLI and jq installed. To get a list of admins on a repo, you can run this:
gh api --paginate repos/{{ OWNER }}/{{ REPO }}/collaborators | jq '[ .[] | select(.permissions.admin == true) | .login ]'
This assumes you have GitHub CLI and jq installed. To get a list of admins on a repo, you can run this:
gh api --paginate repos/{{ OWNER }}/{{ REPO }}/collaborators | jq '[ .[] | select(.permissions.admin == true) | .login ]'
If you're a Mastodon moderator looking to quickly suspend a bunch of other instances from federation, here's some code that'll let you do it as a batch. It requires interating with your browser's Javascript console.
block.js
below, edit lines 5 and 27 to point to your own instance (replace [your-instance-domain]
), and then paste that into the console and press enter. (There should be an input box at the bottom of the console window.)
""
.To hide all of the browser chrome in Firefox, you will need to use the browser console, which is similar to the web console but applies to the whole browser. By default, the browser console is readonly. To enable interpretted commands, you'll need to edit the browser config:
about:config
devtools.chrome.enabled
FROM ubuntu | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
alien \ | |
git \ | |
libdbi-perl \ | |
wget \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN wget https://download.oracle.com/otn_software/linux/instantclient/211000/oracle-instantclient-basic-21.1.0.0.0-1.x86_64.rpm |
docker exec <database image> pg_dump -s -U <database username> <database name> | \ | |
# Strip out the namespace because graphviz doesn't know what to do with it | |
sed 's/ public\./ /g' | \ | |
# Turn that thing into a DOTfile! | |
docker run -i --rm mgwalker/sql_graphviz:1.0 > docs/database-diagram.dot | |
docker exec <database image> pg_dump -s -U <database username> <database name> | \ | |
# Strip out the namespace because sql_graphviz doesn't know what to do with it | |
sed 's/ public\./ /g' | \ | |
# Turn that thing into a DOTfile |
docker run -i --rm -v \ | |
`pwd`:/img \ | |
v4tech/imagemagick \ | |
convert \ | |
/img/your-current-emoji-filename.gif \ | |
-white-threshold 95% \ | |
-transparent white \ | |
/img/your-new-emoji.gif |
; Written: Fall 2003 | |
; Location: Mississippi State University | |
; For: ECE 4532, CPE Design I | |
; Instructor: Dr. Joe Picone | |
; | |
; Description: Converts analog signals from fiber | |
; optic dataglove into digital signals and | |
; communicates the digital information to a PC | |
; over a RS232 (serial port) link. The code | |
; assumes a 14.7456MHz clock. |
Obtain the OpenSSL FIPS module 2.0 source from the OpenSSL source download page
wget https://www.openssl.org/source/openssl-fips-2.0.13.tar.gz
tar -zxvf openssl-fips-2.0.13.tar.gz
cd openssl-fips-2.0.13.tar.gz