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
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME}\.php -f | |
RewriteRule ^([^/]+)/?$ $1.php [L] | |
RewriteCond %{REQUEST_FILENAME} -d [OR] | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteRule ^ - [L] |
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
using System.Collections.Generic; | |
/// <summary> | |
/// A bundle holds data that will be saved to disk later. | |
/// </summary> | |
public class Bundle | |
{ | |
#region Fields | |
private readonly Dictionary<string, object> _data; |
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/sh | |
cpu=$(cat /sys/class/thermal/thermal_zone0/temp) | |
echo "GPU => $(vcgencmd measure_temp | cut -d '=' -f 2)" | |
echo "CPU => $((cpu/1000))'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
for i in {1..100} | |
do | |
echo -e "$i / 100\x1B[1F" | |
sleep .1 | |
done |
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 { log } from 'console' | |
type Row = { | |
opacity: string | |
hex: string | |
} | |
const rows: Row[] = [] | |
function dec2hex(dec: number) { |
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
/** | |
* @param {import("next").NextConfig} original | |
*/ | |
export default function makeConfig(original) { | |
const copy = Object.assign({}, original) | |
const apiUrl = new URL(process.env.API_URL) | |
copy.images.remotePatterns = [ | |
{ | |
protocol: apiUrl.protocol.substring(0, 4), |