Skip to content

Instantly share code, notes, and snippets.

View SagarKapasi099's full-sized avatar
💻
Feel Free To Reach Out!

Sagar Kapasi SagarKapasi099

💻
Feel Free To Reach Out!
View GitHub Profile
@ppoffice
ppoffice / README.md
Last active May 16, 2024 05:14
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@erickpatrick
erickpatrick / init.vim
Last active January 10, 2023 18:42
Neovim CoC Intelephense configuration
" TODO: split up config into multiple files
" source $HOME/.config/nvim/vim-plug/plugins.vim
" source $HOME/.config/nvim/<category>/<sub-category-filename>.vim
" source $HOME/.config/nvim/<plug-config>/<plugin-name>.vim
set nocompatible
filetype off
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
@sandcastle
sandcastle / pi-mount.sh
Last active March 4, 2023 21:05
Mount HFS+ USB Drive on a Raspberry Pi
sudo apt-get update
sudo apt-get upgrade -y
# install hfs tools (for macos extended journaled)
sudo apt-get install hfsplus hfsutils hfsprogs
sudo reboot
# get device id
df -h
# example:

Windows 10 - Using Git Bash With TMUX

Why Not Use WSL?

I tried the WSL and it isn't quite seamless enough for me. I ran in to problems when editing in VSCode and having watchers on my files (ng serve, dotnet watch run, etc.). In addition, I kept running in to problems that only manifest themselves when running in WSL. For example, this issue with doing production builds and the terser plugin has made many a developer rage-quit on using WSL. Just figuring out that it was an issue with the WSL took a lot of time.

That terser plugin issue was never resolved and I ended up having to keep a git bash window open in addition to my WSL console window so I could do production builds. To make matters worse, my npm packages were platform-dependent so I couldn't use the same project folder. So, my procedure was: commit whatever changes to test branch, push to repo, git pull on my "windows" project folder, and do a production build there

@mbchoa
mbchoa / main.go
Created December 25, 2018 21:32
Example usage of MongoDB's official Go Driver with nested struct types
package main
import (
"context"
"fmt"
"log"
"github.com/mongodb/mongo-go-driver/bson"
"github.com/mongodb/mongo-go-driver/mongo"
"github.com/mongodb/mongo-go-driver/mongo/options"
@laggingreflex
laggingreflex / README.md
Created December 22, 2018 22:43
SSD M.2 vs HDD: Running npm install on a typically large NodeJS project

HDD

[![][HDD_gif]][HDD_link] ~ 1 minute 26 sec

SSD

[![][SSD_gif]][SSD_link] ~ 20 sec

The node_modules in this project consisted of ~16k files and ~70MB

@bradtraversy
bradtraversy / webdev_online_resources.md
Last active May 15, 2024 06:38
Online Resources For Web Developers (No Downloading)
@enricofoltran
enricofoltran / main.go
Last active April 1, 2024 00:17
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@ipedrazas
ipedrazas / main.go
Created September 29, 2017 04:12
Complex json in Go
package main
import "encoding/json"
import (
"fmt"
"errors"
)
type ColorfulEcosystem struct {
Things []ColoredThing `json:"things"`
@chadmayfield
chadmayfield / hashcat_macos.sh
Created June 2, 2017 17:24
Install Hashcat on macOS
#!/bin/bash
git clone https://github.com/hashcat/hashcat.git
mkdir -p hashcat/deps
git clone https://github.com/KhronosGroup/OpenCL-Headers.git hashcat/deps/OpenCL
cd hashcat/ && make
./hashcat --version
./hashcat -b -D 1,2
./example0.sh