Skip to content

Instantly share code, notes, and snippets.

View OperKH's full-sized avatar
:octocat:
Helping octocats

Aleksandr Zhytnyk OperKH

:octocat:
Helping octocats
View GitHub Profile
@egg82
egg82 / proxmox_nvidia.md
Last active May 10, 2024 15:01
NVidia Proxmox + LXC

Proxmox

Find the proper driver at the NVidia website.

Note: Make sure to select "Linux 64-bit" as your OS

Hit the "Search" button.

@loilo
loilo / pass-slots.md
Last active May 7, 2024 09:07
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@ianchen06
ianchen06 / del_cluster.sh
Created June 26, 2017 10:29
delete proxmox cluster
# source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/
#/bin/sh
# stop service
systemctl stop pvestatd.service
systemctl stop pvedaemon.service
systemctl stop pve-cluster.service
systemctl stop corosync
systemctl stop pve-cluster
# edit through sqlite, check, delete, verify
@j4ckth3r1pp3r
j4ckth3r1pp3r / fs.to-to-myshows.js
Last active November 1, 2016 15:48
Скрипт для TamperMonkey для сайта fs.to
// ==UserScript==
// @name AdLess FS.TO Player
// @namespace http://j4ck.lp5.com.ua/myshows/
// @version 0.4
// @description Меняет плеер сайта на HTML5 встроенный и добавляет кнопку MyShows и фон для сериалов оттуда
// @author J4ck Th3 R1pp3r
// @match http://fs.to/*
// @connect j4ck.lp5.com.ua
// @grant GM_xmlhttpRequest
// ==/UserScript==
@mxstbr
mxstbr / Readme.md
Last active December 20, 2023 12:01
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
@Waltibaba
Waltibaba / lxc_mount_block_device
Last active April 26, 2024 04:13
Mount a block device like HDD inside an LXC container (specifically in proxmox 4)
Mounting block device in lxc (specifically Proxmox 4)
1. Find devices' major & minor ID (need both dev + partition for HDD)
# ls -al /dev/sda
brw-rw---- 1 root disk 8, 0 Dec 19 11:16 /dev/sda1
# ls -al /dev/sda1
brw-rw---- 1 root disk 8, 1 Dec 19 11:16 /dev/sda1
That's 8,0 for sda and 8,1 for sda1
@jollytoad
jollytoad / gist:4201905
Created December 4, 2012 08:44
Read a File using a FileReader returning a jQuery promise
function readFile(file) {
var reader = new FileReader();
var deferred = $.Deferred();
reader.onload = function(event) {
deferred.resolve(event.target.result);
};
reader.onerror = function() {
deferred.reject(this);