Skip to content

Instantly share code, notes, and snippets.

View ermirbeqiraj's full-sized avatar

Ermir Beqiraj ermirbeqiraj

View GitHub Profile
@ermirbeqiraj
ermirbeqiraj / install-work-space.sh
Created January 7, 2023 10:12
Install amazon WorkSpaces in Ubuntu 22.04 LTS
#
# Issue: LinuxClient makes use of openssl 1
# https://clients.amazonworkspaces.com/linux-install
#
cd ~/Downloads
wget wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
# if the above doesn't works, go to http://security.ubuntu.com/ubuntu/pool/main/o/openssl/ and find another package
# that start like 'libssl1.1_1.1.1f-1ubuntu
//
// Controller placed in mvc client project
//
public class AccountController : Controller
{
[Authorize(Roles = "support")]
public IActionResult Impersonate(Guid id)
{
if (id == Guid.Empty)
return BadRequest();
public static class EnumHelper
{
public static string Description(this Enum value)
{
FieldInfo fi = value.GetType().GetField(value.ToString());
DescriptionAttribute[] attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
return attributes.Length > 0 ? attributes[0].Description : value.ToString();
}
public static List<EnumDrop<T>> EnumerateDrop<T>() where T : Enum
@ermirbeqiraj
ermirbeqiraj / clean-up-boot-partition-ubuntu.md
Created March 25, 2019 10:02 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r