Skip to content

Instantly share code, notes, and snippets.

View akshithg's full-sized avatar

Gee akshithg

View GitHub Profile
@akshithg
akshithg / extractgc.sh
Created March 7, 2023 19:03 — forked from xigh/extractgc.sh
Extracting LLVM bitcode from ELF files generated with -fembed-bitcode.
#!/bin/sh
if [ "*$1" == "*" ]; then
echo "usage: extract.sh src dst"
fi
if [ "*$2" == "*" ]; then
echo "usage: extract.sh src dst"
fi
@akshithg
akshithg / neo4j_switch_db.sh
Created October 3, 2023 23:55
Switch neo4j db on community edition
#!/usr/bin/env bash
set -eu
to=$1
active=$(cat /etc/neo4j/neo4j.conf | grep "initial.dbms.default_database" | cut -d'=' -f2)
echo "changing from *$active* to *$to*"
sudo sed -i "s/initial.dbms.default_database=$active/initial.dbms.default_database=$to/g" /etc/neo4j/neo4j.conf