diff --git a/EPG.sh b/EPG.sh deleted file mode 120000 index 239cdf1..0000000 --- a/EPG.sh +++ /dev/null @@ -1 +0,0 @@ -/Users/bruno/.wg++/EPG.sh \ No newline at end of file diff --git a/Installed.md b/Installed.md deleted file mode 100644 index 2be0cb3..0000000 --- a/Installed.md +++ /dev/null @@ -1,436 +0,0 @@ -# Apps, package, scripts installed: - -## Homebrew - -### Tap: -cpbotha/marmaduke-chromium -homebrew/apache -homebrew/bundle -homebrew/cask -homebrew/cask-versions -homebrew/core -homebrew/dupes -homebrew/services -homebrew/versions -linux-noah/noah -tideways/profiler -vapor/tap - -### Packages: -apr -apr-util -argon2 -argyll-cms -aspell -atk -autoconf -bash-completion -boost -borg -brew-pip -brotli -c-ares -cabextract -cairo -chmlib -cmake -composer -ctls -curl -curl-openssl -dashing -doxygen -emscripten -faac -ffmpeg -fontconfig -freetds -freetype -fribidi -gdbm -gdk-pixbuf -gettext -ghostscript -git-ftp -glib -gmp -gnu-getopt -gnu-tar -go -gobject-introspection -graphite2 -gtk+ -handbrake -harfbuzz -hicolor-icon-theme -highlight -httpd -hugo -icdiff -icu4c -imap-uw -jansson -jemalloc -jpeg -jq -lame -libbpg -libev -libevent -libffi -libiconv -libidn -libidn2 -libmetalink -libogg -libpng -libpq -libressl -libsodium -libssh2 -libtiff -libtool -libunistring -libvorbis -libvpx -libxml2 -libyaml -libzip -little-cms2 -lua -makedepend -mariadb -mas -md5deep -md5sha1sum -mongodb -mono -mtr -multitail -nano -ncurses -nghttp2 -nginx -nmap -noahstrap -node -noti -nvm -oniguruma -openldap -openssl -openssl@1.1 -opus -p7zip -packer -pandoc -pango -pcre -pcre2 -perl -php -php-code-sniffer -php@7.2 -phpmyadmin -pixman -pkg-config -pv -py2cairo -pygobject -pygtk -python -python3 -python@2 -readline -rsync -rtmpdump -sdl2 -shellcheck -snappy -spdylay -sphinx-doc -sqlite -ssh-copy-id -tcl-tk -terminal-notifier -theora -tidy-html5 -tkdiff -trash -unixodbc -unrar -vapor -webp -wget -wine -winetricks -wp-cli -x264 -x265 -xvid -xz -yuicompressor -zlib - -### Casks: -0xed -airy -alfred -appcleaner -atom -bartender -basictex -batchmod -beamer -bettertouchtool -betterzip -bitwarden -cakebrew -cloudtv -coconutbattery -controlplane -cookie -cryptomator -dash -diffmerge -disk-drill -diskmaker-x -displaycal -docker -easyfind -etcher -ff-works -firefox-developer-edition -fork -github -google-earth-pro -graphicconverter -handbrake -harmony -houdahgeo -houdahgps -hubic -ifilex -iina -invisor-lite -iterm2 -itsycal -kdiff3 -kitematic -launchcontrol -lyn -marked -marmaduke-chromium -meta -molotov -mplayerx -mpv -musicbrainz-picard -name-mangler -nextcloud -nvalt -onyx -pacifist -platypus -plex-media-player -plexamp -poedit -progressive-downloader -purevpn -qlcolorcode -qlmarkdown -qlstephen -qownnotes -screens -stellarium -subler -sublime -sublime-text -superduper -suspicious-package -syncmate -timemachineeditor -tower2 -transmission -transmit -tripmode -typora -vagrant -visual-studio-code -vivaldi -vlc -vnc-viewer -waltr -wordpresscom -xact -xld -xnconvert -xnviewmp -xquartz -yate - -## mas (Mac App Store) - -Mastock (403176537) -SubEthaEdit (728530824) -App Cleaner (1013897218) -JSON Validator (457563999) -Speedtest (1153157709) -ChmPages (1164062917) -Startup Disk Full Fixer (1346655838) -1Blocker (1107421413) -iScheduleTimeMachine (798826767) -Reeder (880001334) -MCG (799178412) -ShutterCount (720123827) -Colibri (1178295426) -CleanMyDrive 2 (523620159) -iMovie (408981434) -MarkNotes (1059403637) -Router (1229416813) -Icon Slate (439697913) -EOBD-Facile (976630793) -Monosnap (540348655) -Audio Converter Lite (703369642) -EtreCheck (1423715984) -SSH Config Editor (1109319285) -RulerSwift (1102341786) -Notebook (1173152781) -SoundConverter (413890028) -HTTP Client (418138339) -Microsoft Remote Desktop (1295203466) -iHex (909566003) -LaunchD Task Scheduler (620249105) -gps4cam (704400176) -GhosteryLite (1436953057) -Flick for Netflix (1120947587) -Xcode (497799835) -PhotoSync (418818452) -Photo Transfer App (509182449) -ExifPurge (784466108) -iMazing HEIC Converter (1292198261) -GarageBand (682658836) -SecSign ID (1038409057) -MDB Tool - For Microsoft Access (513995545) -2STP Companion (1055307502) -Pages (409201541) -Together 3 (641534696) -Simplenote (692867256) -Numbers (409203825) -Network Speed Tester (1217419133) -The Unarchiver (425424353) -Stock + (527270840) -Compressify (414830806) -Keynote (409183694) -iCHM (1243909868) -GPX Editor (924782627) - -## PECL extensions - -apcu -xdebug -yaml - -## Python packages - -appnope -autopep8 -backcall -bleach -Click -decorator -defusedxml -Django -entrypoints -fontawesome-markdown -html5lib -ipykernel -ipython -ipython-genutils -ipywidgets -jedi -Jinja2 -jsonschema -jupyter -jupyter-client -jupyter-console -jupyter-core -livereload -Markdown -MarkupSafe -material -mistune -mkdocs -mkdocs-bootstrap -mkdocs-material -mod-wsgi -nbconvert -nbformat -notebook -pandocfilters -parso -pep8 -pexpect -pickleshare -pip -pipdeptree -prometheus-client -prompt-toolkit -ptyprocess -pycodestyle -Pygments -pymdown-extensions -python-dateutil -pytz -PyYAML -pyzmq -qtconsole -Send2Trash -setuptools -simplegeneric -six -terminado -terminaltables -testpath -tornado -traitlets -wcwidth -webencodings -wheel -widgetsnbextension -yolk -yolk3k - -## Atom packages - -Solis -dash -french-menu -git-plus - -## Node.js packages - -### Global: -ajv-keywords -cli -dploy -ghost -ghost-cli -npm -npm-install-peers -yarn -### Local: -lg-autoplay -─ jquery -lg-fullscreen -lg-hash -lg-pager -lg-share -lg-thumbnail -lg-video -lg-zoom -lightgallery -livephotoskit -picturefill -uninstall-all-modules - diff --git a/apache_tools.sh b/apache_tools.sh deleted file mode 100755 index a059dff..0000000 --- a/apache_tools.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash - -version=7.2 -echo -e "\033[1mApache Tools: \033[0m" - -editeur=/usr/local/bin/bbedit - -v_apa=$(httpd -V | grep 'SERVER_CONFIG_FILE') -conf_apa=$(echo "$v_apa" | awk -F "\"" '{print $2}') -log_apa=$(grep -e '^ErrorLog' "$conf_apa" | awk -F "\"" '{print $2}') -access_apa=$(grep -e 'CustomLog' "$conf_apa" | grep -v "#" | awk -F "\"" '{print $2}') -vhost=$(grep -e 'httpd-vhosts.conf' "$conf_apa" | awk '{print $2}') -ssl=$(grep -e 'httpd-ssl.conf' "$conf_apa" | awk '{print $2}') - -v_php=$(php --info | grep -E 'usr.*ini') -conf_php=$(echo "$v_php" | grep 'Loaded Configuration File' | awk '{print $NF}') - -v_mysql=$(mysql --help | grep -A1 'Default options') - -options=( - "Apache (r)estart" - "(E)dit httpd.conf" - "Edit httpd-v(h)osts.conf" - "Edit httpd-(s)sl.conf" - "error_log Apache" - "(a)ccess_log Apache" - "Edit (P)HP.ini" - "Apache/PHP/MySQL (V)ersion" - "Apache/PHP/MySQL (C)onfiguration files" - "Switch to PHP version" - "(Q)uit" -) - - -select option in "${options[@]}"; do - case "$REPLY" in - 1|r|R) sudo apachectl -k restart ;; - 2|e|E) "$editeur" "$conf_apa" ;; # httpd.conf - 3|h|H) "$editeur" "$vhost" ;; # httpd-vhost.conf - 4|s|S) "$editeur" "$ssl" ;; # httpd-ssl.conf - 5) tail -f "$log_apa" ;; - 6|a|A) tail -f "$access_apa" ;; - 7|p|P) "$editeur" "$conf_php" ;; # php.ini - 8|v|V) apachectl -v && echo ' ' && php -v && echo ' ' && mysql --version ;; - 9|c|C) echo -e "\033[4mApache:\033[0m " && echo $v_apa && echo ' ' && echo -e "\033[4mPHP:\033[0m " && echo $v_php && echo ' ' && echo -e "\033[4mMySQL:\033[0m " && echo $v_mysql ;; - 10) read -e -n 3 -p "Which PHP version? (7.2/7.3)" choice - if [[ "$choice" == "7.2" ]] || [[ "$choice" == "7.3" ]]; then echo "$choice" | xargs -p -n 1 sphp ; fi ;; - 11|q|Q) break ;; - esac -done - -#echo "$i" | awk '{print $1}' | xargs -p -n 1 brew upgrade -#LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so -##LoadModule php7_module /usr/local/opt/php@7.3/lib/httpd/modules/libphp7.so diff --git a/backup-conf.sh b/backup-conf.sh deleted file mode 100755 index 49c4f06..0000000 --- a/backup-conf.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -if [ "$1" == "-h" ]; then - echo -e "\033[93mbackup-conf.sh\033[0m" - echo "Backup several files and folders:" - echo - echo " - httpd.conf" - echo " - httpd-vhosts.conf" - echo " - php.ini" - echo " - .bash_profile" - echo " - .gitconfig" - echo " - .wg++" - echo " - .nanorc, .nanosyntax" - echo " - .ssh" - echo " - .vnc" - echo " - .kymsu" - echo - echo "USAGE: backup-conf" - echo - echo " -h display this help" - echo - exit 0 -fi - -APACHE=$(httpd -v | grep "version" | awk '{print $3}' | awk -F/ '{print $2}') -PHP=$(php -v | grep "cli" | awk '{print $2}') - -cd /Users/bruno/Documents/config\ web\ \(homebrew\)/ - -if [ ! -d "apache $APACHE" ]; then mkdir "apache $APACHE"; fi -cp /usr/local/etc/httpd/httpd.conf /Users/bruno/Documents/config\ web\ \(homebrew\)/apache\ $APACHE/ -cp /usr/local/etc/httpd/extra/httpd-vhosts.conf /Users/bruno/Documents/config\ web\ \(homebrew\)/apache\ $APACHE/ - -if [ ! -d "php $PHP" ]; then mkdir "php $PHP"; fi -cp /usr/local/etc/php/7.2/php.ini /Users/bruno/Documents/config\ web\ \(homebrew\)/php\ $PHP/ - -cp /Users/bruno/.bash_profile /Users/bruno/Documents/Backups/Bruno/ -cp /Users/bruno/.gitconfig /Users/bruno/Documents/Backups/Bruno/ -cp /Users/bruno/.wg++/WebGrab++.config.xml /Users/bruno/Documents/Backups/Bruno/ -cp /Users/bruno/.nanorc /Users/bruno/Documents/Backups/Bruno/ -cp -R /Users/bruno/.nanosyntax /Users/bruno/Documents/Backups/Bruno/ -cp -R /Users/bruno/.ssh /Users/bruno/Documents/Backups/Bruno/ -cp -R /Users/bruno/.vnc /Users/bruno/Documents/Backups/Bruno/ -cp -R /Users/bruno/.kymsu /Users/bruno/Documents/Backups/Bruno/ -terminal-notifier -title 'Backups' -message 'Sauvegarde terminée !' -sound 'Glass' diff --git a/bash_tools.sh b/bash_tools.sh deleted file mode 100755 index dc3bc81..0000000 --- a/bash_tools.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -echo -e "\033[1mBash Tools: \033[0m" - -editeur=/usr/local/bin/bbedit - -# 1: ~/.bash_profile -# 2: ~/.bash_login -# 3: ~/.profile - -options=( - "(E)dit .bash_profile" - "(S)ource .bash_profile (reload)" - "(B)ackup .bash_profile" - "(R)estore .bash_profile" - "(Q)uit" -) - - -select option in "${options[@]}"; do - case "$REPLY" in - 1|e|E) "$editeur" ~/.bash_profile ;; - 2|s|S) source ~/.bash_profile ;; - 3|b|B) scp ~/.bash_profile funnymac@ftp.cluster011.ovh.net:www/backup ;; - 4|r|R) curl http://clicclac.info/backup/.bash_profile > ~/.bash_profile && reload ;; - 5|q|Q) break ;; - esac -done diff --git a/kymsu b/kymsu deleted file mode 120000 index bb643e8..0000000 --- a/kymsu +++ /dev/null @@ -1 +0,0 @@ -/Users/bruno/.kymsu/ \ No newline at end of file diff --git a/kymsu2.sh b/kymsu2.sh deleted file mode 100755 index 927ae28..0000000 --- a/kymsu2.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -if [[ "$1" == "-h" || "$1" == "--help" ]]; then - echo -e "\033[93m\033[1mkymsu2\033[0m" - echo "" - echo "Keep Your macOs Stuff Updated 2" - echo "a fork from kymsu https://github.com/welcoMattic/kymsu" - echo - echo "USAGE: kymsu2" - echo - echo "Commandes: " - echo " -h, --help display this help" - echo " --nodistract no distract mode (no user interaction)" - echo " --cleanup removing any older versions of installed formulae and clearing old downloads from the Homebrew download-cache" - echo " --npm_cleanup cleaning npm cache" - echo - exit 0 -fi - -# à renseigner avec le répertoire contenant tes script -SCRIPTS_DIR=/Users/bruno/.kymsu/plugins.d - -cd "$SCRIPTS_DIR" - -# On boucle sur tous les fichiers du répertoire… -for script in $(find . -name '[_0]*' -maxdepth 1 | sort); do - # si le fichier est exécutable… - if [ -x "$SCRIPTS_DIR/$script" ]; then - # on l’exécute ; le $@ permet de passer à chaque - # script les arguments passés à *ce* script - $SCRIPTS_DIR/$script $@ - fi -done \ No newline at end of file diff --git a/mkbuild.sh b/mkbuild.sh deleted file mode 100755 index 6deb3a1..0000000 --- a/mkbuild.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -if [ "$1" == "-h" ]; then - echo -e "\\033[93mmkbuild.sh\\033[0m" - echo "Build MkDocs project and send him on server" - echo - echo "USAGE: mkbuild" - echo - echo " -h display this help" - echo - exit 0 -fi - -project_dir=/Users/bruno/project -exe=/usr/local/bin/ - -user="bruno" -server="clicclac.synology.me" -destination="/volume1/web" -local_folder="central_docs" - -cd $project_dir || exit -$exe/mkdocs build --clean -scp -P42666 -pr ./$local_folder $user@$server:$destination -#rsync -avz --stats --progress /Users/bruno/project/central_docs/ $user@$server::$dest - -result=$? - -titre="MkDocs" -if [ $result -eq 0 ]; then - sound="Glass" - message="Envoi terminé sur $server !" -else - sound="Basso" - message="Echec lors de l'envoi sur $server : erreur $result" -fi - -if [[ "$OSTYPE" == "linux-gnu" ]] && [ -x "$(command -v zenity)" ]; then - zenity --title="$titre" --notification --text="$message" -elif [[ "$OSTYPE" == "darwin"* ]] && [ -x "$(command -v terminal-notifier)" ]; then - terminal-notifier -title "$titre" -message "$message" -sound $sound -fi