Skip to content

Instantly share code, notes, and snippets.

View JaysonMandani's full-sized avatar
🚀
Build. Launch. Repeat.

Jayson Mandani JaysonMandani

🚀
Build. Launch. Repeat.
View GitHub Profile
Fetching mysql2 0.4.10
Installing mysql2 0.4.10 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/jaysonpowerhrg/Sites/nitro-web/vendor/bundle/ruby/2.6.0/gems/mysql2-0.4.10/ext/mysql2
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20200801-56746-h7tc0h.rb extconf.rb --with-opt-dir\=/usr/local/opt/openssl@1.1\
--with-mysql-config\=/usr/local/opt/mysql-client@5.7/bin/mysql_config\ --with-ldflags\=-L/usr/local/opt/openssl@1.1/lib
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for ruby/thread.h... yes
em::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/jaysonpowerhrg/Sites/nitro-web/vendor/bundle/ruby/2.5.0/gems/puma-4.3.5/ext/puma_http11
/Users/jaysonpowerhrg/.asdf/installs/ruby/2.5.0/bin/ruby -r ./siteconf20200731-99708-fc7ufb.rb extconf.rb --with-opt-dir=/usr/local/opt/openssl
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
checking for openssl/bio.h... yes
checking for DTLS_method() in openssl/ssl.h... yes
checking for TLS_server_method() in openssl/ssl.h... yes
checking for SSL_CTX_set_min_proto_version in openssl/ssl.h... yes
@JaysonMandani
JaysonMandani / facebook-login.rb
Created February 26, 2019 05:35 — forked from zbone3/facebook-login.rb
Simple ruby class that allows to login to Facebook via HTTP client. This is for educational purposes only, you should always use the official API.
require 'rest_client'
require 'nokogiri'
class FacebookLogin
def initialize(username, password)
@cookies = {}
@payload = {email: username, pass: password}
@headers = {'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'}
# Define login flow
@login_steps = [
RNFS.readDir(RNFS.ExternalStorageDirectoryPath + '/blade')
.then((result) => {
return Promise.all([RNFS.stat(result[8].path), result[8].path]);
})
.then((statResults) => {
const sorted_files = _.sortBy(statResults, function(statResult) {
return new Date(statResult.mtime);
})
const file_path = sorted_files.reverse()[0].path
# This makes pbcopy/pbpaste work in tmux for OS X
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# set prefix key to ctrl+q
unbind `
set -g prefix `
#set -g prefix C-b
# Automatically set window title
set-window-option -g automatic-rename on
function unhash(hash) {
let letters = 'acdfgilmnoprstuw';
let parts = [];
while (hash !== 10) {
var index = hash % 37;
hash = (hash - index) / 37;
parts.unshift(letters[index]);
}
return parts.join('');
}
<!DOCTYPE html>
<html>
<head>
<title>jQuery Boilerplate</title>
</head>
<body>
<p>This is my HTML5 Boilerplate.</p>
<button>Download</button>
<div class="container"></div>
<p>This is my HTML5 Boilerplate.</p>
<img id="img" width=100%>
<a href="#" title="Download" download="response" id="download">Download</a>
<span class="hash-url"></span>
<div class="container"></div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(document).ready(function() {
var hashUrl = $('.hash-url').data()
@JaysonMandani
JaysonMandani / qrcode
Last active March 5, 2018 10:19
QRcode
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Blank HTML5</title>
<style>
.container {
margin-top: 220px;
text-align: center;
}
require 'spec_helper'
describe Product, ".instance methods with images" do
before(:each) do
@product = FactoryGirl.create(:product_with_image)
end
context "featured_image" do
skip "test for featured_image"
#it 'should return an image url' do