Skip to content

Instantly share code, notes, and snippets.

View CamonZ's full-sized avatar

Rafael Simon Garcia CamonZ

View GitHub Profile
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>custom.asdf.postgresql</string>
<key>ProgramArguments</key>
<array>
<string>~/.asdf/shims/postgres</string>
<string>-D</string>
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
;; (setq user-full-name "John Doe"
;; user-mail-address "[email protected]")
@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:

Keybase proof

I hereby claim:

  • I am camonz on github.
  • I am camonz (https://keybase.io/camonz) on keybase.
  • I have a public key ASBQvTQuMhsb-nHn_IT5mNa1Sf4HGehLejh3pqp3mhzk3Qo

To claim this, I am signing this object:

@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()
1. Download CSV with rasters you want from USGS.
2. Convert CSV to JSON with something like http://www.csvjson.com/
3. Run script with `ruby usgs_downloader.rb path_to_json_file`
4. Sit back.
5. ???
6. Receive slope analysis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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