Skip to content

Instantly share code, notes, and snippets.

@WeslyG
WeslyG / move docker volume (backup and restore docker volume)
Created July 23, 2018 12:35
Перенос docker volume между серверами
Как мигрировать docker volume на примере elasticsearch
# Backup
Запускаем елку, и вкидываем в нее данные, хоть через апи, хоть elasticdump
После этого в вольюмах будет много данных (тестировалось на 2 елке)
Смотрим оф руководство https://docs.docker.com/storage/volumes/#backup-a-container
@eddiewebb
eddiewebb / readme.md
Last active April 9, 2025 04:31
Hugo JS Searching with Fuse.js
@DisasteR
DisasteR / ixgbe_debian.md
Last active March 18, 2021 21:35 — forked from sling00/ixgbe_debian.md
Debian ixgbe module compilation

Debian ixgbe module compilation

Some OVH dedicated server does not supports installing Debian original kernel due to hardware support issue. Also new Supermicro Atom 3000 SOC based products need an updated driver on ubuntu 14.04/16.04/17.04 to recognize the network adapter.

Most common issue is the network adapter card.

Resources

@rich0
rich0 / spectre.c
Created January 5, 2018 02:04
Spectre variant 1 exploit with mitigation
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@kslimani
kslimani / ixgbe_debian.md
Last active April 15, 2025 08:27
Debian ixgbe module compilation
@Liblor
Liblor / .Xresources
Last active December 12, 2024 07:47
My .Xresources file. Color Scheme: Dark Tango
! Terminal: urxvt
! ===============
! Tango color scheme
! ------------------
URxvt*foreground: #eeeeec
URxvt*background: #2e3436
URxvt*cursorColor: #8ae234
URxvt*colorUL: #8ae234
URxvt*underlineColor: #92659a
pfSsh.php playback disablereferercheck
@paramonovav
paramonovav / .sh
Created August 21, 2015 14:12
How to use Jpegoptim recursively
find -type f -name "*.jpg" -exec jpegoptim --strip-all {} \;
@jacine
jacine / field.tpl.php
Created August 31, 2011 18:33
My default hook_preprocess_field() and field.tpl.php
<?php
/**
* Implements template_preprocess_field().
*/
function THEME_preprocess_field(&$vars) {
// If the view mode is "full" use <h2> for the field labels. Otherwise,
// assume a teaser or more compact view mode is being displayed, and use <h3>.
$vars['heading'] = ($vars['element']['#view_mode'] == 'full') ? 'h2' : 'h3';