Skip to content

Instantly share code, notes, and snippets.

View mehagar's full-sized avatar
🏠
Working from home

Michael Hagar mehagar

🏠
Working from home
View GitHub Profile
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.7.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3', '>= 6.0.3.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
# Use Puma as the app server
@mehagar
mehagar / brakeman.yml
Last active July 2, 2020 14:42
How to use pronto-brakeman as a Github Action
name: Pronto
on: [pull_request]
jobs:
pronto:
runs-on: ubuntu-latest
steps:
- name: Checkout code
@mehagar
mehagar / Makefile
Created May 4, 2020 22:59
Install Ruby 2.1.0
rvm pkg install openssl
rvm install $(RUBY_VERSION) --with-openssl-dir=$(HOME)/.rvm/usr
code --install-extension batisteo.vscode-django
code --install-extension codezombiech.gitignore
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension donjayamanne.githistory
code --install-extension donjayamanne.python-extension-pack
code --install-extension DotJoshJohnson.xml
code --install-extension eamodio.gitlens
code --install-extension EditorConfig.EditorConfig
code --install-extension hbenl.vscode-test-explorer
code --install-extension ivory-lab.jenkinsfile-support
@mehagar
mehagar / writeToScreen.py
Created November 12, 2019 14:03
test Description from pycharm
print('Hello World')
x = 4
def myFunction(y):
return x + 3
print(myFunction(4))
@mehagar
mehagar / log.txt
Created July 3, 2019 14:09
Add existing projects install log
7/3/2019 9:07:36 AM - Microsoft VSIX Installer
7/3/2019 9:07:36 AM - -------------------------------------------
7/3/2019 9:07:36 AM - vsixinstaller.exe version:
7/3/2019 9:07:36 AM - 16.2.2061
7/3/2019 9:07:36 AM - -------------------------------------------
7/3/2019 9:07:36 AM - Command line parameters:
7/3/2019 9:07:36 AM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\vsixinstaller.exe,/appidinstallpath:C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe,/skuName:Enterprise,/skuVersion:16.1.29025.244,/appidname:Microsoft Visual Studio Enterprise 2019,/culture:en-US,/noep,C:\Users\mhagar\AppData\Local\Temp\VSIXbk5fvn0y.vsix
7/3/2019 9:07:36 AM - -------------------------------------------
7/3/2019 9:07:36 AM - Microsoft VSIX Installer
7/3/2019 9:07:36 AM - -------------------------------------------
@mehagar
mehagar / sample.txt
Created December 1, 2017 16:00
Test gist.
This is a test gist.
@mehagar
mehagar / WJElement test input
Created September 14, 2015 17:53
WJElement test issue
{
"EVm4Kb":{
"zGXo6M":"gxEVm4Kbs",
"FWn5LctARizGXo6MduBSj1HY":"s0QhyFWn5LctARizGXo6MduBSj",
"7NevCT":12345
},
"yFWn5LctARi":[
{
"BSj1HYp7Ne":{
"5Lct":"DUl3Jar9",