Skip to content

Instantly share code, notes, and snippets.

View dineshgowda24's full-sized avatar
🎯
Focusing

Dinesh Gowda dineshgowda24

🎯
Focusing
View GitHub Profile
@chetanppatil
chetanppatil / set-dbeaver-timezone-to-UTC.md
Last active December 19, 2023 01:34
Set dbeaver timezone to UTC (default timezone)

For Linux Users

  1. Go to directory: /usr/share/dbeaver
  2. Edit dbeaver.ini file
  3. In that file add -Duser.timezone=UTC this line under -vmargs tag
  4. Save it and restart dbeaver.
  5. Enjoy with correct date without any date conversion.

Finally your dbeaver.ini file will look like this:

@lukebakken
lukebakken / Vagrantfile
Last active November 19, 2020 03:54
Ubuntu 16 + RabbitMQ
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
export DEBIAN_FRONTEND=noninteractive
echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
dpkg -i erlang-solutions_1.0_all.deb
apt-get -yq update
@jamesmosier
jamesmosier / android-google-play-api-subscriptions.js
Created March 27, 2018 15:53
Example, using Node, on how to get user subscriptions using the Google Play Developer API (with androidpublisher role)
const { google } = require("googleapis");
const publisher = google.androidpublisher("v2");
const OAuth2 = google.auth.OAuth2();
const SERVICE_ACCOUNT_EMAIL = "[email protected]";
const SERVICE_ACCOUNT_KEY_FILE = require("./path/to/credentials.json");
const jwtClient = new google.auth.JWT(
SERVICE_ACCOUNT_KEY_FILE.client_email,
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active November 16, 2024 05:10
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@tomysmile
tomysmile / mac-setup-redis.md
Last active October 31, 2024 21:46
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@bgentry
bgentry / lock.go
Last active December 13, 2022 08:51
Redis locking in Go with redigo #golang
package main
import (
"github.com/garyburd/redigo/redis"
)
var ErrLockMismatch = errors.New("key is locked with a different secret")
const lockScript = `
local v = redis.call("GET", KEYS[1])