Skip to content

Instantly share code, notes, and snippets.

View vitaly-zdanevich's full-sized avatar

Vitaly Zdanevich vitaly-zdanevich

View GitHub Profile
$ dmesg
[ 0.000000] Linux version 6.1.31-gentoo+ (root@big-black-fluid) (gcc (Gentoo 12.2.1_p20230428-r1 p2) 12.2.1 20230428, GNU ld (Gentoo 2.39 p6) 2.39.0) #2 SMP PREEMPT_DYNAMIC Thu Jun 29 20:11:04 +04 2023
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.1.31-gentoo+ root=/dev/nvme0n1p2 ro mitigations=off
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x080: 'AVX-512 ZMM_Hi256'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
$ dmesg
[ 0.000000] Linux version 6.1.12-gentoo+ (root@thinkpad-t430) (gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121, GNU ld (Gentoo 2.39 p5) 2.39.0) #1 SMP PREEMPT_DYNAMIC Fri Mar 10 15:10:58 +04 2023
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.1.12-gentoo+ root=/dev/sda3 ro i915.fastboot=1 mitigations=off
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] signal: max sigframe size: 1360
[ 0.000000] BIOS-provided physical RAM map:
@vitaly-zdanevich
vitaly-zdanevich / logcat -b all | grep -iE 'vold|storage
Created November 5, 2019 23:30
logcat from Samsung Galaxy Note N7000 under NightOwl
11-06 02:25:13.810 0 0 I : c0 Initializing USB Mass Storage driver...
11-06 02:25:13.810 0 0 I c0 usbcore: registered new interface driver usb-storage
11-06 02:25:13.810 0 0 I : c0 USB Mass Storage support registered.
11-06 02:25:13.814 0 0 I : c0 android_usb gadget: Mass Storage Function, version: 2009/09/11
11-06 02:25:14.412 0 0 I c1 mshci: Mobile Storage Host Controller Interface driver
11-06 02:25:21.634 0 0 I c0 init : (Parsing /system/etc/init/vold.rc took 0.00s.)
11-06 02:25:21.737 0 0 I c0 init : Starting service 'vold'...
11-06 02:25:46.316 2901 2901 W PackageManager: Not granting permission android.permission.WRITE_EXTERNAL_STORAGE to package by.alfabank.insync because it was previously installed without
11-06 02:25:46.316 2901 2901 W PackageManager: Not granting permission android.permission.READ_EXTERNAL_STORAGE to package by.alfabank.insync because it was previously installed without
11-06 02:25:46.318 2901 290
@vitaly-zdanevich
vitaly-zdanevich / dmesg
Created November 5, 2019 17:39
/proc/last_kmsg of Samsung Galaxy Note N7000, custom rom NightOwl
rupt source: 0x0
[ 103.387753] c0 smb328-charger 19-0034: smb328_set_property: smb328_set_property (0,2)
[ 103.388893] c0 smb328-charger 19-0034: smb328a_charger_function_conrol : reg (0x5) = 0x0
[ 103.389441] c0 smb328-charger 19-0034: smb328a_charger_function_conrol : reg (0x31) = 0x8c
[ 103.390561] c0 smb328-charger 19-0034: smb328a_charger_function_conrol : => reg (0x31) = 0x98
[ 103.392258] c0 smb328-charger 19-0034: smb328_get_property: smb328_get_property (14,0)
[ 103.393583] c0 healthd: fuelgauge: Unknown power supply type
[ 103.402173] c0 smb328-charger 19-0034: smb328_get_property: smb328_get_property (14,0)
[ 103.404400] c0 healthd: fuelgauge: Unknown power supply type
[ 103.586955] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]
@vitaly-zdanevich
vitaly-zdanevich / gist:c3f9a4bf91322727c1f8a280bdb9d716
Created May 31, 2019 11:54
NVIDIA/tacotron2: output from `pip install -r requirements.txt --user`
Collecting matplotlib==2.1.0 (from -r requirements.txt (line 1))
Collecting tensorflow (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/d4/29/6b4f1e02417c3a1ccc85380f093556ffd0b35dc354078074c5195c8447f2/tensorflow-1.13.1-cp37-cp37m-manylinux1_x86_64.whl
Collecting numpy==1.13.3 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/bf/2d/005e45738ab07a26e621c9c12dc97381f372e06678adf7dc3356a69b5960/numpy-1.13.3.zip
Collecting inflect==0.2.5 (from -r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/66/15/2d176749884cbeda0c92e0d09e1303ff53a973eb3c6bb2136803b9d962c9/inflect-0.2.5-py2.py3-none-any.whl
Collecting librosa==0.6.0 (from -r requirements.txt (line 5))
Collecting scipy==1.0.0 (from -r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/d0/73/76fc6ea21818eed0de8dd38e1e9586725578864169a2b31acdeffb9131c8/scipy-1.0.0.tar.gz
@vitaly-zdanevich
vitaly-zdanevich / checkout.js
Created May 6, 2016 17:44
test code: checkout
function checkout(e) {
var subject = '';
if($('.pav-shop-cart').length > 0){ //if on checkout page
var city = $('#checkout-cart #city').val();
var name = $('#checkout-cart [name=name]').val();
var phone = $('#checkout-cart [type=tel]').val();
var email = $('#checkout-cart [type=email]').val();
var address = $('#checkout-cart #address').val();
var comment = $('#checkout-cart textarea').val();
subject = 'Заказ со страницы корзины';
@vitaly-zdanevich
vitaly-zdanevich / test.php
Created May 6, 2016 17:38
temp code example: sending email about order
<?php
class ControllerModuleCheckout extends Controller {
public function checkout() {
$products = json_decode(html_entity_decode($_POST['products'])); //create object from json string
$message = '<html><head></head><body><table>';
$priceTotalBYR = 0;
foreach($products as $product) :
$message .= '<tr>';
$product_id = $product->product_id;
$product_quantity = $product->quantity;
for n in 1 2 3 4 5 6 7 8 9 0; do
for f in 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600; do
beep -f $f -l 20
done
done
beep -n -f 146 -l 20 -D 0 -n -f 369 -l 20 -D 0 -n -f 659 -l 20 -D 47 -n -f 146 -l 20 -D 0 -n -f 369 -l 20 -D 0 -n -f 659 -l 20 -D 189 -n -f 146 -l 20 -D 0 -n -f 369 -l 20 -D 0 -n -f 659 -l 20 -D 190 -n -f 146 -l 20 -D 0 -n -f 369 -l 20 -D 0 -n -f 523 -l 20 -D 47 -n -f 146 -l 20 -D 0 -n -f 369 -l 20 -D 0 -n -f 659 -l 20 -D 190 -n -f 391 -l 20 -D 0 -n -f 493 -l 20 -D 0 -n -f 783 -l 20 -D 475 -n -f 195 -l 20 -D 0 -n -f 391 -l 20 -n -f 195 -l 20 -D 0 -n -f 391 -l 20 -D 473 -n -f 195 -l 20 -D 0 -n -f 329 -l 20 -D 0 -n -f 523 -l 20 -D 332 -n -f 164 -l 20 -D 0 -n -f 261 -l 20 -D 0 -n -f 391 -l 20 -D 332 -n -f 130 -l 20 -D 0 -n -f 195 -l 20 -D 0 -n -f 329 -l 20 -D 332 -n -f 174 -l 20 -D 0 -n -f 261 -l 20 -D 0 -n -f 440 -l 20 -D 189 -n -f 195 -l 20 -D 0 -n -f 293 -l 20 -D 0 -n -f 493 -l 20 -D 189 -n -f 184 -l 20 -D 0 -n -f 277 -l 20 -D 0 -n -f 466 -l 20 -D 47 -n -f 174 -l 20 -D 0 -n -f 261 -l 20 -D 0 -n -f 440 -l 20 -D 190 -n -f 164 -l 20 -D 0 -n -f 261 -l 20 -D 0 -n -f 391 -l 20 -D 95 -n -f 261 -l 20 -D 0 -n -f 391 -