Skip to content

Instantly share code, notes, and snippets.

View breezeight's full-sized avatar

Nicola Brisotto breezeight

View GitHub Profile
["Fiat"]
### Keybase proof
I hereby claim:
* I am breezeight on github.
* I am breezeight (https://keybase.io/breezeight) on keybase.
* I have a public key ASBbmdpl3MTTf_AuUjm7mPjQ_WJCsUZEorBofHGbpAk_vAo
To claim this, I am signing this object:
require 'xcodeproj'
#require 'xcodeproj/project/object/build_configuration'
require 'find'
require 'yaml'
require 'pry'
class XCodeProject
def initialize(path)
unless File.exists?(path)
raise Errno::ENOENT, "#{path} does not exist."
@breezeight
breezeight / gist:6273df9026c513aaf995560e74fe2c07
Last active December 9, 2018 12:14
asdf-nodejs-issue-107.dockerfile
FROM debian:stretch-slim
#Set default shell to bash
RUN ln -f -s /bin/bash /bin/sh
# utf8.
ENV LANG=C.UTF-8
# DISTRO BASE PACKAGES UPGRADE and BASE PACKAGES
RUN apt-get update -qq && \
#!/bin/bash
#rm -rf parent_repo* child_repo && ./submodules_with_branch.sh
set -e
if ! [ -d child_repo ]; then
mkdir child_repo
cd child_repo
echo "Hello" > child_message
@breezeight
breezeight / Dockerfile
Created February 21, 2017 10:13
NVM Dockerfile
# Replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Set debconf to run non-interactively
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Install base dependencies
RUN apt-get update && apt-get install -y -q --no-install-recommends \
apt-transport-https \
build-essential \
@breezeight
breezeight / gist:740c9cba9d48d4bc9ecc
Created January 16, 2015 14:59
Load FB pixel on an outbound link
<html>
<head>
<!-- Facebook Conversion Code for new pixel -->
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
try {
(function(a, b, c, d) {
var e = a._fbq || (a._fbq = []);
if (e.push !== Array.prototype.push)
// This campaign ended 2014-10-13
// WITHOUT BY CONVS
// reportstats?actions_group_by=action_type&data_columns=['actions_28d_view']&time_increment=1&time_interval={'day_start':{'year':'2014', 'month':'10', 'day':'12'},'day_stop':{'year':'2014', 'month':'10', 'day':'20'}}&filters=[{'field':'campaign_id','type':'in','value': ['XXXXXXXX']}]
{
"date_start": "2014-10-14",
"date_stop": "2014-10-14",
"actions_28d_view": [ //---->>> No more action by_impression after the campaign ends
]
@breezeight
breezeight / gist:8579873
Created January 23, 2014 14:56
print_provision.rb extract the mobileprovisioning and print its content
#!/usr/bin/env ruby
#gem install rubyzip
require 'rubygems'
require 'zip'
require 'pathname'
def error(msg)
puts "(error) #{msg}"
diff --git a/Facebook/Scripts/AndroidFacebook.cs b/Facebook/Scripts/AndroidFacebook.cs
index 1fcbb80..8fc2d6b 100644
--- a/Facebook/Scripts/AndroidFacebook.cs
+++ b/Facebook/Scripts/AndroidFacebook.cs
@@ -419,7 +419,7 @@ namespace Facebook
{
paramsDict["parameters"] = ToStringDict(parameters);
}
- CallFB("AppEvents", MiniJSON.Json.Serialize(paramsDict));
+ CallFB("AppEvent", MiniJSON.Json.Serialize(paramsDict));