上一页 1 2 3 4 5 6 7 ··· 41 下一页
摘要: 如果需要提前将已有keycloak的realm导出并通过docker-compose导入,用下图的方式导出,将导出的文件命名为realms.json 新建文件夹并创建文件: docker-compose.yml 如果不需要导入realm,可以直接用下面的方式: 后台启动: docker-compos 阅读全文
posted @ 2019-10-11 10:28 冰凌花花~ 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 用到的gem有: gem 'activerecord-session_store', '~> 0.1.0'gem 'redis', '~> 3.3.3'gem 'redis-namespace', '~> 1.6.0'gem 'redis-rack-cache'gem 'redis-rails', 阅读全文
posted @ 2019-09-25 09:42 冰凌花花~ 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 假设有一个model为book.rb, 里面有一个默认的搜索条件: default_scope { where(display: true) } 也就是说如果直接写查询语句的话,默认是只能搜索到display 为true的book,如果默认查询所有的book呢, 这里就用到unscope unsco 阅读全文
posted @ 2019-09-25 06:10 冰凌花花~ 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 注意不要用event.keyCode, https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent js代码 resetBankAccountNumber(id) { this.setBankAccountValidity('ownB 阅读全文
posted @ 2019-09-19 05:43 冰凌花花~ 阅读(340) 评论(0) 推荐(0) 编辑
摘要: https://jupyter.org/install.html 安装:pip install jupyterlab 启动: jupyter notebook 如果想用来测试http请求,需要安装requests pip install requests 接下来测试一下get、post请求 Get 阅读全文
posted @ 2019-09-06 15:14 冰凌花花~ 阅读(432) 评论(0) 推荐(0) 编辑
摘要: OpenSSL::Cipher.new application_controller.rb def decrypter(data) key = ENV['ENCRYPTION_KEY'] iv = ENV['ENCRYPTION_IV'] decipher = OpenSSL::Cipher.new 阅读全文
posted @ 2019-08-12 09:06 冰凌花花~ 阅读(689) 评论(0) 推荐(0) 编辑
摘要: https://serverless.com/framework/docs/providers/aws/guide/quick-start/ 安装serverless $npm install -g serverless $mkdir serverless-demo $cd serverless-d 阅读全文
posted @ 2019-08-07 07:37 冰凌花花~ 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Recommended solution: https://docs.aws.amazon.com/lambda/latest/dg/vpc-rds.html Coded a python script (as attached) for insert the biller details to t 阅读全文
posted @ 2019-08-03 11:57 冰凌花花~ 阅读(257) 评论(0) 推荐(0) 编辑
摘要: aws 阅读全文
posted @ 2019-06-30 18:11 冰凌花花~ 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: public void doGet(HttpServletRequest request, HttpServletResponse response) { response.setContentType("text/csv"); response.setHeader("Content-Disposi 阅读全文
posted @ 2019-06-28 18:39 冰凌花花~ 阅读(234) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 41 下一页