Skip to content

Instantly share code, notes, and snippets.

View shashanthk's full-sized avatar

Shashanth shashanthk

  • Mangaluru, Karnataka, India
View GitHub Profile
@shashanthk
shashanthk / pg_backup_script.sh
Last active July 24, 2023 05:23
Simple shell script to take Postgres database backup and compress it to .gz format
#!/bin/sh
# Dump DBs
dir="/path/to/backup/"
date=`date +"%Y_%m_%d_%H_%M_%S"`
filename="database_name_${date}.sql"
cd $dir
echo "\nBackup in progress...\n"
@shashanthk
shashanthk / vs_code_settings_linux.json
Created January 4, 2021 17:07
My VS Code settings (LinuxMint)
{
"workbench.startupEditor": "newUntitledFile",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.fontFamily": "'Source Code Pro',monospace",
"editor.lineHeight": 24,
"git.branchSortOrder": "alphabetically",
"git.showProgress": true,
"editor.matchBrackets": "always",
"workbench.list.openMode": "doubleClick",
@shashanthk
shashanthk / README
Created October 8, 2016 10:52 — forked from MarsVard/README
android drawable to imitate google cards.
put card.xml in your drawables directory, put colors.xml in your values directory or add the colors to your colors.xml file.
set the background of a view to card,
as you can see in card.xml the drawable handles the card margin, so you don't have to add a margin to your view
``` xml
<View
android:layout_width="fill_parent"