aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 16:33:36 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 16:33:36 +0200
commit1f7a8e437f2029e0a5a2ddb5006f8b706e618dc9 (patch)
treef750c840bf2e20b2cd1accb6e8e0019c307752a5
downloadjoe-scripts-1f7a8e437f2029e0a5a2ddb5006f8b706e618dc9.tar.gz
joe-scripts-1f7a8e437f2029e0a5a2ddb5006f8b706e618dc9.tar.bz2
joe-scripts-1f7a8e437f2029e0a5a2ddb5006f8b706e618dc9.tar.xz
joe-scripts-1f7a8e437f2029e0a5a2ddb5006f8b706e618dc9.tar.zst
joe-scripts-1f7a8e437f2029e0a5a2ddb5006f8b706e618dc9.zip
First commit
-rw-r--r--.gitignore156
-rwxr-xr-xgitjoe-newuser.pl35
-rwxr-xr-xupdate-site.sh5
3 files changed, 196 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b821bcb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,156 @@
+# Created by https://www.toptal.com/developers/gitignore/api/perl,linux,emacs,vim,zsh
+# Edit at https://www.toptal.com/developers/gitignore?templates=perl,linux,emacs,vim,zsh
+
+### Emacs ###
+# -*- mode: gitignore; -*-
+*~
+\#*\#
+/.emacs.desktop
+/.emacs.desktop.lock
+*.elc
+auto-save-list
+tramp
+.\#*
+
+# Org-mode
+.org-id-locations
+*_archive
+
+# flymake-mode
+*_flymake.*
+
+# eshell files
+/eshell/history
+/eshell/lastdir
+
+# elpa packages
+/elpa/
+
+# reftex files
+*.rel
+
+# AUCTeX auto folder
+/auto/
+
+# cask packages
+.cask/
+dist/
+
+# Flycheck
+flycheck_*.el
+
+# server auth directory
+/server/
+
+# projectiles files
+.projectile
+
+# directory configuration
+.dir-locals.el
+
+# network security
+/network-security.data
+
+
+### Linux ###
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+# .nfs files are created when an open file is removed but is still being accessed
+.nfs*
+
+### Perl ###
+!Build/
+.last_cover_stats
+/META.yml
+/META.json
+/MYMETA.*
+*.o
+*.pm.tdy
+*.bs
+
+# Devel::Cover
+cover_db/
+
+# Devel::NYTProf
+nytprof.out
+
+# Dizt::Zilla
+/.build/
+
+# Module::Build
+_build/
+Build
+Build.bat
+
+# Module::Install
+inc/
+
+# ExtUtils::MakeMaker
+/blib/
+/_eumm/
+/*.gz
+/Makefile
+/Makefile.old
+/MANIFEST.bak
+/pm_to_blib
+/*.zip
+
+### Vim ###
+# Swap
+[._]*.s[a-v][a-z]
+!*.svg # comment out if you don't need vector files
+[._]*.sw[a-p]
+[._]s[a-rt-v][a-z]
+[._]ss[a-gi-z]
+[._]sw[a-p]
+
+# Session
+Session.vim
+Sessionx.vim
+
+# Temporary
+.netrwhist
+# Auto-generated tag files
+tags
+# Persistent undo
+[._]*.un~
+
+### Zsh ###
+# Zsh compiled script + zrecompile backup
+*.zwc
+*.zwc.old
+
+# Zsh completion-optimization dumpfile
+*zcompdump*
+
+# Zsh zcalc history
+.zcalc_history
+
+# A popular plugin manager's files
+._zplugin
+.zplugin_lstupd
+
+# zdharma/zshelldoc tool's files
+zsdoc/data
+
+# robbyrussell/oh-my-zsh/plugins/per-directory-history plugin's files
+# (when set-up to store the history in the local directory)
+.directory_history
+
+# MichaelAquilina/zsh-autoswitch-virtualenv plugin's files
+# (for Zsh plugins using Python)
+.venv
+
+# Zunit tests' output
+/tests/_output/*
+!/tests/_output/.gitkeep
+
+# End of https://www.toptal.com/developers/gitignore/api/perl,linux,emacs,vim,zsh \ No newline at end of file
diff --git a/gitjoe-newuser.pl b/gitjoe-newuser.pl
new file mode 100755
index 0000000..d17c477
--- /dev/null
+++ b/gitjoe-newuser.pl
@@ -0,0 +1,35 @@
+#!/usr/local/bin/perl
+
+use strict;
+use warnings;
+use Term::ANSIColor;
+
+sub main {
+ my $argc = $#ARGV + 1;
+ if ($argc < 2) {
+ print colored("Failed!\n", 'bold red')
+ . "Missing argument, 2 needed "
+ . colored("[user - password]", 'bold')
+ . "\n";
+ exit 1;
+ }
+ my $usr = $ARGV[0];
+ system(
+ '/usr/local/bin/dash',
+ '-c',
+ "adduser << EOF
+". $usr . "
+
+
+
+
+
+git-shell
+
+EOF"
+ );
+}
+
+main();
+
+__END__
diff --git a/update-site.sh b/update-site.sh
new file mode 100755
index 0000000..8dea1db
--- /dev/null
+++ b/update-site.sh
@@ -0,0 +1,5 @@
+#!/usr/local/bin/dash
+
+cd /usr/local/www/jozan || exit 1
+git pull
+exit