Skip to content

Instantly share code, notes, and snippets.

@imsmo
imsmo / WD-Harddisk-Passport-Unlock-Linux
Last active July 10, 2022 16:08
Unlocking WD Passport Hard Disk on Linux/ Ubuntu Operating System
Steps to follow:
1. Open Terminal
2. Type Command : dmesg | grep -i scsi (This will provide your WD Passport drive name)
Example : In my case its "sdb" (See the line [sdb] Attached SCSI disk above the WD My Passport)
3 Download the code zip file: https://github.com/geekhaidar/WD-Passport-Unlock-Linux
4. Unzip the files downloaded in the Download folder
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@maxandersen
maxandersen / init.lua
Created August 25, 2019 21:49
HammerSpoon Text Expansion Feature
--[[
=== HammerText ===
Based on: https://github.com/Hammerspoon/hammerspoon/issues/1042
How to "install":
- Simply copy and paste this code in your "init.lua".
How to use:
- Add this init.lua to ~/.hammerspoon/Spoons/HammerText.spoon
- Add your hotstrings (abbreviations that get expanded) to the "keywords" list following the example format.
@daotoad
daotoad / init.vim
Created August 20, 2019 01:07
Vim Settings
" Set this variable to 1 to fix files when you save them.
let g:ale_fix_on_save = 1
highlight ALEWarning ctermbg=DarkMagenta
highlight ALEError ctermbg=DarkBlue
" Enable completion where available.
" This setting must be set before ALE is loaded.
let g:ale_completion_enabled = 1
let g:ale_fixers = {
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active July 8, 2025 21:00
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@aparajita
aparajita / hosts
Created February 23, 2019 19:03
hosts file entries to block Facebook
# Block facebook!
0.0.0.0 static.ak.fbcdn.net
0.0.0.0 www.connect.facebook.net
0.0.0.0 www.facebook.com
0.0.0.0 www.fbcdn.com
0.0.0.0 www.fbcdn.net
0.0.0.0 www.graph.facebook.com
0.0.0.0 www.login.facebook.com
0.0.0.0 www.s-static.ak.facebook.com
0.0.0.0 www.static.ak.connect.facebook.com
@naeem-gitonga
naeem-gitonga / lazy-load-context-app.js
Last active July 24, 2024 13:27
example of lazy-loading and using context-api together pt. 3.
const Form = React.lazy(() => import('./form/form'));
class App extends Component {
state = {
open: false,
}
handleClick = () => {
this.setState({ open: true });
}
@bradtraversy
bradtraversy / pipenv_cheat_sheet.md
Last active June 30, 2025 02:39
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@kubilaykiymaci
kubilaykiymaci / .js
Last active September 30, 2023 06:13
React - Flow Example
// @flow : which files we want to flow will monitor
import * as React from 'react' // let’s flowify the component we just wrote
import Xcomponent from "xcomponent"
const GridType = {
article: "article",
text: "text",
test: "test"
}
@gaearon
gaearon / index.html
Last active March 10, 2025 04:43
Multiple React components on a single HTML page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>