Skip to content

Instantly share code, notes, and snippets.

View BrRenat's full-sized avatar
🏠
Working from home

Renat Berezovsky BrRenat

🏠
Working from home
  • remote
View GitHub Profile
@BrRenat
BrRenat / nvidia.md
Created March 24, 2021 04:57 — forked from bitsurgeon/nvidia.md
install Nvidia driver on Ubuntu with Secure Boot

Install Nvidia Driver on Ubuntu 18.04.3

Secure Boot

This section applies to machines with Secure Boot, such as ThinkPad.

  1. Before installation, switch to "Discrete Graphics" in BIOS, if both Intel and Nvidia graphics are present.
  2. During installation, make sure to select the "Install third-party software for graphics and Wi-Fi hardware and addition media formats" in "Updates and other software" screen.
  3. Select "Configure Secure Boot", and set password.
  4. Continue Ubuntu installation as normal.
@BrRenat
BrRenat / input.test.js
Created July 26, 2018 04:12
jest test example
/* eslint-env jest */
import React from 'react';
import { shallow, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
import Input from '../index';
import {
@BrRenat
BrRenat / git.migrate
Created April 27, 2018 19:45 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@BrRenat
BrRenat / gist:3decec5e6ce42ca4db4e01c3db147d9c
Last active April 23, 2018 13:33
Random icons missed from sprite.
{
test: /\.svg$/,
use: [
{
loader: 'svg-sprite-loader',
options: {
prefixize: true,
extract: true,
spriteFilename: svgPath => `images/sprite${svgPath.substr(-4)}`
}