Skip to content

Instantly share code, notes, and snippets.

View kdbcinco's full-sized avatar
🏠
(I wishi I was) working from home

Karl Dominick Cinco kdbcinco

🏠
(I wishi I was) working from home
  • Ilocos Sur, Philippines
View GitHub Profile
@kdbcinco
kdbcinco / github_bitbucket_multiple_ssh_keys.md
Created January 24, 2024 08:29 — forked from yinzara/github_bitbucket_multiple_ssh_keys.md
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@kdbcinco
kdbcinco / docker.md
Created June 15, 2022 01:48 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@kdbcinco
kdbcinco / 1.Widget.cs
Created October 6, 2016 02:05 — forked from Lobstrosity/1.Widget.cs
Mapping Parent-Child Relationships with Dapper
public class Widget
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
}
@kdbcinco
kdbcinco / AESGCM.cs
Created June 4, 2016 08:23 — forked from jbtule/AESGCM.cs
I have two code examples that I wrote for best practices encrypting a string in c#. They are both using authenticated encryption. http://stackoverflow.com/a/10366194/637783
/*
* This work (Modern Encryption of a String C#, by James Tuley),
* identified by James Tuley, is free of known copyright restrictions.
* https://gist.github.com/4336842
* http://creativecommons.org/publicdomain/mark/1.0/
*/
using System;
using System.IO;
using System.Text;
@kdbcinco
kdbcinco / InteractiveScrollView.java
Created January 26, 2016 06:33 — forked from marteinn/InteractiveScrollView.java
ScrollView with a OnBottomReachedListener for Android
package se.marteinn.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ScrollView;
/**
* Triggers a event when scrolling reaches bottom.
@kdbcinco
kdbcinco / BaseAdapter.java
Created January 22, 2016 07:29 — forked from mannodermaus/BaseAdapter.java
RecyclerView.ViewHolder and Adapter demonstration
public abstract class BaseAdapter<T, VH extends BaseViewHolder<T>> extends RecyclerView.Adapter<VH> {
private List<T> items;
// Missing: setItems(), addItem(), removeItem(), ...
@Override
public final void onBindViewHolder(VH vh, int position) {
T item = items.get(position);
vh.performBind(item, position);