sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
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
var valid_email = /[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/; |
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 'yaml' | |
task :deploy do | |
# add check if file exists etc | |
keys = YAML::load(File.open('keys.yml')) | |
token = keys['token'] | |
secret = keys['secret'] | |
# add check for empty values etc |
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
let BlogAuthor = new GraphQLObjectType({ | |
name: 'Author', | |
fields: () => ({ | |
id: { type: GraphQLString }, | |
name: { type: GraphQLString } | |
}) | |
}) | |
let BlogArticle = new GraphQLObjectType({ | |
name: 'Article', |
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
slug = text.downcase.gsub(/(ä|Ä|ö|Ö|ü|Ü|ß| |\?|\!)/, { | |
'ä' => 'ae', | |
'Ä' => 'ae', | |
'ö' => 'oe', | |
'Ö' => 'oe', | |
'ü' => 'ue', | |
'Ü' => 'ue', | |
'ß' => 'ss', | |
' ' => '-', | |
'?' => '', |
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
{ | |
"caret_style": "smooth", | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".gitkeep", | |
"*.css" | |
], |
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
{ | |
"caret_style": "smooth", | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".gitkeep" | |
], | |
"folder_exclude_patterns": | |
[ |
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
let arguments = { someId: "1234" } | |
graphql(schema, query, null, arguments) |
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
Request timeout for icmp_seq 176 | |
Request timeout for icmp_seq 177 | |
Request timeout for icmp_seq 178 | |
Request timeout for icmp_seq 179 | |
Request timeout for icmp_seq 180 | |
Request timeout for icmp_seq 181 | |
Request timeout for icmp_seq 182 | |
Request timeout for icmp_seq 183 | |
Request timeout for icmp_seq 184 | |
Request timeout for icmp_seq 185 |