This file contains hidden or 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
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt | |
sudo service nginx stop | |
cd /opt/letsencrypt | |
./letsencrypt-auto certonly --standalone -d example.com -d www.example.com | |
# In Nginx conf file | |
ssl on; | |
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; |
This file contains hidden or 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
{ | |
"always_show_minimap_viewport": true, | |
"auto_match_enabled": false, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme", | |
"font_size": 12, | |
"highlight_line": true, | |
"folder_exclude_patterns": [".capistrano", ".git", ".sass-cache", "log", "tmp"], | |
"ignored_packages": |
This file contains hidden or 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 | |
while read line_file1 | |
do | |
answered=$(cat file2| grep $line_file1) | |
if [ -z "$answered" ]; then | |
echo $line_file1 | |
fi | |
done < file1 |
This file contains hidden or 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
git reset --hard origin/master | |
git push origin staging --force |
This file contains hidden or 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 schema-less table from DDB to S3 | |
--# | |
--# Params: | |
--# DYNAMODB_INPUT_TABLE - name of input table | |
--# S3_OUTPUT_BUCKET - output bucket s3 path | |
--# DYNAMODB_READ_PERCENT - percent of table RCU to use | |
--# DYNAMODB_ENDPOINT - dynamodb service endpoint to use | |
--#################################################################### |
This file contains hidden or 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
git co master | |
git pull | |
git co -b new_branch_for_task | |
git add modified_files | |
git ci -m "adding new feature" | |
git fetch origin | |
git rebase origin/master | |
git co master | |
git pull | |
git rebase new_branch_for_task |
This file contains hidden or 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
curl localhost:9200/_stats/fielddata/*?pretty | |
{ | |
"ok" : true, | |
"_shards" : { | |
"total" : 280, | |
"successful" : 280, | |
"failed" : 0 | |
}, | |
"_all" : { |
This file contains hidden or 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
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true' | |
{ | |
"cluster_name" : "octoly-elasticsearch", | |
"status" : "green", | |
"timed_out" : false, | |
"number_of_nodes" : 6, | |
"number_of_data_nodes" : 6, | |
"active_primary_shards" : 50, | |
"active_shards" : 280, | |
"relocating_shards" : 0, |
This file contains hidden or 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
curl -X GET '127.0.0.1:9200/octoly-development-videos/video/_search?from=0&size=20&pretty' -d '{ | |
"query":{ | |
"bool":{ | |
"must":[ | |
{ | |
"query_string":{ | |
"query":"*", | |
"default_operator":"AND" | |
} | |
} |
This file contains hidden or 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
curl -X GET '127.0.0.1:9200/videos/video/_search?from=0&size=20&pretty' -d '{ | |
"query":{ | |
"bool":{ | |
"must":[ | |
{ | |
"query_string":{ | |
"query":"*", | |
"default_operator":"AND" | |
} | |
} |
NewerOlder