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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/mips 6.6.38-gentoo Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="mips64el-unknown-linux-gnuabi64-gcc (Gentoo 14.1.1_p20240622 p3) 14.1.1 20240622" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=140101 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=24200 |
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
geo.domain.ltd { | |
# cert setting missing | |
handle /vt/* { | |
reverse_proxy mt0.google.com mt1.google.com mt2.google.com mt3.google.com { | |
header_up Host {upstream_hostport} | |
} | |
} | |
handle { | |
respond 404 | |
} |
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: 0.1 | |
log: | |
fields: | |
service: registry | |
storage: | |
cache: | |
blobdescriptor: inmemory | |
filesystem: | |
rootdirectory: /var/lib/registry | |
delete: |
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 tensorflow as tf | |
from tensorflow import keras | |
# Define a simple sequential model | |
model = tf.keras.models.Sequential([ | |
tf.keras.layers.Flatten(input_shape=(28, 28)), | |
tf.keras.layers.Dense(128, activation='relu'), | |
tf.keras.layers.Dropout(0.2), | |
tf.keras.layers.Dense(10) | |
]) |
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
#include <iostream> | |
#include <cuda_runtime.h> | |
#include <cuda.h> | |
int main() { | |
CUresult cuResult; | |
cuInit(0); | |
int deviceCount; | |
cuResult = cuDeviceGetCount(&deviceCount); |
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
pushd "%~dp0" | |
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt | |
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
del hyper-v.txt | |
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL |
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 os | |
import opencc | |
cv = opencc.OpenCC('t2s.json') | |
for i in os.listdir(): | |
j = cv.convert(i) | |
if j != i: | |
os.rename(i, j) |
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/env python3 | |
# pylint: disable=C0111, C0103 | |
""" | |
curl phus.lu/fileserver.py | env PORT=8001 python | |
""" | |
import os | |
import re | |
import sys |
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 | |
pacman -S --noconfirm acme.sh | |
yay -S --noconfirm acme.sh-systemd | |
# https://ram.console.aliyun.com/users | |
# require `AliyunDNSFullAccess` | |
export Ali_Key="***" | |
export Ali_Secret="***" |
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
--- gentoo/eclass/rust-toolchain.eclass 2022-12-28 00:48:32.000000000 +0800 | |
+++ local/eclass/rust-toolchain.eclass 2023-01-08 19:02:42.048876389 +0800 | |
@@ -36,6 +36,7 @@ | |
case ${CTARGET%%*-} in | |
aarch64*gnu) echo aarch64-unknown-linux-gnu;; | |
aarch64*musl) echo aarch64-unknown-linux-musl;; | |
+ mips64el*) echo mips64el-unknown-linux-gnuabi64;; | |
mips64*) echo mips64-unknown-linux-gnuabi64;; | |
powerpc64le*) echo powerpc64le-unknown-linux-gnu;; | |
powerpc64*) echo powerpc64-unknown-linux-gnu;; |