sudo pacman -S ntfs-3g
lsblk
sudo mount /dev/sdx1 /mnt
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
| [2771223.012041] amdgpu 0000:05:00.0: amdgpu: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:3 pasid:32779) | |
| [2771223.023037] amdgpu 0000:05:00.0: amdgpu: for process python3 pid 3895854 thread python3 pid 3895854) | |
| [2771223.033665] amdgpu 0000:05:00.0: amdgpu: in page starting at address 0x0000ffffffbfe000 from IH client 0x1b (UTCL2) | |
| [2771223.045852] amdgpu 0000:05:00.0: amdgpu: cookie node_id 2 fault from die AID0.XCD1 | |
| [2771223.054826] amdgpu 0000:05:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x003012B1 | |
| [2771223.063501] amdgpu 0000:05:00.0: amdgpu: Faulty UTCL2 client ID: SQC (inst) (0x9) | |
| [2771223.072377] amdgpu 0000:05:00.0: amdgpu: MORE_FAULTS: 0x1 | |
| [2771223.078908] amdgpu 0000:05:00.0: amdgpu: WALKER_ERROR: 0x0 | |
| [2771223.085538] amdgpu 0000:05:00.0: amdgpu: PERMISSION_FAULTS: 0xb | |
| [2771223.092651] amdgpu 0000:05:00.0: amdgpu: MAPPING_ERROR: 0x0 |
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 torch | |
| import torch.nn.functional as F | |
| def to_float8(x, dtype=torch.float8_e4m3fn): | |
| finfo = torch.finfo(dtype) | |
| # Calculate the scale as dtype max divided by absmax | |
| scale = finfo.max / x.abs().max().clamp(min=1e-12) | |
| # scale and clamp the tensor to bring it to | |
| # the representative range of float8 data type | |
| # (as default cast is unsaturated) |
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 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Compare JAX dtype promotion against tinygrad, including FP8 pairs. | |
| - Shows JAX result_type(a,b) vs tinygrad.least_upper_dtype(a,b) | |
| - Covers fp8e4m3/fp8e5m2 with {fp8, f16, bf16, f32, f64} and int64/uint64 combos | |
| Usage: | |
| python3 jax_promo.py |
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://cloud.tencent.com/developer/article/1116151 | |
| // https://stackoverflow.com/questions/13652319/decode-netbios-name-python | |
| // When correctly reversed, Netbios_Name should output in ASCII : "TESDTDDSSS" | |
| const NetbiosName: &str = "\x46\x45\x45\x46\x46\x44\x45\x45\x46\x45\x45\x45\x45\x45\x46\x44\x46\x44\x46\x44\x43\x41\x43\x41\x43\x41\x43\x41\x43\x41\x43\x41"; | |
| fn netbios_encode(input: &str) -> Vec<u8> { | |
| let mut res: Vec<u8> = vec![]; | |
| for c in input.bytes() { | |
| res.push(c/0x10+0x41); | |
| res.push(c%0x10+0x41); |
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
| wget -L https://github.com/jinfeihan57/p7zip/archive/refs/tags/v17.04.zip | |
| #7z x v17.04.zip | |
| unrar -x v17.04.zip | |
| cd p7zip-17.04/ | |
| make 7z | |
| ./bin/7z |
rebuild the x265 source not work for me.
my solution:
0x00. find "x265.pc"
sudo find / -name "x265.pc"
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
| 01000011x10001000x000100000100x010000010010 | |
| ShellScript | |
| https://www.shellscript.sh/ | |
| Acl | |
| http://www.gsp.com/cgi-bin/mdroid.cgi?topic=extattrctl | |
| http://www.onlamp.com/pub/a/bsd/2003/08/14/freebsd_acls.html | |
| https://linux.die.net/man/1/setfacl | |
| https://www.bing.com/search?q=ACLs+with+Samba+andWindows&src=IE-TopResult&FORM=IETR02&conversationid= | |
| https://en.wikipedia.org/wiki/Chmod |
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
| let log = function(varStr) { | |
| if (typeof varStr !== "string"){ | |
| console.log(`[*] unknow ${varStr}`) | |
| } else { | |
| console.log(`[*]${varStr}: ${eval(varStr)}`) | |
| } | |
| } |
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
| # method 0 | |
| vim body.json # write json | |
| curl -H "Content-Type: application/json" --data @body.json http://localhost:8080/ui/webapp/conf | |
| # method 1 | |
| curl --header "Content-Type: application/json" \ | |
| --request POST \ | |
| --data '{"username":"xyz","password":"xyz"}' \ | |
| http://localhost:3000/api/login |
NewerOlder