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 | |
# 1. To run this script curl it locally: | |
# curl https://gist.githubusercontent.com/dtaivpp/c587d99a2cab441eba0314534ae87c86/raw -o opensearch-compose-bootstrap.sh | |
# 2. Change it to be executable: | |
# chmod +x opensearch-compose-generate.sh | |
# 3. Run it: | |
# ./opensearch-compose-generate.sh | |
# | |
# This will create: | |
# - docker-compose.yml file for OpenSearch |
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
interface User { | |
id: number; | |
name: string; | |
email: string; | |
address?: string; | |
} | |
interface GetUserByIdParams { | |
id: User["id"]; | |
filter: { [k in keyof User]: User[k] }; |
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
export const mockedCorrectUser = { | |
name: "abc", | |
uuid: "b3963682-08f1-4946-b832-3b7fe4d45f6c", | |
email: "[email protected]", | |
verified: true, | |
}; | |
export const invalidUser = { | |
name: "abc", | |
uuid: "abc", |
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
{ | |
kpireferences: { | |
prefixes: { | |
http: //api.clearsight.co/ontology/Wolverine: "O0", | |
http: //apidev.clearsight.co/data/tellmeharrysachit: "D0" | |
}, | |
access: [ | |
], | |
data: { |
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 | |
START=$1 | |
END=$2 | |
if [[ "$#" -ne 2 ]]; then | |
echo -e "Proved a start and end time using this fromat: YYYY-MM-D"; | |
exit; | |
fi |
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 | |
sudo apt-get install php-pear | |
sudo pear upgrade pear | |
sudo pecl install xhprof-beta | |
sudo apt-get install graphviz | |
sudo cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini_original | |
sudo cp /etc/php5/apache2/php.ini /tmp |
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 | |
if [ $# -ne 3 ] | |
then | |
echo -e "Usage gitpush [remote_branch] [branch_name] [commit_message]" | |
echo -e "eg: gitpush origin master 'Some commit message'" | |
exit | |
fi | |
git add . |