Skip to content

Instantly share code, notes, and snippets.

View Depicus's full-sized avatar
🏠
Working from home

Brian Slack Depicus

🏠
Working from home
View GitHub Profile
@zoilomora
zoilomora / README.md
Last active March 22, 2024 09:22
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall

@cybersamx
cybersamx / ssh-key-generation.md
Last active July 3, 2023 17:38
Generate a new SSH key pair

Mac and Linux

  • Open Terminal

  • Check if you already have a SSH keypair generated. Do the following:

    $ ls -la ~/.ssh/id_rsa*
    

If the files exist, you already have SSH installed. IMPORTANT: But if you wish to regenerate the SSH key pair, at least back up your old SSH keys.

@chetangani
chetangani / RecyclerItemClickListener.java
Created July 10, 2016 05:50
Recycler View implementing OnItemTouchListener
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener {
private OnItemClickListener mListener;
public interface OnItemClickListener {
@joshluongo
joshluongo / Commands.xml
Last active October 18, 2020 18:24
Sony BRAVIA KDL-55EX720 Remote Commands
<?xml version="1.0"?>
<remoteCommandList>
<command name="Confirm" type="ircc" value="AAAAAQAAAAEAAABlAw=="/>
<command name="Up" type="ircc" value="AAAAAQAAAAEAAAB0Aw=="/>
<command name="Down" type="ircc" value="AAAAAQAAAAEAAAB1Aw=="/>
<command name="Right" type="ircc" value="AAAAAQAAAAEAAAAzAw=="/>
<command name="Left" type="ircc" value="AAAAAQAAAAEAAAA0Aw=="/>
<command name="Home" type="ircc" value="AAAAAQAAAAEAAABgAw=="/>
<command name="Options" type="ircc" value="AAAAAgAAAJcAAAA2Aw=="/>
<command name="Return" type="ircc" value="AAAAAgAAAJcAAAAjAw=="/>