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
@stebennett
stebennett / feeds.opml
Created August 12, 2016 15:24
The feeds I currently subscribe to.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Stephen subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Companies" title="Companies">
<outline type="rss" text="Trello" title="Trello" xmlUrl="https://trello.engineering/feed.xml" htmlUrl="http://tech.trello.com/"/>
<outline type="rss" text="IMVU" title="IMVU" xmlUrl="http://engineering.imvu.com/feed/" htmlUrl="https://engineering.imvu.com"/>
@0xjac
0xjac / private_fork.md
Last active July 18, 2025 20:50
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@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
@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"`
@enricofoltran
enricofoltran / main.go
Last active July 19, 2025 10:43
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"
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active July 19, 2025 07:59
Online Resources For Web Developers (No Downloading)
@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

@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"

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

@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: