Skip to content

Instantly share code, notes, and snippets.

View Njuguna85's full-sized avatar
🎯
Focussed

Dennis Njuguna Njuguna85

🎯
Focussed
  • Nairobi, Kenya
  • 20:08 (UTC +03:00)
View GitHub Profile
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@pastleo
pastleo / asdf-erlang-openssl-not-found-arch.md
Last active December 24, 2023 12:09
asdf erlang openssl not found issue in archlinux

asdf erlang openssl not found issue in archlinux

using asdf to install erlang:

asdf install erlang 19.3

but I got:

@stalniy
stalniy / abilities.js
Created January 5, 2018 20:58
CASL Vue routes
import { AbilityBuilder, Ability } from 'casl'
// Alternatively this data can be retrieved from server
export default function defineAbilitiesFor(user) {
const { rules, can } = AbilityBuilder.extract()
can('read', 'User')
can('update', 'User', { id: user.id })
if (user.role === 'doctor') {