Skip to content

Instantly share code, notes, and snippets.

View paluchas's full-sized avatar
🎯
Focusing

Sebastian Pałucha paluchas

🎯
Focusing
  • Durham/York, UK
View GitHub Profile
@adieuadieu
adieuadieu / handler.js
Last active May 27, 2024 19:07
AWS OpenSearch Cluster with Serverless Framework
const aws4 = require('aws4')
const host = process.env.OPENSEARCH_ENDPOINT
module.exports.default = async function handler(
event,
context,
) {
const fetch = (await import('node-fetch')).default
const indexName = 'example'
@straccers
straccers / monitrc
Created October 5, 2018 10:38
Monit ordered start of all dlib java processes: these are the scripts and changes to /et/monit/monitrc I used to enforce correct stop/start order for activemq tomcat and the two yodl apps on yodlapp3. All shell scripts were collected together into the folder /opt/york/digilib/stop_start_scripts
#!/bin/bash
#ensure tomcat does not start before activemq
#make sure it doesnt start before activemq
ACTIVEMQ=`ps -aux | grep activemq`
echo "ActiveMQ: ${ACTIVEMQ}"
TEST="apache-activemq"
if [[ ${ACTIVEMQ} =~ $TEST ]]
@straccers
straccers / additional_resources_for_fedora_migration
Last active October 31, 2018 12:09
Scripts, batch files, and risearch query examples used to identify and export fedora records during our migration process
This file is a work around to force a meaningful gist name while the naming issue described at https://github.com/isaacs/github/issues/194 remains unresolved
@jonsuh
jonsuh / .bash_profile
Last active February 16, 2024 17:17
Bash echo in color
# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
@pksunkara
pksunkara / config
Last active May 22, 2024 13:43
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta