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 | |
# To reinstall this script in the same or another git repo run: | |
# curl -sSL https://gist.githubusercontent.com/absk1317/a91883e9e76b590192baaee72125234d/raw/360f85bbc0504bbf07c748d06fcbc1a12f5b4967/pre-push-pronto > .git/hooks/pre-push; chmod +x .git/hooks/pre-push | |
# check that pronto is installed | |
hash pronto 2>/dev/null || { | |
echo >&2 "Pronto is not installed. Install with 'gem install pronto pronto-rubocop'"; | |
echo >&2 "Find other Pronto runners at https://github.com/mmozuras/pronto#runners"; | |
exit 0; |
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
require 'zip' | |
require 'zip/filesystem' | |
Zip::File.open(zip_path, Zip::File::CREATE) do |zipfile| | |
Dir[File.join(directory_to_be_zipped, '*')].each do |file| | |
zipfile.add(File.basename(file), file) | |
end | |
end |
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
version: '2' | |
services: | |
elasticsearch1: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0 | |
container_name: elasticsearch1 | |
restart: always | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- xpack.security.enabled=false |
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
## | |
# .rubocop.yml | |
AllCops: | |
TargetRubyVersion: 2.5 | |
Include: | |
- 'config.ru' | |
- 'Gemfile' | |
- 'Guardfile' | |
- 'Rakefile' |
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
image: absk1317/ruby-node-pg:2.6 | |
pipelines: | |
default: | |
- parallel: | |
- step: | |
name: Test | |
caches: | |
- bundler | |
script: | |
- cp .env.example .env |
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
code --install-extension QassimFarid.ejs-language-support | |
code --install-extension SirTori.indenticator | |
code --install-extension TimonVS.ReactSnippetsStandard | |
code --install-extension TwentyChung.jsx | |
code --install-extension abusaidm.html-snippets | |
code --install-extension asvetliakov.move-imports | |
code --install-extension aws-scripting-guy.cform | |
code --install-extension bierner.markdown-preview-github-styles | |
code --install-extension ccitiriga.TSMethodCreator | |
code --install-extension christian-kohler.npm-intellisense |
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
[user] | |
name = Julien Bisconti | |
email = ****** | |
[core] | |
excludesfile = ~/.gitignore | |
pager = diff-so-fancy | less --tabs=1,5 -R | |
editor = /usr/bin/vim | |
[alias] | |
wow = log --all --graph --decorate --oneline --simplify-by-decoration |
I hereby claim:
- I am absk1317 on github.
- I am absk1317 (https://keybase.io/absk1317) on keybase.
- I have a public key ASArQ2o2jBpV1x4h7vRMzBF9SJe53AQYyNOLiTFbeKnI-Qo
To claim this, I am signing this object:
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
def getVersionName = { getVersionProps()['appVersionName'] } | |
def getVersionProps() { | |
def versionPropsFile = file('gradle.properties') | |
if (!versionPropsFile.exists()) { | |
versionPropsFile.createNewFile() | |
} | |
def versionProps = new Properties() | |
versionProps.load(new FileInputStream(versionPropsFile)) | |
return versionProps |