Skip to content

Instantly share code, notes, and snippets.

View boloutaredoubeni's full-sized avatar

Tare boloutaredoubeni

View GitHub Profile
@boloutaredoubeni
boloutaredoubeni / Synology-Diskstation-Git.md
Created April 25, 2021 22:59 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.

Set Up User and Folder

  • Create user gituser via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.
  • Install Git Server package via Diskstation
@boloutaredoubeni
boloutaredoubeni / 0.Setup
Created August 28, 2018 01:28 — forked from jaredmichaelwilliams/0.Setup
Setting up a Yubikey for use with SSH
Preparation
Purchase YubiKey NEO
Install X Code and Command Line Tools, if installing anything from source.
X Code can be installed from the App Store.
Command Line Tools are installed from X Code: X Code -> Preferences -> Downloads -> Components -> Command Line Tools.
Install YubiKey reader library libyubikey (aka yubico-c)
Using homebrew:
brew install libyubikey
brew install ykpers

Keybase proof

I hereby claim:

  • I am boloutaredoubeni on github.
  • I am magnumkarter (https://keybase.io/magnumkarter) on keybase.
  • I have a public key ASDSo4-AkUcL7rj0Qm7N9OwF4SXRYESlBNZmkUgbTp6GLAo

To claim this, I am signing this object:

public class MyClass {
private int myVar;
public MyClass(int myVar) {
this.myVar = myVar;
}
public int myMethod() {
return myVar;
}
@boloutaredoubeni
boloutaredoubeni / MyCustomArrayAdapter.java
Last active January 29, 2016 16:37
Custom Adapter Example
import ...;
public class MyCustomArrayAdapter extends ArrayAdapter<T> {
final ArrayList<T> mArrayList;
public MyCustomAdapter(Context context, ArrayList<T> list) {
super(context, -1);
mArrayList = list;
}
@boloutaredoubeni
boloutaredoubeni / Main.java
Created January 14, 2016 15:31
Guess a random number recursively
package com.boloutaredoubeni.guessinggame;
import java.util.Random;
import java.util.Scanner;
public class Main {
private static final int NUM_OF_GUESSES = 5;
public static void main(String[] args) {
System.out.println("Guess if the chosen number is odd or even");
@boloutaredoubeni
boloutaredoubeni / ArrayListTest.java
Last active January 3, 2016 21:57
Generic Array List with Varying Types
import java.util.List;
import java.util.ArrayList;
public class ArrayListTest {
public static void main(final String[] args) {
List<Object> objectList = new ArrayList<>();
objectList.add(new Object());
objectList.add(new Integer(1));
@boloutaredoubeni
boloutaredoubeni / instruct.c
Last active September 23, 2015 23:36
Instruction operands and the equivalents in C
int main() {
/*
* Immediate
*/
// mov eax,42
int eax = 42;
// imul ebx,11h
int ebx *= 0x11;
@boloutaredoubeni
boloutaredoubeni / instruct.c
Created September 23, 2015 23:26
Instruction operands and the equivalents in C
int main() {
/*
* Immediate
*/
// mov eax,42
int eax = 42;
// imul ebx,11h
int ebx *= 0x11;