Skip to content

Instantly share code, notes, and snippets.

View nrashok's full-sized avatar
🎯
Focusing

Ashok nrashok

🎯
Focusing
View GitHub Profile
@nrashok
nrashok / Cassandra
Last active July 11, 2023 05:44
Cassandra Notes
By default, Cassandra uses 7000 for cluster communication (7001 if SSL is enabled),
9042 for native protocol clients, and 7199 for JMX.
The internode communication and native protocol ports are configurable in the Cassandra Configuration File. The JMX port is configurable in cassandra-env.sh (through JVM options). All ports are TCP.
127.0.0.1:9042
nc -vz 127.0.0.1 9042
cassandra/cassandra
@artizirk
artizirk / gnupg_scdaemon.md
Last active June 22, 2025 17:26
OpenPGP SSH access with Yubikey and GnuPG

NB: This document describles a 'Old-School' way of using Yubikey with SSH

Modern OpenSSH has native support for FIDO Authentication. Its much simpler and should also be more stable with less moving parts. OpenSSH also now has support for signing arbitary files witch can be used as replacement of gnupg. Git also supports signing commits/tags with ssh keys.

Pros of FIDO

  • Simpler stack / less moving parts
  • Works directly with ssh, ssh-add and ssh-keygen on most computers
  • Simpler
  • Private key can never leave the FIDO device

Cons of FIDO

@jpsoroulas
jpsoroulas / debezium-installation.adoc
Last active August 6, 2024 06:52
Debezium installation procedure for PostgreSQL without docker

Debezium installation

@andykuszyk
andykuszyk / Setting up Cassandra for remote access.md
Last active March 6, 2025 18:26
Setting up Cassandra for remote access

Make these changes in the cassandra.yaml config file:

start_rpc: true

rpc_address: 0.0.0.0

broadcast_rpc_address: [node-ip]

listen_address: [node-ip]

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
@alexklibisz
alexklibisz / Ionic-cordova-android-setup
Last active March 28, 2019 08:48
Dev environment setup for Ionic, Cordova, Android Setup
#install nodejs, npm, git
sudo apt-get install nodejs nodejs-legacy npm git -y
#install npm packages
sudo npm install -g cordova
sudo npm install -g ionic
sudo npm install -g ripple-emulator
#download the android sdk (http://developer.android.com/sdk/index.html#Other)
mkdir ~/.software && cd ~/.software
@gene1wood
gene1wood / batch-delete-gmail-emails.js
Last active November 5, 2025 15:21
A Google Apps Script script to bulk delete large amounts of email in Gmail while avoiding the error #793 which Gmail encounters normally
/*
This script, when used with Google Apps Scripts, will delete 400 emails and
can be triggered to run every few minutes without user interaction enabling you
to bulk delete email in Gmail without getting the #793 error from Gmail.
Google returns a maximum of 500 email threads in a single API call.
This script fetches 400 threads in case 500 threads is causing timeouts
Configure the search query in the code below to match the type of emails
you want to delete
@jirutka
jirutka / pg_change_db_owner.sh
Last active June 17, 2025 05:53
Some convenient scripts to manage ownerships and privileges in PostgreSQL.
#!/bin/sh
#
# The MIT License
#
# Copyright 2014-2017 Jakub Jirutka <[email protected]>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@consti
consti / hosts
Last active May 14, 2025 15:51
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost