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
cqlsh> INSERT INTO test.my_table (id, value) VALUES ( ‘1234’, ‘999’);
cqlsh> INSERT INTO test.my_table (id, value) VALUES ( ‘1235’, ‘999’); //this is the guy that never shows up
cqlsh> INSERT INTO test.my_table (id, value) VALUES ( ‘123’, ‘999’);
cqlsh> CREATE TABLE test.my_table (id text, value text, PRIMARY KEY(id));
<?xml version=”1.0" encoding=”UTF-8" standalone=”no”?>
<schema name=”autoSolrSchema” version=”1.5">
<types>
<fieldType class=”org.apache.solr.schema.TextField” name=”TextField”>
<analyzer type="index">
<tokenizer/>
</analyzer>
</fieldType>
<fieldType class=”org.apache.solr.schema.StrField” name=”StrField”/></types>))
<fields>