$ sudo npm install -g hexo-cli
$ hexo -v
hexo-cli: 0.1.9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir temp && cd temp | |
| # for linux 'amd64' architecture install those packages: | |
| sudo apt-get install libx11-6:i386 libpam0g:i386 libstdc++5:i386 lib32z1 lib32ncurses5 lib32bz2-1.0 | |
| wget https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh | |
| sudo ./snx_install.sh | |
| cd .. && rm -rf temp/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################################ | |
| # OS X Install ISO Creater # | |
| # # | |
| # Author: shela # | |
| ################################ | |
| ####################################### | |
| # Declarations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # install qemu utils | |
| sudo apt install qemu-utils | |
| # install nbd client | |
| sudo apt install nbd-client |
RUN set -ex \
&& apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
&& export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
&& pecl install imagick-3.4.3 \
&& docker-php-ext-enable imagick \
&& apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
&& apk del .phpize-deps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: https://gist.github.com/d2f36b05bf959e5fc91497ea3f0dceb3 | |
| ####################################################### | |
| # Free Docker Desktop Alternative For Mac And Windows # | |
| # https://youtu.be/LGNEG-t96eE # | |
| ####################################################### | |
| # Referenced videos: | |
| # - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo | |
| # - K3d - How to run Kubernetes cluster locally using Rancher k3s: https://youtu.be/mCesuGk-Fks |
This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.
This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.
I Don't Need Port Forwarding and Don't Care About CGNAT
This was rewritten 2022-11-30
This article is for users that want all these features:
- To connect to home network from anywhere
- Can connect without any port forwarding; either by choice or internet provider can't or won't provide access
- No setup or configuration or installation on client machine
- No enrolment / registration required
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # BM 20240830 | |
| # Testé avec Ubuntu 22.04, PHP 8.3 (Ondrej Sury) & Oracle Instant Client 21.15 | |
| # Vérification que le script est exécuté en tant qu'administrateur (root) | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "Ce script doit être exécuté en tant qu'administrateur (root)." | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # ---------- Fonctions ---------- | |
| cleanup() { [[ -n "${SUDO_LOOP_PID:-}" ]] && kill "$SUDO_LOOP_PID"; } | |
| trap cleanup EXIT | |
| need_cmd() { command -v "$1" &>/dev/null || { echo -e "\e[31m❌ $1 introuvable\e[0m"; exit 1; }; } | |
| need_cmd sudo |