Skip to content

Instantly share code, notes, and snippets.

@Saya47
Saya47 / starship.toml
Created September 15, 2023 12:09 — forked from ryo-ARAKI/starship.toml
Starship configuration file
View starship.toml
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = ""
[[battery.display]]
threshold = 30
style = "bold red"
@Saya47
Saya47 / 00-usage.md
Created September 9, 2023 11:28 — forked from Benoss/00-usage.md
AutoSSH Tunnel Config
View 00-usage.md
@Saya47
Saya47 / alacritty.yml
Created September 8, 2023 21:32 — forked from adibhanna/alacritty.yml
Alacritty
View alacritty.yml
font:
size: 18
offset:
y: 16
glyph_offset:
y: 9
normal:
family: "SFMono Nerd Font"
window:
padding:
@Saya47
Saya47 / solution.md
Created April 29, 2023 08:27 — forked from kymtwyf/solution.md
org.apache.hadoop.security.AccessControlException): Permission denied: user=Yongfeng, access=WRITE, inode="/user/hadoop/test.txt
View solution.md

有几种解决办法

  1. 去掉hdfs的permissions:
<property>
  <name>dfs.permissions</name>
  <value>false</value>
</property>

这个一定有效...

View gist:ae1629beb9667e834b06d08183f14f01
export default {
async fetch(request, env) {
let url = new URL(request.url);
if (url.pathname.startsWith('/')) {
url.hostname="example.com";
let new_request=new Request(url,request);
return fetch(new_request);
}
// Otherwise, serve the static assets.
return env.ASSETS.fetch(request);
@Saya47
Saya47 / config.json
Created October 20, 2022 10:27 — forked from danielz02/config.json
V2Ray Client Template
View config.json
{
"log": {
// By default, V2Ray writes access log to stdout.
// "access": "/path/to/access/log/file",
// By default, V2Ray write error log to stdout.
// "error": "/path/to/error/log/file",
// Log level, one of "debug", "info", "warning", "error", "none"
"loglevel": "warning"
@Saya47
Saya47 / hosts
Created September 3, 2019 18:15 — forked from consti/hosts
/etc/hosts to block shock sites etc.
View hosts
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost