https://gitlab.com/dptole/osu-beatmap-packs/-/raw/main/README.md
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
/* | |
This document requires 'TrustedScript' assignment | |
https://greasyfork.org/en/scripts/433051-trusted-types-helper | |
*/ | |
var html = '<p>ok</p>' | |
trustedTypes.createPolicy('default', { | |
createHTML: function (string, sink) { return string } | |
}) | |
var $d = document.createElement('div') | |
var $d.innerHTML = trustedTypes.defaultPolicy.createHTML(html) |
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
#!/usr/bin/bash | |
# You must be in the folder containing all *.ovpn files | |
username="USERNAME FOR ALL CONNECTIONS" | |
password="PASSWORD FOR ALL CONNECTIONS" | |
for path in `ls *.ovpn` | |
do | |
connectionName=$(basename $path ".ovpn") | |
nmcli --terse connection delete id "$connectionName" | |
nmcli --terse connection import type openvpn file "$path" |
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
# Assume MySQL /var/run/mysqld/mysqld.sock | |
rm /var/mail/nginx | |
rm -rf /home/nginx | |
userdel nginx | |
useradd nginx -M -l -s /sbin/nologin -U | |
mkdir -p /app/php | |
cd /app/php | |
wget https://www.php.net/distributions/php-7.3.0.tar.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
yum -y update | |
yum -y install libmaxminddb-devel geoip-devel | |
mkdir -p /app/nginx | |
cd /app/nginx | |
wget https://nginx.org/download/nginx-1.22.1.tar.gz | |
tar xzf nginx-1.22.1.tar.gz | |
cd nginx-1.22.1 | |
sed -r -i 's/(static u_char ngx_http_server_string\[\]).*/\1 = "";/' src/http/ngx_http_header_filter_module.c |
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 help = { | |
genPagination: (pageLength, fullPageSelectedIndex) => { | |
const fullPage = Array.from(Array(pageLength)).map((v, i) => i) | |
if (fullPage.length < 11) return fullPage | |
let minLeftCut = 2 | |
let maxLeftCut = 6 | |
let minRightCut = 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
/* | |
Encode/Decode text using HPACK: Header Compression for HTTP/2. | |
https://httpwg.org/specs/rfc7541.html | |
dptole@github | |
*/ | |
var hpack = { | |
getEos: function () { | |
return '111111111111111111111111111111'; | |
}, |
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
#!/bin/bash | |
set -x | |
IDU="$(id -u)" | |
IDG="$(id -g)" | |
if [ "0" != "$IDU" ] | |
then | |
echo "Utilizar usuário root" | |
exit 1 |
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
// https://reactjs.org/docs/hooks-intro.html | |
// https://reactjs.org/docs/hooks-overview.html | |
// https://reactjs.org/docs/hooks-state.html | |
// https://reactjs.org/docs/hooks-effect.html | |
// https://reactjs.org/docs/hooks-rules.html | |
// https://reactjs.org/docs/hooks-custom.html | |
// https://reactjs.org/docs/hooks-reference.html | |
const createActions = model => { | |
const actions = { |
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
-- https://ellie-app.com/7CqCLBYQCYHa1 | |
-- https://webglfundamentals.org/ | |
-- elm install elm-explorations/linear-algebra | |
-- elm install elm-explorations/webgl | |
-- elm install elm/json | |
module Main exposing (..) | |
import Browser | |
import Json.Decode |
NewerOlder