readme
This commit is contained in:
@@ -1,36 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
##################################################################################################################
|
|
||||||
# Written to be used on 64 bits computers
|
|
||||||
# Author : Erik Dubois
|
|
||||||
# Website : http://www.erikdubois.be
|
|
||||||
##################################################################################################################
|
|
||||||
##################################################################################################################
|
|
||||||
#
|
|
||||||
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
|
|
||||||
#
|
|
||||||
##################################################################################################################
|
|
||||||
|
|
||||||
echo "This gets all the existing githubs at once"
|
|
||||||
echo "Fill the array with the original folders first"
|
|
||||||
|
|
||||||
# use ls -d */ > list to get the list of the created githubs and copy/paste in
|
|
||||||
|
|
||||||
directories=(
|
|
||||||
tms-calamares-config/
|
|
||||||
tms-grub-theme/
|
|
||||||
tms-arch-linux-calamares-installer/
|
|
||||||
tms-calamares/
|
|
||||||
)
|
|
||||||
|
|
||||||
count=0
|
|
||||||
|
|
||||||
for name in "${directories[@]}"; do
|
|
||||||
count=$[count+1]
|
|
||||||
tput setaf 1;echo "Github "$count;tput sgr0;
|
|
||||||
# if there is no folder then make one
|
|
||||||
git clone http://192.168.10.207:3000/zj/$name
|
|
||||||
echo "#################################################"
|
|
||||||
echo "################ "$(basename `pwd`)" done"
|
|
||||||
echo "#################################################"
|
|
||||||
done
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# Alci grub theme
|
|
||||||
|
|
||||||
|
|
||||||
# Websites
|
|
||||||
|
|
||||||
Information : https://arcolinux.info
|
|
||||||
|
|
||||||
Tutorials about ArcoLinux iso (Xfce, Openbox and i3) : https://arcolinux.com
|
|
||||||
|
|
||||||
Tutorials about ArcoLinuxD iso (any desktop) : https://arcolinuxd.com
|
|
||||||
|
|
||||||
Tutorials about ArcoLinuxB iso (any desktop) : https://arcolinuxb.com
|
|
||||||
|
|
||||||
Tutorials about Carli project (any desktop) : https://arcolinuxiso.com
|
|
||||||
|
|
||||||
Forum : https://arcolinuxforum.com
|
|
||||||
|
|
||||||
|
|
||||||
# Social Media
|
|
||||||
|
|
||||||
Facebook : https://www.facebook.com/arcolinuxd/
|
|
||||||
|
|
||||||
Facebook : https://www.facebook.com/groups/arcolinux/
|
|
||||||
|
|
||||||
Twitter : https://twitter.com/arcolinux
|
|
||||||
|
|
||||||
Instagram: https://www.instagram.com/arcolinux/
|
|
||||||
|
|
||||||
Linked in: https://www.linkedin.com/in/arcolinux
|
|
||||||
|
|
||||||
Youtube : https://www.youtube.com/erikdubois
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#set -e
|
|
||||||
##################################################################################################################
|
|
||||||
# Author : Erik Dubois
|
|
||||||
# Website : https://www.erikdubois.be
|
|
||||||
# Website : https://www.alci.online
|
|
||||||
# Website : https://www.ariser.eu
|
|
||||||
# Website : https://www.arcolinux.info
|
|
||||||
# Website : https://www.arcolinux.com
|
|
||||||
# Website : https://www.arcolinuxd.com
|
|
||||||
# Website : https://www.arcolinuxb.com
|
|
||||||
# Website : https://www.arcolinuxiso.com
|
|
||||||
# Website : https://www.arcolinuxforum.com
|
|
||||||
##################################################################################################################
|
|
||||||
#
|
|
||||||
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
|
|
||||||
#
|
|
||||||
##################################################################################################################
|
|
||||||
#tput setaf 0 = black
|
|
||||||
#tput setaf 1 = red
|
|
||||||
#tput setaf 2 = green
|
|
||||||
#tput setaf 3 = yellow
|
|
||||||
#tput setaf 4 = dark blue
|
|
||||||
#tput setaf 5 = purple
|
|
||||||
#tput setaf 6 = cyan
|
|
||||||
#tput setaf 7 = gray
|
|
||||||
#tput setaf 8 = light blue
|
|
||||||
##################################################################################################################
|
|
||||||
|
|
||||||
echo
|
|
||||||
tput setaf 3
|
|
||||||
echo "################################################################"
|
|
||||||
echo "################### Start"
|
|
||||||
echo "################################################################"
|
|
||||||
tput sgr0
|
|
||||||
echo
|
|
||||||
|
|
||||||
# Problem solving commands
|
|
||||||
|
|
||||||
# Read before using it.
|
|
||||||
# https://www.atlassian.com/git/tutorials/undoing-changes/git-reset
|
|
||||||
# git reset --hard orgin/master
|
|
||||||
# ONLY if you are very sure and no coworkers are on your github.
|
|
||||||
|
|
||||||
# Command that have helped in the past
|
|
||||||
# Force git to overwrite local files on pull - no merge
|
|
||||||
# git fetch all
|
|
||||||
# git push --set-upstream origin master
|
|
||||||
# git reset --hard orgin/master
|
|
||||||
|
|
||||||
|
|
||||||
#setting up git
|
|
||||||
#https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config
|
|
||||||
#https://medium.com/clarusway/how-to-use-git-github-without-asking-for-authentication-always-passwordless-usage-of-private-git-8c32489bc2e9
|
|
||||||
#https://blog.nillsf.com/index.php/2021/05/27/github-sso-using-password-protected-ssh-keys
|
|
||||||
|
|
||||||
project=$(basename `pwd`)
|
|
||||||
#githubdir=$(basename $(dirname "$PWD" | tr '[:upper:]' '[:lower:]'))
|
|
||||||
echo "-----------------------------------------------------------------------------"
|
|
||||||
echo "this is project https://github.com/erikdubois/"$project
|
|
||||||
echo "-----------------------------------------------------------------------------"
|
|
||||||
|
|
||||||
git config --global pull.rebase false
|
|
||||||
git config --global push.default simple
|
|
||||||
git config --global user.name "Erik Dubois"
|
|
||||||
git config --global user.email "erik.dubois@gmail.com"
|
|
||||||
sudo git config --system core.editor nano
|
|
||||||
#git config --global credential.helper cache
|
|
||||||
#git config --global credential.helper 'cache --timeout=32000'
|
|
||||||
|
|
||||||
git remote set-url origin git@github.com-edu:erikdubois/$project
|
|
||||||
|
|
||||||
echo
|
|
||||||
tput setaf 3
|
|
||||||
echo "################################################################"
|
|
||||||
echo "################### End"
|
|
||||||
echo "################################################################"
|
|
||||||
tput sgr0
|
|
||||||
echo
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#set -e
|
|
||||||
##################################################################################################################
|
|
||||||
# Author : Erik Dubois
|
|
||||||
# Website : https://www.erikdubois.be
|
|
||||||
# Website : https://www.alci.online
|
|
||||||
# Website : https://www.ariser.eu
|
|
||||||
# Website : https://www.arcolinux.info
|
|
||||||
# Website : https://www.arcolinux.com
|
|
||||||
# Website : https://www.arcolinuxd.com
|
|
||||||
# Website : https://www.arcolinuxb.com
|
|
||||||
# Website : https://www.arcolinuxiso.com
|
|
||||||
# Website : https://www.arcolinuxforum.com
|
|
||||||
##################################################################################################################
|
|
||||||
#
|
|
||||||
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
|
|
||||||
#
|
|
||||||
##################################################################################################################
|
|
||||||
#tput setaf 0 = black
|
|
||||||
#tput setaf 1 = red
|
|
||||||
#tput setaf 2 = green
|
|
||||||
#tput setaf 3 = yellow
|
|
||||||
#tput setaf 4 = dark blue
|
|
||||||
#tput setaf 5 = purple
|
|
||||||
#tput setaf 6 = cyan
|
|
||||||
#tput setaf 7 = gray
|
|
||||||
#tput setaf 8 = light blue
|
|
||||||
##################################################################################################################
|
|
||||||
|
|
||||||
# reset - commit your changes or stash them before you merge
|
|
||||||
# git reset --hard - personal alias - grh
|
|
||||||
|
|
||||||
# checking if I have the latest files from github
|
|
||||||
echo "Checking for newer files online first"
|
|
||||||
git pull
|
|
||||||
|
|
||||||
rm -rf usr/share/grub/themes/alci/*
|
|
||||||
cp -r boot/grub/themes/alci/* usr/share/grub/themes/alci
|
|
||||||
|
|
||||||
# Below command will backup everything inside the project folder
|
|
||||||
git add --all .
|
|
||||||
|
|
||||||
# Give a comment to the commit if you want
|
|
||||||
echo "####################################"
|
|
||||||
echo "Write your commit comment!"
|
|
||||||
echo "####################################"
|
|
||||||
|
|
||||||
read input
|
|
||||||
|
|
||||||
# Committing to the local repository with a message containing the time details and commit text
|
|
||||||
|
|
||||||
git commit -m "$input"
|
|
||||||
|
|
||||||
# Push the local files to github
|
|
||||||
|
|
||||||
if grep -q main .git/config; then
|
|
||||||
echo "Using main"
|
|
||||||
git push -u origin main
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep -q master .git/config; then
|
|
||||||
echo "Using master"
|
|
||||||
git push -u origin master
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "################################################################"
|
|
||||||
echo "################### Git Push Done ######################"
|
|
||||||
echo "################################################################"
|
|
||||||
Reference in New Issue
Block a user