Skip to content

Instantly share code, notes, and snippets.

View papilip's full-sized avatar

Philippe Nénert papilip

  • Laguiole, Aveyron, France
View GitHub Profile
@papilip
papilip / osx-post-install.adoc
Created April 29, 2024 18:47
Actions pour terminer d’installer un mac

Fin d’installation d’un Mac

Dans une fenêtre du Terminal installer homebrew https://brew.sh/fr
Puis installer iTerm, changez le nom de l’ordinateur et fermer le Terminal :

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install iterm2
sudo scutil --set HostName <new host name>
sudo scutil --set LocalHostName <new host name>
sudo scutil --set ComputerName <new name>
#--------------------------------
# Dans une fenêtre de Terminal
#--------------------------------
# Changer le nom de l’ordinateur, ne fonctionne pas
#--------------------------------
#sudo scutil --set HotsName "mon-ordi"
#--------------------------------
# Installation de HomeBrew et d’iterm2 pour quitter au plus vite Terminal
#--------------------------------
#/usr/local/etc/nginx/servers/noalyss.conf
#
# sudo mkdir -p /opt/noalyss && cd /opt && sudo chown -R `id -un`:`id -gn` noalyss && cd
# cd /opt && git clone https://gitlab.com/noalyss/noalyss.git
server {
listen 8082;
listen 8282;
server_name localhost;
root /opt/noalyss/html;
@papilip
papilip / .gitignore
Last active November 16, 2021 19:45
# Ne pas oublier :
# git config --global core.excludesFile '~/.gitignore'
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
@papilip
papilip / phpmyadmin.conf
Created October 21, 2021 20:12
OSX fichier de configuration pour phpmyadmin
#/usr/local/etc/nginx/servers/phpmyadmin.conf
server {
listen 80;
server_name localhost;
root /usr/local/share;
index index.php;
#error_log /usr/local/var/log/nginx/phpmyadmin.error.log;
#access_log /usr/local/var/log/nginx/phpmyadmin.access.log main;
@papilip
papilip / osx_post_install.sh
Last active January 18, 2023 20:30
Pour terminer l’installation d’un Mac
#!/usr/bin/env bash
#
#--------------------------------
# Dans une fenêtre de Terminal
#--------------------------------
# mkdir -p ~/tmp && cd ~/tmp && curl https://gist.githubusercontent.com/papilip/b69ee2f630a32ec0f1f2093e145312e0/raw > osx_post_install.sh && chmod +x osx_post_install.sh && ./osx_post_install.sh
#--------------------------------
# Installation de HomeBrew
#!/bin/csh
set ruby_version='2.7.4'
# Mise à jour quotidienne de sécurité
echo '#' >> /etc/crontab
echo '# Added by PostInstall - Applying Security Patches' >> /etc/crontab
echo '@daily root freebsd-update cron' >> /etc/crontab
# Programmes indispenssable
@papilip
papilip / nginx.sh
Last active September 24, 2021 09:57
#!/bin/sh
# $FreeBSD: branches/2016Q2/www/nginx/files/nginx.in 340872 2014-01-24 00:14:07Z mat $
# PROVIDE: nginx
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable nginx:
# nginx_enable (bool): Set to "NO" by default.
@papilip
papilip / freebsd-post-install-ruby25.sh
Last active July 18, 2022 21:35
freebsd-post-install with ruby 2.5
#!/bin/csh
set ruby_version='2.5.9'
# Mise à jour quotidienne de sécurité
echo '#' >> /etc/crontab
echo '# Added by PostInstall - Applying Security Patches' >> /etc/crontab
echo '@daily root freebsd-update cron' >> /etc/crontab
# Programmes indispenssable
@papilip
papilip / ntp.conf
Created May 21, 2019 06:23
fr.pool.ntp.org
server 0.fr.pool.ntp.org
server 1.fr.pool.ntp.org
server 2.fr.pool.ntp.org
server 3.fr.pool.ntp.org