Skip to content

Instantly share code, notes, and snippets.

View souhaiebtar's full-sized avatar
:octocat:
Focusing

souhaiebtar

:octocat:
Focusing
View GitHub Profile
@souhaiebtar
souhaiebtar / install_rust_in_windows_using_msys64.md
Last active March 29, 2024 16:18
[]install rust in windows using msys64 #rust #windows #compile
@souhaiebtar
souhaiebtar / nosnap.pref
Created March 3, 2024 15:18
[disable-snap-from-installing] disable snap from installing on debian #linux #ubuntu #snap
# create file /etc/apt/preferences.d/nosnap.pref
# idea from linux mint
# To prevent repository packages from triggering the installation of Snap,
# this file forbids snapd from being installed by APT.
# For more information: https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html
Package: snapd
Pin: release a=*
Pin-Priority: -10
@souhaiebtar
souhaiebtar / notes.txt
Created October 31, 2023 08:34
camera
camera, security
poe switchs
https://www.tunisianet.com.tn/accueil/63806-switch-de-bureau-tenda-s108-8-ports-10100-mbps.html
https://www.tunisianet.com.tn/switch-routeurs-point-d-acces/52343-switch-de-bureau-tp-link-5-ports-10100-mbps-avec-4-ports-poe.html
https://bestbuytunisie.tn/switch-poe-d-link-6-ports-des-f1006p-e/e/
@souhaiebtar
souhaiebtar / command.sh
Last active October 17, 2023 08:40
[wsl2 cannot run .exe] wsl2 cannot run .exe #wsl2 #wsl #linux #windows
sudo sh -c 'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'
sudo systemctl unmask systemd-binfmt.service
sudo systemctl restart systemd-binfmt
sudo systemctl mask systemd-binfmt.service
# source: https://github.com/microsoft/WSL/issues/8952
@souhaiebtar
souhaiebtar / run_vmware_kvm_alongside.md
Created July 30, 2023 10:47
[vmware kvm alongside] vmware kvm alongside #vmware #kvm #linux

VMware

to disable

sudo /etc/init.d/vmware stop

to enable

sudo /etc/init.d/vmware start

@souhaiebtar
souhaiebtar / architecture
Last active April 20, 2023 07:58
[docker php-fpm apache] docker php-fpm apache #docker #docker-compose #apache #php-fpm
|
|-httpd
|-httpdconf
|-pgt.apache.conf
|-public
|-index.php
|-.env
|-docker-compose.yml
@souhaiebtar
souhaiebtar / Dockerfile
Created April 20, 2023 07:36
[docker file php fpm] docker file php fpm #docker #php
FROM php:7.3.33-fpm-bullseye
RUN curl -fL http://ftp.de.debian.org/debian/pool/main/e/enchant/libenchant1c2a_1.6.0-11.1+b1_amd64.deb --output /tmp/libenchant1c2a_1.6.0-11.1+b1_amd64.deb && curl -fL http://ftp.de.debian.org/debian/pool/main/e/enchant/libenchant-dev_1.6.0-11.1+b1_amd64.deb --output /tmp/libenchant-dev_1.6.0-11.1+b1_amd64.deb \
&& apt-get update && apt-get install -y unixodbc-dev libpng-dev libgmp-dev libicu-dev libldap2-dev libpq-dev libpspell-dev \
libsnmp-dev libxml2-dev libtidy-dev libxslt1-dev libzip-dev libbz2-dev librecode-dev \
&& apt install -y -f /tmp/libenchant1c2a_1.6.0-11.1+b1_amd64.deb && apt install -y -f /tmp/libenchant-dev_1.6.0-11.1+b1_amd64.deb \
&& rm -f /tmp/libenchant1c2a_1.6.0-11.1+b1_amd64.deb /tmp/libenchant-dev_1.6.0-11.1+b1_amd64.deb \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \
&& docker-php-ext-install pdo_odbc \
@souhaiebtar
souhaiebtar / Dockerfile
Created March 9, 2023 10:38
[php fpm image WIP] php fpm image #fpm #php #docker
FROM php:7.3.33-fpm-bullseye
COPY libenchant1c2a_1.6.0-11.1+b1_amd64.deb libenchant-dev_1.6.0-11.1+b1_amd64.deb /tmp/
RUN apt-get update && apt-get install -y unixodbc-dev libpng-dev libgmp-dev libicu-dev libldap2-dev libpq-dev libpspell-dev \
libsnmp-dev libxml2-dev libtidy-dev libxslt1-dev libzip-dev libbz2-dev librecode-dev \
&& apt install -y -f /tmp/libenchant1c2a_1.6.0-11.1+b1_amd64.deb && apt install -y -f /tmp/libenchant-dev_1.6.0-11.1+b1_amd64.deb \
&& rm -f /tmp/libenchant1c2a_1.6.0-11.1+b1_amd64.deb /tmp/libenchant-dev_1.6.0-11.1+b1_amd64.deb \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \
@souhaiebtar
souhaiebtar / linux_distro.md
Last active April 8, 2023 00:25
[linux distro] linux distro #linux #distro

----distro---

BunsenLabs / Crunchbang++
mabox
sparkylinux
mxlinux
archcraft
linux lite 
bodhi