Skip to content

Instantly share code, notes, and snippets.

View h0lyalg0rithm's full-sized avatar

Suraj Shirvankar h0lyalg0rithm

View GitHub Profile
@h0lyalg0rithm
h0lyalg0rithm / run.sh
Created April 23, 2023 19:16
Build riscv-perf-model
sudo apt-get install build-essential clang python3 cmake libboost-all-dev libyaml-cpp-dev rapidjson-dev libsqlite3-dev zlib1g-dev libhdf5-cpp-103 libhdf5-dev cppcheck doxygen graphviz zstd libzstd-dev texlive-font-utils -y
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh && bash ./Miniforge3-Linux-x86_64.sh
source ~/.bashrc
git clone --recursive https://github.com/riscv-software-src/riscv-perf-model.git
git clone --branch map_v1.1.0 https://github.com/sparcians/map.git

Keybase proof

I hereby claim:

  • I am h0lyalg0rithm on github.
  • I am h0lyalg0rithm (https://keybase.io/h0lyalg0rithm) on keybase.
  • I have a public key ASCW6fm3ZjZcLUUF0ymURenr-TIddQ10YYSA3xxZbTI3jAo

To claim this, I am signing this object:

2017-07-08T08:23:58.935Z 48998 TID-4jyi0 WARN: Thread TID-4jyi0
2017-07-08T08:23:58.936Z 48998 TID-4jyi0 WARN: /home/dev/apps/paack/shared/bundle/ruby/2.2.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:151:in `backtrace'
/home/dev/apps/paack/shared/bundle/ruby/2.2.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:151:in `block in handle_signal'
/home/dev/apps/paack/shared/bundle/ruby/2.2.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:148:in `each'
/home/dev/apps/paack/shared/bundle/ruby/2.2.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:148:in `handle_signal'
/home/dev/apps/paack/shared/bundle/ruby/2.2.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:96:in `run'
/home/dev/apps/paack/shared/bundle/ruby/2.2.0/gems/sidekiq-4.2.10/bin/sidekiq:12:in `<top (required)>'
/home/dev/apps/paack/shared/bundle/ruby/2.2.0/bin/sidekiq:23:in `load'
/home/dev/apps/paack/shared/bundle/ruby/2.2.0/bin/sidekiq:23:in `<top (required)>'
@h0lyalg0rithm
h0lyalg0rithm / redis-copy.rb
Created February 28, 2017 08:16
Redis copy
#forked from https://coderwall.com/p/eclzyg/redis-to-redis-data-copy
require 'redis'
redisSrc = Redis.connect :url => "redis://localhost:6379"
redisDest = Redis.connect :url => "redis://localhost:6379"
redisSrc.keys("*").each do |key|
data = redisSrc.dump key
redisDest.restore key, 0, data unless redisDest.exists(key)
@h0lyalg0rithm
h0lyalg0rithm / daterange.ex
Created September 29, 2016 20:53
Postgres date range type using ecto
defmodule LocationService.Daterange do
@behaviour Ecto.Type
def type, do: :daterange
def cast([lower, upper]) do
{:ok, [lower, upper]}
end
def cast(_), do: :error
@h0lyalg0rithm
h0lyalg0rithm / circle.yml
Created January 10, 2016 20:44
Android CircleCI Build config
#Install android build tools, platforms
#Supported versions here https://circleci.com/docs/android
dependencies:
override:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-23.0.1,android-23,extra-google-m2repository,extra-google-google_play_services,extra-android-support
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
#Pull any submodules
checkout:
post:
@h0lyalg0rithm
h0lyalg0rithm / example.com
Created September 21, 2015 19:05
Simple configuration for PHP + nginx
server {
listen 80;
root /var/www/app/current;
index index.php index.html index.htm;
server_name example.com;
location / {
try_files $uri $uri/ =404;
@h0lyalg0rithm
h0lyalg0rithm / Capfile
Last active September 13, 2015 18:14
Static Deployments with Capistrano
require 'capistrano/setup'
require 'capistrano/deploy'
@h0lyalg0rithm
h0lyalg0rithm / new.html.haml
Last active September 13, 2015 17:58
Devise Registration
.container
.row
.col-md-4.col-md-offset-4
.login-panel.panel.panel-default
.panel-heading
%h3.panel-title Sign up
.panel-body
%div
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
= devise_error_messages!
@h0lyalg0rithm
h0lyalg0rithm / item.rb
Last active August 29, 2015 14:27
Table inheritance
class Item < ItemTemplate
self.primary_key = "id"
end