Skip to content

Instantly share code, notes, and snippets.

View sayanee's full-sized avatar
🎯
Focusing

Sayanee Basu sayanee

🎯
Focusing
View GitHub Profile
// config
var itemsPerPage = 25;
var filterZeroStock = true; // May screw with pagination and items per page
var filterExpanded = false; // Same as above
var sortBy = 'price'; // 'price' or 'stock'
// end of config
scope = angular.element(document).scope();
child = scope.$$childHead;
@lizthegrey
lizthegrey / attributes.rb
Last active February 24, 2024 14:11
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'

Review past week

  • Review calendar events from the past week: Do you need to follow-up with anyone? Are there action items from any of those events you need to get done?
  • Review your weekly or monthly goals: Did you achieve any goals last week? Did you move forward on longer-term goals? Do you need to adjust your process this week?
  • Reflect on the past week: Did the week feel successful as a whole? Could it have been better? What were the good and bad parts?

Prepare for upcoming week

  • Review calendar events for the week ahead: Do you need to prepare notes or research for any events? Do you need to confirm times and places?
  • Review monthly and quarterly goals: Is there anything you can do this week to move towards your goals?
@cezaraugusto
cezaraugusto / gpg_fix.txt
Last active November 3, 2023 17:03
fixing `gpg failed to sign data` error on macOS
For troubleshooting, two things to first try:
run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg
run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working
If that all looks all right, one next thing to try:
run `brew install pinentry` to ensure you have a good tool installed for passphrase entry
If after that install and you re-try git commit and still get the "failed to sign the data" error:
run `gpgconf --kill gpg-agent` to kill any running agent that might be hung

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@cheeaun
cheeaun / local-static-file-server-https-node-http-server-openssl.md
Last active April 14, 2024 18:47
Set up local static file server with HTTPS

Set up local static file server with HTTPS

  • npm i http-server -g - global install the static file server
  • openssl genrsa -des3 -out key.pem 1024
  • openssl req -new -key key.pem -out csr.pem
  • cp key.pem key.pem.org
  • openssl rsa -in key.pem.org -out key.pem
  • openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
  • http-server . --S in the root directory
@cheeaun
cheeaun / rdrc2016.md
Last active June 13, 2018 08:39
RedDotRubyConf 2016 links & resources 😘
@notthetup
notthetup / shannontalks.md
Last active May 5, 2016 12:20
Talk related to Shannon and Information Theory happening in SG, May 2015

Boldport, one of the interwebs better known hardware design guys went on a rant on how prototyping is so very different from production. If you have ever held a solder gun, or intend to, you should read this.

Why did your "hardware startup" Kickstarter fail? Because none of your prototyping skills are required for production. source

Skill Prototyping Production
coding sloppy efficient
@mdang
mdang / RAILS_CHEATSHEET.md
Last active July 23, 2024 12:01
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before