Skip to content

Instantly share code, notes, and snippets.

View ioagel's full-sized avatar

Ioannis Angelakopoulos ioagel

View GitHub Profile
@kalyankrishna1
kalyankrishna1 / Program.cs
Last active October 11, 2024 17:13
Code and steps for the session "An introduction to Microsoft Graph for developers - Advanced topics"
** This builds on the previous sample code provided at https://gist.github.com/kalyankrishna1/0a6ea6d00a09f7ae81c89960e1038d79
--------------------------
2. Add the following using statements on top of the class
using Microsoft.Extensions.Configuration;
using Microsoft.Graph;
using Microsoft.Identity.Client;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
@rubot
rubot / docker_ufw_setup.sh
Last active September 17, 2024 16:19
easy fix for DOCKER-USER and ufw
#!/usr/bin/env bash
set -eu
# Solves the problem with open ports with docker and ufw
# As Docker uses the nat table, the filter table FORWARD chain is used and does not touch ufw-input chains as expected.
# Even for ufw-forward chains it would not work, as DOCKER chains are inserted in front.
# This is a simple fix that worked for me.
# https://github.com/moby/moby/issues/4737#issuecomment-420264979
# Unfortunately this fix stops forwarding users origin ip to host mode configured service
@dreikanter
dreikanter / encrypt_openssl.md
Last active May 30, 2026 09:36 — forked from crazybyte/encrypt_openssl.txt
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@fernandezpablo85
fernandezpablo85 / git-maven-howto.md
Last active November 25, 2025 18:48
how to create your own maven repository on github

How to create a maven repository for your github project step by step

Clone your project in a separate folder

(note: replace ORGANIZATION and PROJECT)

git clone git clone git@github.com:ORGANIZATION/PROJECT.git my-repository

Cd into it

@niksumeiko
niksumeiko / git.migrate
Last active November 13, 2026 09:19
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.