Skip to content

Instantly share code, notes, and snippets.

View CamonZ's full-sized avatar

Rafael Simon Garcia CamonZ

View GitHub Profile
@CamonZ
CamonZ / docker-compose-hackintosh.md
Created October 30, 2024 19:14 — forked from slykar/docker-compose-hackintosh.md
Docker and Docker Compose on AMD OSX Hackintosh via Docker Machine

Introduction

Docker.app will complain about incompatible processor, so we will use Docker Machine.

Instalation

Download Docker for Mac (Docker.app). It contains some binaries that are necessary.

brew install virtualbox docker-machine
@CamonZ
CamonZ / telegram-mtproxy.md
Created March 23, 2024 23:57 — forked from rameerez/telegram-mtproxy.md
Up-to-date tutorial on how to set a Telegram MTProxy on an Ubuntu 22.04 sever using AWS Lightsail

How to set up a Telegram Proxy

This uses the native built-in proxy feature in the Telegram app.

The problem is the README in the official TelegramMessenger/MTProxy repo is outdated and fails at multiple points if you try following the steps described. Here's an updated version as of March 2024.

Instructions

  1. Launch a clean Ubuntu 22.04 instance. I'm using AWS Lightsail. ssh into the machine:
@CamonZ
CamonZ / broker.drl
Created April 26, 2018 17:56 — forked from johndemic/broker.drl
Mule Drools CEP Example
package org.drools.examples.broker
import org.mule.MessageExchangePattern;
import org.mule.example.cep.Company
import org.mule.example.cep.StockTick
global org.mule.module.bpm.MessageService mule;
# default dialect for the semantic code will be MVEL
dialect "mvel"
@CamonZ
CamonZ / dust.py
Created January 22, 2018 03:25 — forked from anfederico/dust.py
Get rid of dust on your Binance account
# pip install python-binance
from binance.client import Client
client = Client(api_key, api_secret)
DUST = 0.001 # BTC
account = client.get_account()
prices = client.get_all_tickers()
@CamonZ
CamonZ / rename-component.md
Created October 6, 2016 18:07 — forked from paridin/rename-component.md
Ember rename component, shell helper

Rename a component file.

I made a mistake to naming some components, I don't want to erase it and create again, the problem is, I need to rename the files by hand, it's a boring task, and maybe in the future I will get the same issue, to make me the life easier I developed the following snippet, you should use it if you have the same problem.

The snippet

#!/usr/bin/env bash
# purpose: rename files, in same path
@CamonZ
CamonZ / README.md
Last active August 29, 2015 14:11 — forked from mbostock/.block
$(document).ready(function() {
function fillCalendar(rota_days) {
/* fubar */
for ( i = 0; i < rota_days.length; i++) {
rota_day = rota_days[0];
console.log(rota_days);
/* doing stuffs with rota_day */
$('td.day-'+ rota_day.day +' hospital-' + rota_day.hospital)
}
}
class RotaDay < ActiveRecord::Base
attr_accessible :day, :hospital_id
belongs_to :hospital
end
@CamonZ
CamonZ / README.md
Created August 28, 2012 18:40 — forked from mbostock/.block
How-To: Update a Pie Chart (Part 2)

Test with hashes instead of raw data; also, less data on the second set

@CamonZ
CamonZ / osm2geo.js
Created August 20, 2012 03:44 — forked from tecoholic/osm2geo.js
OSM2GEO - A JS Converter to convert OSM to GeoJSON
/**************************************************************************
* OSM2GEO - OSM to GeoJSON converter
* OSM to GeoJSON converter takes in a .osm XML file as input and produces
* corresponding GeoJSON object.
*
* AUTHOR: P.Arunmozhi <aruntheguy@gmail.com>
* DATE : 26 / Nov / 2011
* LICENSE : WTFPL - Do What The Fuck You Want To Public License
* LICENSE URL: http://sam.zoy.org/wtfpl/
*