Skip to content

Instantly share code, notes, and snippets.

View rsds143's full-sized avatar

rsds143

View GitHub Profile

windows terminal annoyances

  • disable terminal bell in advanced part of settings (in french it is under style de notification Bell)
  • ctrl+v and ctrl+c in ubuntu breaks basically.. most of linux so you can edit windows terminal and comment out:
  1. open up with vscode or notepad code %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
  2. comment out the following lines:
{ "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+c" },
@rsds143
rsds143 / Vagrantfile
Created February 17, 2022 14:06
another easy vagrant file for generic vm
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@rsds143
rsds143 / Vagrantfile
Created January 5, 2022 16:17
generic vagrant file to have a docker environment
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@rsds143
rsds143 / dse-solr.yaml
Created June 17, 2021 14:53
running advanced workloads on case-operator
apiVersion: cassandra.datastax.com/v1beta1
kind: CassandraDatacenter
metadata:
name: dc1
spec:
clusterName: cluster1
serverType: dse
serverVersion: "6.8.12"
dseWorkloads:
searchEnabled: true #key thing to add
@rsds143
rsds143 / .vimrc
Last active May 16, 2021 04:35
automatically setup a cloud env
"minimal vimrc for basic editing
filetype plugin indent on
"pretty stuff
syntax on
:colorscheme industry
let mapleader = ","
"search for word vim
@rsds143
rsds143 / autostart_cassandra.sh
Last active February 23, 2021 10:27
getting started with k8s and Cassandra-operator
#!/bin/bash
echo "installing k3d"
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
echo "creating k3d cluster"
k3d cluster create
echo "installing cassandra operator"
kubectl create -f https://raw.githubusercontent.com/datastax/cass-operator/v1.5.1/docs/user/cass-operator-manifests-v1.19.yaml
echo "installing cassandra data center"
curl -O https://gist.githubusercontent.com/rsds143/0e9263ed4287d888fab36eb3e4aec502/raw/f919172c64452a2277b7523d680a9e12916d0d39/cassandra-dc.yaml
kubectl create -f cassandra-dc.yaml --namespace cass-operator
@rsds143
rsds143 / error.md
Created March 18, 2020 15:51
silly issues with super pom unavailable
@rsds143
rsds143 / eob.rb
Created December 4, 2012 00:10
script aetna
require 'capybara'
require 'capybara/dsl'
require 'active_support/all'
require 'debugger'
class AetnaDownloader
include Capybara::DSL
def initialize
Capybara.run_server = false
@rsds143
rsds143 / tmux.conf
Created January 21, 2011 05:39
my tmux file
# $Id: vim-keys.conf,v 1.2 2010/09/18 09:36:15 nicm Exp $
#
# vim-keys.conf, v1.2 2010/09/12
#
# By Daniel Thau. Public domain.
#
# This configuration file binds many vi- and vim-like bindings to the
# appropriate tmux key bindings. Note that for many key bindings there is no
# tmux analogue. This is intended for tmux 1.3, which handles pane selection
# differently from the previous versions
@rsds143
rsds143 / BulkLoader.java
Last active March 3, 2017 17:52
with thread pool
/**
* I HAVE NOT BEEN FULLY TESTED DO NOT USE ME IN PRODUCTION CODE THERE ARE NO WARRANTIES
*/
public class BulkLoader {
private final int threads;
private final String[] contactHosts;
public BulkLoader(int threads, String...contactHosts){
this.threads = threads;