Skip to content

Instantly share code, notes, and snippets.

View DaKaZ's full-sized avatar

Mike Kazmier DaKaZ

View GitHub Profile
@DaKaZ
DaKaZ / awesome-react-native.md
Last active May 7, 2020 18:02
Awesome ReactNative
@DaKaZ
DaKaZ / gist:0b6599043a008fc16a92958ae0bad26f
Created July 15, 2016 16:55
Compile log for Valgrind on OpenWRT 14.07 on Realtek 5281 cpu
make[2]: Entering directory `/home/ubuntu/kudoso_openwrt/package/devel/valgrind'
mkdir -p /home/ubuntu/kudoso_openwrt/dl
/home/ubuntu/kudoso_openwrt/scripts/download.pl "/home/ubuntu/kudoso_openwrt/dl" "valgrind-3.8.1.tar.bz2" "288758010b271119a0ffc0183f1d6e38" "http://valgrind.org/downloads/"
--2016-07-15 16:33:05-- http://valgrind.org/downloads/valgrind-3.8.1.tar.bz2
Resolving valgrind.org (valgrind.org)... 46.235.226.80, 2a00:1098:0:86:1000:44:0:80
Connecting to valgrind.org (valgrind.org)|46.235.226.80|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7962963 (7.6M) [application/x-bzip2]
Saving to: 'STDOUT'
#include "RestClient.h"
#define HTTP_DEBUG
#ifdef HTTP_DEBUG
#define HTTP_DEBUG_PRINT(string) (Serial.print(string))
#endif
#ifndef HTTP_DEBUG
#define HTTP_DEBUG_PRINT(string)
#endif
@DaKaZ
DaKaZ / sessions_controller.rb
Last active August 29, 2015 14:19
API Session Controller
module Api
module V1
class SessionsController < ApiController
skip_before_filter :restrict_api_access
rescue_from 'FbGraph::InvalidToken' do |exception|
messages ||= Hash.new
messages[:error] ||= Array.new
messages[:error] << 'Invalid Facebook Authentication Token'
failure(messages)
@DaKaZ
DaKaZ / gist:6f4ec97c87eddbb44604
Last active August 29, 2015 14:18
deploy.rb for local asset precompile with rubber
# This is a sample Capistrano config file for rubber
set :rails_env, Rubber.env
set :ssh_timeout, 15
on :load do
set :application, rubber_env.app_name
set :runner, rubber_env.app_user
set :deploy_to, "/mnt/#{application}-#{Rubber.env}"
set :copy_exclude, [".git/*", ".bundle/*", "log/*", ".rvmrc", ".rbenv-version", ".idea", ".rspec", ".zeus.sock", "public/system"]
@DaKaZ
DaKaZ / SassMeister-input-HTML.html
Created October 28, 2014 23:33
Generated by SassMeister.com.
<div id="player">
<div id="wrapper">
<div id="header">
<div id="btn_play" class="circleBase">
</div>
<div id="titleBar">
<div id="logo">
<span>The Logo</span>
</div>
@DaKaZ
DaKaZ / dabblet.css
Last active August 29, 2015 14:08
USeek Player - Heyer Design
/**
* USeek Player - Heyer Design
*/
body {
position: relative;
}
#player {
position: relative;
top: 0;
max-width: 1400px;
@DaKaZ
DaKaZ / custom_plan.rb
Created July 29, 2014 16:24
Zeus custom_plan.rb for simplecov and parallel_tests
require 'zeus/parallel_tests'
class CustomPlan < Zeus::ParallelTests::Rails
def test(argv = ARGV)
require 'simplecov'
SimpleCov.start 'rails'
super
end
@DaKaZ
DaKaZ / rubber.yml
Created February 19, 2014 20:46
Example rubber to yml trying to specific host to use smaller image
# REQUIRED: The name of your application
app_name: foo
# REQUIRED: The system user to run your app servers as
app_user: foo
# REQUIRED: Notification emails (e.g. monit) get sent to this address
#
admin_email: "webmaster@foo.com"
@DaKaZ
DaKaZ / gist:8718172
Last active August 29, 2015 13:55
JSON Example for USeek
{"videos":[{"video":{"allow_playback_control":false,"color":"","description":"Lonely Island - Jack Sparrow Version 2","earnable_coupons":0,"earnable_points":0,"height":null,"id":8,"length":53.0,"prize_id":null,"protocol":null,"provider":"rtmp://r.batman.golddiggeruseek.netdna-cdn.com/play","share_offer_id":null,"share_points":null,"sponsor_id":null,"thumbnail_content_type":null,"thumbnail_file_name":null,"thumbnail_file_size":null,"thumbnail_updated_at":null,"title":"Jack Sparrow","url":"mp4:vod/batman.golddiggeruseek/SM_USeek_Diego_Jack_Sparrow_March_15.m4v","width":null,"thumbnail_url":"/thumbnails/original/missing.png","pseudo_streaming_url":"http://p.batman.golddiggeruseek.netdna-cdn.com/vod/batman.golddiggeruseek/SM_USeek_Diego_Jack_Sparrow_March_15.m4v"}},{"video":{"allow_playback_control":false,"color":null,"description":"Twilight New Moon","earnable_coupons":4,"earnable_points":200,"height":480,"id":7,"length":43.0,"prize_id":null,"protocol":"rtmp","provider":"rtmp://r.golddigr.tablexipartnersl.netdna