This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* node.js NoSQL embedded database | |
* Version: 2.0.7 | |
* Date: 12.09.2014 | |
* | |
* This file only contains the nodejs nosql typescript definition, run: | |
$ sudo npm install -g nosql | |
// or | |
$ npm install nosql | |
* this will download the javascript file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MVN_CMD=${@:-"install"} | |
# Simple script to run maven in docker in powershell | |
# by also having a volume of the maven-repos | |
docker volume create --name maven-repo | |
docker run -it --rm -v "/$(pwd)"://usr/src/mymaven -v maven-repo://root/.m2 -w //usr/src/mymaven maven mvn $MVN_CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# source: https://hackernoon.com/handy-docker-aliases-4bd85089a3b8 | |
# custom extended | |
# enable updateing this file | |
.docker-alias() { | |
SOURCE="https://gist.github.com/BigSisl/7e3f38858dbb460b28b334cfb47c9633/raw/.docker-alias" | |
if [ "$1" == "update" ]; then | |
echo "start updating ${FUNCNAME[0]} from $SOURCE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tmux-session=mySession | |
tmux new -d -s $tmux-session | |
command=${@//-c/} | |
if [[ ! "$(pgrep custom | wc -l)" -le "2" ]]; then | |
echo "already running"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# print the list of commands starting with prefix_command | |
usage() { | |
echo "Usage:" | |
sed -ne 's/^prefix_command_\(.\+\)().*/ crowdr \1/p' ${BASH_SOURCE-} | |
echo | |
echo "CLI v$(crowdr_command_version) (docs @ [LINK])" | |
} | |
# define the help function, define more functions as "_server_cli_[CMD]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check https://github.com/ermakovich/pptr-mock-server/pull/129 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# configure gitconfig aliases | |
curl https://gist.githubusercontent.com/BitFis/d7bba90c1a45c0def808c3041ad23c16/raw/aliases.gitconfig >> ~/.gitconfig | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (C) 2022 Lucien Zuercher <[email protected]> | |
# SPDX-License-Identifier: MIT | |
set -e | |
export CMAKE_COMMAND=${CMAKE_COMMAND:-"cmake"} | |
color_error="\e[0;91m" | |
color_reset="\e[0m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Manage node exporter binary | |
# references: | |
# - https://prometheus.io/docs/guides/node-exporter/ | |
# - https://jaanhio.me/blog/linux-node-exporter-setup/ | |
# print the list of commands starting with prefix_command | |
usage() { | |
echo "Usage:" | |
sed -ne 's/^prefix_command_\(.\+\)().*/ crowdr \1/p' ${BASH_SOURCE-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket | |
import struct | |
def main(): | |
MCAST_GRP = 'ff05::abcd' | |
MCAST_PORT = 5007 | |
sock = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM, socket.IPPROTO_UDP) | |
sock.setsockopt(socket.IPPROTO_IPV6, socket.IP_MULTICAST_TTL, 32) |
OlderNewer