Skip to content

Instantly share code, notes, and snippets.

View subodh-malgonde's full-sized avatar

Subodh Malgonde subodh-malgonde

View GitHub Profile
@Cartexius
Cartexius / install_gtest_ubuntu.md
Last active May 28, 2024 06:01
Install gtest in Ubuntu
@makerj
makerj / settings-partial.py
Last active December 30, 2020 19:28
HOW TO SHARE COOKIE ACROSS SUBDOMAINS IN DJANGO
"""
PRODUCTION SETTINGS AREA
"""
if not DEBUG:
# share cookie across sub-domains. LEADING DOT IN DOMAIN STRING will acts like a wildcard for sub-domain
DOMAIN = '.phople.us'
CSRF_COOKIE_DOMAIN = DOMAIN
SESSION_COOKIE_DOMAIN = DOMAIN
SESSION_COOKIE_AGE = 1209600 # 2 weeks
@bmarrdev
bmarrdev / AnimateCounter.java
Created July 10, 2015 08:48
AnimateCounter provides ability to animate the counting of numbers using the builtin Android Interpolator animation functionality.
/*
* Copyright (C) 2015 Hooked On Play
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@gitaarik
gitaarik / git_submodules.md
Last active July 3, 2024 11:45
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 4, 2024 17:58
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname