Skip to content

Instantly share code, notes, and snippets.

View pocheptsov's full-sized avatar

slava pocheptsov pocheptsov

View GitHub Profile
https://www.chargerforums.com/threads/2018-uconnect-8-4-reboot.381191/
https://www.youtube.com/watch?v=pPGezSeNLFo
1. Put your vehicle into the accessories mode.
2a. Hold down the volume and browse knob buttons for 30 seconds or until the screen goes black and restarts.
- or -
2b. Hold down the voice command and phone button on steering wheel for 30 seconds.
3. Let go of the buttons and turn vehicle off.
4. Open driver's side door for 30 seconds.
5. Close door.
@pocheptsov
pocheptsov / install_rds_certs_on_windows.md
Last active December 17, 2020 03:57 — forked from gingerjoos/install_rds_certs_on_windows.md
How to import Amazon RDS CA certificates into Windows 10

The official instructions will ask you to download a [pem file]. Windows will not read this PEM file properly; instead download the corresponding p7b file - https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.p7b.

Once you download the file, invoke the Certificate Manager program, certmgr.exe, from the command box that opens when you click the Start button. Instructions here. Make sure you import it into the "Trusted Root Certification Authorities" logical store.

certmgr /add /c rds-combined-ca-bundle.p7b /s /r localMachine root
@pocheptsov
pocheptsov / ruby_hash_merge_benchmark.rb
Created October 30, 2021 18:59
Ruby Hash merge benchmark
require 'benchmark/ips'
h = { a: 1 }
=> {:a=>1}
Benchmark.ips do |x|
x.report('merge') { {b: 12}.merge(h) }
x.report('merge!') { {b: 12}.merge!(h) }
x.report('merge ** ') { {b: 12, **h} }
x.compare!
end
@pocheptsov
pocheptsov / appcues_controller.ts
Last active December 9, 2022 23:24
Hotwired Turbo and partial page update patch
import { Controller } from '@hotwired/stimulus'
export default class extends Controller {
static values = {
userId: String,
data: Object,
}
dataValue: object
userIdValue: string