This file contains hidden or 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
javascript:(function(){ | |
const MY_MASTO_LOCAL_DOMAIN = 'social.drazisil.com'; /* 👈 Change this value */ | |
const MY_MASTO_WEB_DOMAIN = MY_MASTO_LOCAL_DOMAIN; /* 👈 Only change this value if your Masto host is hosted an different domain than the LOCAL_DOMAIN */ | |
function tryAndGetUserName() { | |
/* Profile with a moved banner (e.g. https://mastodon.social/@bramus): follow that link */ | |
const userNewProfile = document.querySelector('.moved-account-banner .button')?.getAttribute('href'); | |
if (userNewProfile) { | |
return userNewProfile.substring(2); | |
} |
This file contains hidden or 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
5.5 Deflating - Method 8 | |
------------------------ | |
5.5.1 The Deflate algorithm is similar to the Implode algorithm using | |
a sliding dictionary of up to 32K with secondary compression | |
from Huffman/Shannon-Fano codes. | |
5.5.2 The compressed data is stored in blocks with a header describing | |
the block and the Huffman codes used in the data block. The header | |
format is as follows: |
This file contains hidden or 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
for f in $(apt-file search vim -l); dpkg-query --showformat='${binary:Package}\t${Status}' --show $f 2> /dev/null | grep " installed" | |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN" packages="com.mojang.util"> | |
<Appenders> | |
<Console name="SysOut" target="SYSTEM_OUT"> | |
<PatternLayout pattern="[%d{HH:mm:ss.SSS}] [%t/%level]: %msg%n" /> | |
</Console> | |
<Queue name="ServerGuiConsole"> | |
<PatternLayout pattern="[%d{HH:mm:ss.SSS} %level]: %msg%n" /> | |
</Queue> | |
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz"> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN" packages="com.mojang.util"> | |
<Appenders> | |
<Console name="SysOut" target="SYSTEM_OUT"> | |
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" /> | |
</Console> | |
<Queue name="ServerGuiConsole"> | |
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" /> | |
</Queue> | |
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz"> |
This file contains hidden or 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
const result = await superagent | |
.put(`${putURL}`) | |
.send(uploadFile) // sends a JSON post body | |
.set("Content-Type", "application/x-gzip") | |
.set("Content-Encoding", "gzip") | |
.set("x-amz-acl", "public-read") | |
.set("Content-Length", Buffer.byteLength(uploadFile)); |
This file contains hidden or 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
npx lockfile-lint --path npm-shrinkwrap.json --allowed-hosts npm yarn --validate-https | |
npx: installed 33 in 2.348s | |
ABORTING lockfile lint process due to error exceptions | |
Unable to find relevant lockfile parser for "npm-shrinkwrap.json", consider passing the --type option. | |
Error | |
at new ParsingError (/home/drazisil/.npm/_npx/12990/lib/node_modules/lockfile-lint/node_modules/lockfile-lint-api/src/common/ParsingError.js:27:33) | |
at ParseLockfile.parseSync (/home/drazisil/.npm/_npx/12990/lib/node_modules/lockfile-lint/node_modules/lockfile-lint-api/src/ParseLockfile.js:53:13) |
This file contains hidden or 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
version: 2 | |
jobs: | |
build: | |
macos: | |
xcode: "10.2.0" | |
steps: | |
- run: | |
name: Update Xcode to latest 10.2 version | |
command: | | |
# Requires setting the XCODE_INSTALL_USER and XCODE_INSTALL_PASSWORD |
This file contains hidden or 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
import React, { Component } from "react"; | |
import agent from "superagent"; | |
import classNames from "classnames"; | |
import logo from "./logo.svg"; | |
import "./Gallery.css"; | |
import ImageList from "./Components/ImageList"; | |
import { FilePond } from "react-filepond"; | |
export default class Gallery extends Component { | |
constructor() { |