Skip to content

Instantly share code, notes, and snippets.

View shashank-sharma's full-sized avatar
:shipit:
Tap Tap Tap ?

Shashank Sharma shashank-sharma

:shipit:
Tap Tap Tap ?
View GitHub Profile
@robbyrussell
robbyrussell / argonista-disk-space-reclaimer.sh
Created August 28, 2021 20:53
Planet Argon - Tidy up your Rails development/test.log files and brew cleanup
#!/bin/sh
# A little shell script to help you reclaim disk space by doing the
# following things on your Mac OS development machine.
# * Empty all of your local development.log files
# * Empty all of your local test.log files
# * Removes unused Homebrew packages
# Install:
# * Save this to ~/bin/argonista-disk-space-reclaimer.sh
# * Run % chmod +x ~/bin/argonista-disk-space-reclaimer.sh
# Usage:

Pressure Cooker Chicken

Ingredients

  • 3-4 Onions
  • 2-3 Tomatoes
  • Pick a few aromats on whatever is available. eg. Elaichi, Dalchini, Laung, Bay Leaf

Powders and Pastes

  • Hing
  • Dhania
  • Jeera
@collinbarrett
collinbarrett / userChrome.css
Last active April 11, 2024 10:22
A userChrome.css to use with Tree Style Tab (https://github.com/piroor/treestyletab) for Firefox
/*
Windows
Location: C:\Users\<YourUsername>\AppData\Roaming\Mozilla\Firefox\Profiles\<YourFirefoxProfile>\chrome
Notes:
If minimize, maximize, and close buttons are no longer visible, enable the Title Bar or Menu Bar in Firefox Customize.
macOS
Location: /Users/<YourUsername>/Library/Application Support/Firefox/Profiles/<YourFirefoxProfile>/chrome
Notes:
If minimize, maximize, and close buttons overlap other controls, add the Flexible Space in Firefox Customize.
@thomasdarimont
thomasdarimont / KeycloakClientAuthExample.java
Last active January 14, 2024 10:30
Retrieve and verify AccessToken with Keycloak Client.
package de.tdlabs.keycloak.client;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.keycloak.OAuth2Constants;
import org.keycloak.RSATokenVerifier;
import org.keycloak.admin.client.Keycloak;
import org.keycloak.admin.client.KeycloakBuilder;
import org.keycloak.common.VerificationException;
import org.keycloak.jose.jws.JWSHeader;
import org.keycloak.representations.AccessToken;
@DmitrySoshnikov
DmitrySoshnikov / python-closures.py
Created November 15, 2010 12:03
Understanding Python's closures
# "Understanding Python's closures".
#
# Tested in Python 3.1.2
#
# General points:
#
# 1. Closured lexical environments are stored
# in the property __closure__ of a function
#
# 2. If a function does not use free variables