Skip to content

Instantly share code, notes, and snippets.

Avatar
🏍️

Miguel Catalan Bañuls MiguelCatalan

🏍️
View GitHub Profile
@hectorcanto
hectorcanto / adr-template.md
Last active Apr 22, 2022
A template for Arquitecture Decision Records
View adr-template.md

ADR Template

Short Title

Short title of solved problem and solution [Describe the general problem and the chosen solution in free from in a few sentences. Leave specific details for the following sections]

@f0rkz
f0rkz / tf-proxmox.md
Created May 13, 2019
Using Terraform and Proxmox
View tf-proxmox.md

Purpose

A clear how-to with instruction to get proxmox virtual machines provisioned with Terraform.

Pre-requisites

You need go installed to compile the Telmate provider located here.

You additionally need terraform installed.

You need cloud-init installed on proxmox. This wiki page has a decent howto. Go ahead and also create a cloud-init image created.

@sgon00
sgon00 / main.dart
Last active Apr 30, 2022
Infinite List (Infinite Scrolling/Pagination) With Raw BLoC Pattern in Flutter
View main.dart
import 'dart:async';
import 'package:english_words/english_words.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@vinnymac
vinnymac / README.md
Last active Oct 13, 2020
Guide to Hackintosh (specifically for Z390i/9900K/Vega64 build)
View README.md
View UriUtil.java
public class UriUtil {
private final Context context;
private static final byte[] GIF89A_HEADER = {0x47, 0x49, 0x46, 0x38, 0x39, 0x61};
@Inject
public UriUtil(Context context) {
this.context = context;
}
public boolean isGif(Uri input) {
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active May 21, 2022
What I Wish I'd Known About Equity Before Joining A Unicorn
View what-i-wish-id-known-about-equity-before-joining-a-unicorn.md

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@jmathai
jmathai / Elodie-On-Synology.md
Last active Sep 30, 2021
Getting Elodie running on a Synology
View Elodie-On-Synology.md
View GlueItemsAdapter.java
public class GlueItemsAdapter extends RecyclerArrayAdapter<GlueItem, GlueItemsAdapter.Holder> {
public GlueItemsAdapter(LayoutInflater inflater) {
super(inflater);
}
@Override
protected Holder onCreateViewHolder(LayoutInflater inflater, ViewGroup parent, int viewType) {
return new Holder(inflater.inflate(android.R.layout.simple_list_item_1, parent, false));
@rocboronat
rocboronat / PopularBrowser.java
Last active Jul 21, 2016
Use the more popular browser in the user's phone to open a URL
View PopularBrowser.java
package com.fewlaps.quitnow;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import java.util.ArrayList;
import java.util.List;
@ffgiraldez
ffgiraldez / ToolbarActivity.java
Last active May 4, 2016
Disable toolbar scroll flag when content it's not enough to fill the screen
View ToolbarActivity.java
public class ToolbarActivity extends AppCompatActivity {
// Set the flags that fit your needs
private static final int ENABLED_SCROLL_BEHAVIOR = AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS | AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL;
private static final int DISABLED_SCROLL_BEHAVIOR = 0;
private static final int SCROLL_DOWN = 1;
//Injected via ButterKnife (http://jakewharton.github.io/butterknife)
@InjectView(R.id.toolbar)
Toolbar toolbar;
@InjectView(R.id.recyclerview)