Skip to content

Instantly share code, notes, and snippets.

View cpoliver's full-sized avatar

Charles P Oliver cpoliver

  • 127.0.0.1
View GitHub Profile
import React from "react";
import { render } from "react-dom";
import Task from "data.task";
import TaskComponent from "./TaskComponent";
const users = [
{ id: 1, name: "User A", points: 45 },
{ id: 2, name: "User B", points: 22 },
{ id: 3, name: "User C", points: 79 },
{ id: 4, name: "User D", points: 54 }
@camilleriluke
camilleriluke / cz-conventional-changelog-casumo.install.sh
Created August 16, 2017 16:59
Using cz-conventional-changelog-casumo
npm install -g commitizen
npm install -g git+https://git@github.com/camilleriluke/cz-conventional-changelog-casumo.git
echo '{ "path": "cz-conventional-changelog-casumo" }' > ~/.czrc
@jimmywarting
jimmywarting / readme.md
Last active April 21, 2024 15:32
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@itod
itod / split_keyboards.md
Last active April 24, 2024 16:06
Every "split" mechanical keyboard currently being sold that I know of
@thbar
thbar / test_helper.exs
Created May 10, 2016 07:12
How to "focus" (à la RSpec) on one ExUnit test
ExUnit.configure(
exclude: :test, include: :focus,
# SNIP
)
@tanyuan
tanyuan / smart-caps-lock.md
Last active April 24, 2024 15:22
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
@mkoura
mkoura / vpn-toggle
Last active February 8, 2018 08:21
script for starting/stopping vpn using Network Manager on Linux - can be used via keyboard shortcut
#!/bin/sh
# list of configured VPNs:
# nmcli con show |grep vpn
# PIA London PPTP
uuid="07067b81-d1d8-46cb-8b92-59341c69fe73"
# PIA NL PPTP
#uuid="f8ac9237-4865-4757-a78d-8d525dc846e5"
autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use
fi
}
add-zsh-hook chpwd load-nvmrc
@romuloctba
romuloctba / readme.md
Last active August 1, 2023 12:03
Install Adobe Photoshop CS6 on Wine (Ubuntu, Elementary OS, Linux Mint)

Step 1. Install the Wine Team Ubuntu PPA

First start by installing Wine btw it's a utility to install windows apps in linux :

open the Terminal and :

   sudo add-apt-repository ppa:ubuntu-wine/ppa     
   sudo apt-get update && sudo apt-get upgrade
   sudo apt-get install wine1.7 winetricks
@stephenway
stephenway / README.md
Last active April 13, 2024 21:45
BEMIT Cheatsheet