Skip to content

Instantly share code, notes, and snippets.

Ayush Shanker ayush--s

Block or report user

Report or block ayush--s

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ayush--s
ayush--s / main.go
Created Mar 13, 2020
kill executables of a name over memory usage percentage
View main.go
package main
import (
"fmt"
"log"
"log/syslog"
"strings"
"github.com/shirou/gopsutil/process"
)
@ayush--s
ayush--s / main.go
Last active Jun 2, 2020
Clickup commit msg hook
View main.go
package main
// put this executable as .git/hooks/prepare-commit-msg
import (
"io/ioutil"
"log"
"os"
"strings"
)
@ayush--s
ayush--s / s3fs setup.sh
Last active Jun 2, 2020
S3FS setup with systemd
View s3fs setup.sh
sudo apt install s3fs
echo "<redacted>" > ~/.passwd-s3fs
sudo nano /etc/systemd/system/s3fs.service
chmod 600 /home/ubuntu/.passwd-s3fs
sudo systemctl daemon-reload
sudo systemctl enable s3fs
View README.md

####All this because :

  • I need to have strong passwords everywhere
  • I don't want to use a single password everywhere
  • I can't remember all my passwords
  • I have productivity issues with LastPass & Keepass2

####Trade-Offs / Comparisons:

  • I happen to use my friends' computers heck lot, and using Lastpass/Keepass there is not always the best option
  • Lastpass seriously fucks up when you use two accounts in the same site, the integration there is more annoying than useful
  • I want to reproduce my password in every computer without downloading my full passwords file
You can’t perform that action at this time.