Skip to content

Instantly share code, notes, and snippets.

View VadimBrodsky's full-sized avatar

Vadim Brodsky VadimBrodsky

View GitHub Profile
@VadimBrodsky
VadimBrodsky / flexbox-form.html
Last active February 23, 2019 04:12
What The Flexbox
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Flexbox Single Line Form</title>
<style type="text/css" media="screen">
html {
box-sizing: border-box;
}
@VadimBrodsky
VadimBrodsky / notes.md
Last active February 12, 2019 11:03
SSH Agent on Windows

Ensure the ssh-agent is running:

  • Adding your SSH key to the ssh-agent
  • If you are using the Git Shell that's installed with GitHub Desktop, the ssh-agent should be running.
  • If you are using another terminal prompt, such as Git for Windows, you can use the "Auto-launching the ssh-agent" instructions in "Working with SSH key passphrases"
@VadimBrodsky
VadimBrodsky / .gitignore
Last active February 14, 2019 03:24
Rust Lang
*
!/**/
!*.*
*.exe
*.pdb
@VadimBrodsky
VadimBrodsky / Dockerfile
Last active February 2, 2019 21:02
Docker Workstation
# https://github.com/thornycrackers/docker-neovim/blob/master/Dockerfile
FROM ubuntu:18.04
# Better terminal support
ENV TERM screen-256color
ENV DEBIAN_FRONTEND noninteractive
# Update and install
RUN apt-get update && apt-get install -y \
htop \
function getProp<T, K extends keyof T>(obj: T, key: K): T[K] {
return obj[key];
}
const obj = { text: 'hello', count: 42 };
let s = getProp(obj, 'text'); // string
let n = getProp(obj, 'count'); // number
let x = getProp(obj, 'foo'); // error
@VadimBrodsky
VadimBrodsky / arch.txt
Last active August 11, 2020 12:10
arch
pacstrap /mnt base base-devel
pacman -S
openssh
grub
os-prober
linux-headers
linux-lts
linux-lts-headers
wpa_supplicant
wireless_tools
@VadimBrodsky
VadimBrodsky / solarized-light.json
Created February 10, 2018 17:54
Secure Shell Profiles
{
"magic":"nassh-prefs",
"version":1,
"nassh":{
"profile-ids":[
{
"id":"9f63",
"json":{
"description":"freenas",
"username":"Vadim",
@VadimBrodsky
VadimBrodsky / prefs.js
Created January 25, 2018 03:24 — forked from jonchurch/prefs.js
Dracula theme for Chrome Secure Shell, for all of us using crouton!
// Paste this whole file into your Chrome Secure Shell window's inspect console, and run it!
term_.prefs_.set('enable-bold', false)
term_.prefs_.set('background-color', "#282a36");
term_.prefs_.set('foreground-color', "#f8f8f2");
term_.prefs_.set('color-palette-overrides', [
"#000000",
"#ff5555",
"#50fa7b",
@import url('https://fonts.googleapis.com/css?family=PT+Mono');
@import url('https://fonts.googleapis.com/css?family=Oxygen+Mono');
@import url('https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css');
/* causes horizontal lines
@import url('https://fontlibrary.org/face/fantasque-sans-mono');
'Fantasque Sans Mono'
*/
x-screen {
const combineReducers = (reducers) => {
return (state = {}, action) => {
return Object.keys(reducers).reduce((nextState, key) => {
nextState[key] = reducers[key](state[key], action);
return nextState;
}, {});
};
};
const todoApp = combineReducers({