Skip to content

Instantly share code, notes, and snippets.

View PabloB07's full-sized avatar
💻
Programming world

Pablo Blanco PabloB07

💻
Programming world
View GitHub Profile
@PabloB07
PabloB07 / litecoin fork
Last active July 11, 2024 23:23 — forked from samjoshuva/litecoin fork
how to fork and deploy litecoin
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libzmq3-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
@PabloB07
PabloB07 / gist:f4733a7ec53ddbe6a2db48846ec74e91
Created June 4, 2023 21:30 — forked from wrburgess/gist:3131246
Getting Started with Foreman

Rails & Trix: Add Underline, Superscript, and Subscript

This guide will walk you through adding some extra features such as the ability to underline your text, or enhance your content by adding superscripts or subscripts for annotations or Math equations.

Prerequisites: Instruction guide assumes that you have created a Rails application and installed ActionText.

What will you learn:

@PabloB07
PabloB07 / contact-form-rails-6.md
Created November 4, 2022 01:22 — forked from stevecondylios/contact-form-rails-6.md
Create a Contact Form in Rails 6

How to make a contact form in rails 6

This is a quick walk through on how to:

  1. make a contact form in rails 6,
  2. test it locally, and
  3. move it into production using heroku and the MailGun addon

This uses the free heroku and mailgun plans. If you get stuck on any part, check the full code here.

@PabloB07
PabloB07 / README.md
Created July 3, 2022 22:17 — forked from briangershon/README.md
Minecraft Plugin Development Guide

Minecraft Plugin Development Guide

For those new to Minecraft Plugins, there's a lot of new and old documentation to run through on the web.

Additionally plugins compiled on newer versions of Java weren't working on older stable Minecraft server versions.

I've captured my learning in two places.

  • This guide covers the workflow of editing, compiling and testing plugins.
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
@PabloB07
PabloB07 / keybase.md
Created November 16, 2019 01:16
KeyBase <3

Keybase proof

I hereby claim:

  • I am pablob07 on github.
  • I am pablob07 (https://keybase.io/pablob07) on keybase.
  • I have a public key ASAqE8zyKa5w7z-pcxPmHikixcdvHcqchjmcCVKrsWs3dgo

To claim this, I am signing this object:

@PabloB07
PabloB07 / chaucha.php
Created November 12, 2019 20:09
Chaucha Adapter PHP for wordpress e-commerce, based on Litecoin.
<?php
/*
Plugin Name: Chaucha Adapter
Plugin URI: gist.github.com/PabloB07
Description: Chaucha integration for wordpress e-commerce.
Version: 1.0.0
Author: pablo blanco <[email protected]>
Author URI: http://pablo.cl
*/
@PabloB07
PabloB07 / sinatra.md
Created June 10, 2019 07:29 — forked from ogryzek/sinatra.md
Sinatra and Ruby Gems

#Sinatra

Ruby Gems

Ruby Gems
There are over 72,000 gems. There's is probably a gem available for whatever it is you want to do. Let's try installing a gem called "snooby". In your terminal, try gem install snooby.
If you are having difficulty with installing gems, try installing a ruby version management tool, such as RVM

1.) Find a gem that allows you to print something in IRB in color.

gem install colorize
@PabloB07
PabloB07 / chaincranberry.sol
Last active May 29, 2019 09:27
ChainCranBerry - Token ERC20
pragma solidity ^0.4.25;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {