Skip to content

Instantly share code, notes, and snippets.

View intrip's full-sized avatar
:octocat:
Coding, fun!

Jacopo Beschi intrip

:octocat:
Coding, fun!
View GitHub Profile
@intrip
intrip / extract_asana.sh
Created July 20, 2021 07:57
Open in Chrome last release Asana
head -n 100 CHANGELOG.md | ruby -e 'a = ARGF.to_a; e = a.find_index { |x| x =~ /^\s*\n$/ }; puts a[2..e]' | ruby -e 'puts ARGF.map { |l| l =~ /(https:\/\/app\.asana.*)\n/ && $1 }.compact' | xargs open -a "Google Chrome"
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
# Activate the gem you are reporting the issue against.
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", path: "."
// ==UserScript==
// @name Hide github issues
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hide checked github issues
// @author Jacopo Beschi
// @match https://github.com/*issues*
// @grant none
// ==/UserScript==
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem 'rails', '6.1'
gem 'sqlite3'
end
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "activerecord", "6.1"
# gem "rails", path: '.'
gem "mysql2"
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem 'activerecord', '6.1'
gem "sqlite3"
end
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', '6.1.1'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
package main
import (
"encoding/json"
"fmt"
"net/http"
"regexp"
"strconv"
)