Skip to content

Instantly share code, notes, and snippets.

View afidegnum's full-sized avatar

KOKOU AFIDEGNON afidegnum

  • FlashTHub
View GitHub Profile
generated Aug 04, 2023 12:42:06
system Debian GNU/Linux 11 (bullseye) Linux 5.15.90.1-microsoft-standard-WSL2
x86_64 x
emacs 28.2 ~/.emacs.d/
doom 3.0.0-pre PROFILE=_@0 HEAD -> master 90b1b221f 2023-07-26 23:31:38 +0200
~/.doom.d/
shell /bin/bash
features CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK
JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBXML2 M17N_FLT MODULES NATIVE_COMP
NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
@afidegnum
afidegnum / main.rs
Created October 12, 2021 10:59
values not fetched from routes
// pub mod comps;
// use comps::hello::*;
use sycamore::context::{use_context, ContextProvider, ContextProviderProps};
use sycamore::prelude::*;
use sycamore_router::{HistoryIntegration, Route, Router, RouterProps};
use wasm_bindgen_futures::*;
#[derive(Clone)]
struct InputTxt(Signal<String>);
@afidegnum
afidegnum / main.rs
Last active October 11, 2021 16:32
lifetime issue
// pub mod comps;
// use comps::hello::*;
use sycamore::prelude::*;
use sycamore_router::{HistoryIntegration, Route, Router, RouterProps};
use wasm_bindgen_futures::*;
#[derive(Route)]
enum Routes {
#[to("/")]
@afidegnum
afidegnum / ajenti-v-php7.3.sh
Created August 21, 2021 02:47 — forked from shmidtelson/ajenti-v-php7.3.sh
Ubuntu Nginx Web Server with Ajenti with PHP 7.3
#Insall Ajenti ubuntu 18.04
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
# install python imaging
apt upgrade
apt-get install python-pillow
cd ~
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_4.1.1-3build2_all.deb
@afidegnum
afidegnum / ajenti-v-php7.sh
Created August 21, 2021 02:47 — forked from kn9/ajenti-v-php7.sh
Ubuntu Nginx Web Server with Ajenti with PHP 7.0
#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti -y
service ajenti restart
# Uninstall Apache2
sudo apt-get autoremove && sudo apt-get remove apache2* -y
@afidegnum
afidegnum / archinstall.md
Last active January 3, 2021 13:11 — forked from lynx570/archinstall.md
Windows 10 and Arch Linux dual boot with UEFI

Arch Linux installation (Windows 10 dual boot)

Convert Partition from MBR to GPT

Before starting, make sure you have a backup, and make sure to have a linux live boot ready to rescue your system. It's easy to mess this up!

Use gdisk to convert the partition table to GPT.c
```
    gdisk /dev/sda
module Main exposing (..)
import Browser
import Browser.Navigation as Nav
import Dropdown
import Element exposing (Element, centerX, centerY, column, el, fill, fillPortion, focused, height, image, mouseOver, padding, paddingEach, paddingXY, px, rgb255, rgba255, row, spacing, spacingXY, text, width)
import Element.Background as Background
import Element.Border as Border
import Element.Font as Font
import Element.Input as Input
@afidegnum
afidegnum / destructuring.md
Created June 6, 2020 15:27 — forked from yang-wei/destructuring.md
Elm Destructuring (or Pattern Matching) cheatsheet

Should be work with 0.18

Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !

Tuple

myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
PostgreSQL Type PostgreSQL Size Description Range Diesel Type Rust Type
Nullable Types nullable Nullable``