Skip to content

Instantly share code, notes, and snippets.

View akaak's full-sized avatar
🚘
Building...

AK Adapa akaak

🚘
Building...
View GitHub Profile
@akaak
akaak / if-you-use-vscode-then-use-gistpad.md
Last active January 11, 2025 17:42
vscode extension gistpad to manage your gists

If you are a developer and use Visual Studio Code (VSCode), then I recommend that you use GistPad

https://aka.ms/gistpad

Super helpful to view and work with your gists right within VSCode

Does automatic sync with your github and use VSCode interface to view, write and udpate your gists.

Build your own workflow to take notes, build knowledge base that is your own!

@akaak
akaak / unrar.sh
Created October 29, 2015 18:38
Go through far files in a directory and unrar them.
# Go through all files with extension .rar.
# create a folder with DIR_FileName
# Unrar each rar file and keep them in the respective directory
# install unrar using "brew" on mac
#
for filename in *.rar;
do echo "put ${filename}";
mkdir RAR_${filename}
unrar ${filename} RAR_${filename}
done
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 24, 2025 23:53
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@robgolding
robgolding / login_required.py
Created July 11, 2012 19:25
Django Class-Based View Mixins: Part 1
class LoginRequiredMixin(object):
"""
View mixin which requires that the user is authenticated.
"""
@method_decorator(login_required)
def dispatch(self, request, *args, **kwargs):
return super(LoginRequiredMixin, self).dispatch(
self, request, *args, **kwargs)