← All posts tagged code

передернул
Tue Jun  5 10:45:10 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.48                 Driver Version: 390.48                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  TITAN Xp            Off  | 00000000:0A:00.0 Off |                  N/A |
| 23%   32C    P8    16W / 250W |      2MiB / 12196MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  TITAN Xp            Off  | 00000000:42:00.0  On |                  N/A |
| 23%   39C    P8    17W / 250W |     60MiB / 12190MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 23
model           : 1
model name      : AMD Ryzen Threadripper 1950X 16-Core Processor
stepping        : 1
microcode       : 0x8001129
cpu MHz         : 3400.000
cache size      : 512 KB
physical id     : 0
siblings        : 32
core id         : 0
cpu cores       : 16
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid amd_dcm aperfmperf eagerfpu pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_l2 mwaitx hw_pstate retpoline retpoline_amd vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 clzero arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs spectre_v1 spectre_v2
bogomips        : 6786.34
TLB size        : 2560 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate eff_freq_ro [13] [14]

time ./contrib/transcoder.erl transcode ~/hall.ts ~/cl7.ts vb=300k size=800x600
real    0m23.350s
user    0m39.727s
sys     0m1.838s 
time ./contrib/transcoder.erl transcode ~/hall.ts ~/cl7.ts vb=300k size=800x600 quicksync=1
real    0m7.795s
user    0m5.328s
sys     0m1.014s

лор через ttk упал:
7  212.119.251.61 (212.119.251.61)  10.844 ms  10.862 ms  10.969 ms
 8  pe26.moscow.gldn.net (79.104.225.59)  10.999 ms mskn08.transtelecom.net (87.229.217.102)  10.920 ms pe26.moscow.gldn.net (79.104.225.59)  12.379 ms
 9  * mskn08.transtelecom.net (217.150.48.182)  11.047 ms mskn08.transtelecom.net (87.229.217.102)  11.978 ms
10  * * hll-gw.transtelecom.net (188.43.15.237)  10.723 ms
11  hll-gw.transtelecom.net (188.43.15.237)  10.607 ms  10.601 ms *
12  * * *
*ttk говно*

hizel@wnight:~$ python3 -c 'print("ололо:алала:ебанная:бляь:ебанина:хуй:запомнишь"[::-1])'
ьшинмопаз:йух:анинабе:ьялб:яаннабе:алала:ололо
hizel@wnight:~$ python2.7 -c 'print("ололо:алала:ебанная:бляь:ебанина:хуй:запомнишь"[::-1])'
�шѸнмопаз�Ѓх�нинабе�яѻб�ннабе�лала�лоло

q-in-q fuuu:
root@ ~ #cat vlan.sh
#!/bin/sh

IF=fxp1
VL=vlanL1
VL2=vlanL2

ngctl shutdown ${IF}:
ngctl shutdown ${VL}:
ngctl shutdown ${VL2}:

ngctl -f- <<EOF
mkpeer ${IF}: vlan lower downstream
name ${IF}:lower ${VL}
connect ${IF}: ${VL}: upper nomatch
mkpeer ${VL}: vlan vlan10 downstream
name ${VL}:vlan10 ${VL2}
mkpeer ${VL2}: eiface vlan11 ether
msg ${VL}: addfilter { vlan=10 hook="vlan10" }
msg ${VL2}: addfilter { vlan=11 hook="vlan11" }
EOF
10 - первый tag, 11 tag внутри
8.4-RELEASE
осталось сообразить как на 10-ку повесить свой интерфейс или таки забить болта. хотя хотелось бы  единообразности

mikrotik не хочет в 6to4( 
[admin@MikroTik] > ipv6 route print   
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, o - ospf, b - bgp, U - unreachable 
 #      DST-ADDRESS              GATEWAY                  DISTANCE
 0 A S  2000::/3                 ::192.88.99.1%6to4-int          1
[admin@MikroTik] > ping 2a00:1450:4001:c02::64
HOST                                     SIZE TTL TIME  STATUS                                                                                                                                                                               
                                                        no route to host                                                                                                                                                                     
                                                        no route to host                                                                                                                                                                     
    sent=2 received=0 packet-loss=100% 

WTF!??

gentoo атакует udev

This is the old format with reserved namespace:

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:xx:xx",
NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="yy:yy:yy:yy:yy:yy",
NAME="eth1"

This is the new format with free namespace:

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:xx:xx",
NAME="net0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="yy:yy:yy:yy:yy:yy",
NAME="net1"

но нахуяяя!???!?!?!??!??! бегаю восьмидисятивосьмерками!1