Skip to content

Instantly share code, notes, and snippets.

@ipanin
ipanin / Как удалить commit в Github.txt
Last active September 23, 2022 19:54 — forked from vorozhba/Как удалить commit в Github.txt
Как удалить commit в Github
1. Получаем хэш-код коммита, к которому хотим вернуться. Список последних 4х коммитов:
$ git log -4
2. Заходим в папку репозитория и пишем в консоль:
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a
$ git push --force
@ipanin
ipanin / latency.txt
Created October 27, 2020 12:46 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@ipanin
ipanin / GitTfsMigrationCleanup.ps1
Last active March 28, 2020 19:53 — forked from baywet/gittfsmigrationcleanup.ps1
small powershell script which allows you to quickly clean your repo during the migration
#Requires -Version 3.0
param([string]$targetPath)
Set-StrictMode -Version 2.0
$ErrorActionPreference = "Stop"
if (Test-Path variable:global:psISE) { $scriptPath = Split-Path $psise.CurrentFile.FullPath; }
else { $scriptPath = $PSScriptRoot; }
@ipanin
ipanin / HPN40L BMC Setup.md
Created March 22, 2019 22:41 — forked from joshenders/HPN40L BMC Setup.md
How to setup an N40L Remote Access Card (BMC/IPMI) under Debian Wheezy

Update BMC Firmware

As of this writing (2014-02-18), the latest firmware is 1.3. It can be updated from the webif. Use Safari, the credentials are admin/password. If you're trying to find it on your network, the OUI of the BMC NIC is a0:b3:cc.

Install Utilities

apt-get install openipmi ipmitool