New pages
Jump to navigation
Jump to search
- 02:38, 22 Haziran 2024 Archlinux (hist | edit) [1,136 bytes] Admin (talk | contribs) (Created page with "setup: <pre> arch-- partition disk -- fdisk /dev/sda mkfs.ext4 /dev/sda1 mkswap /dev/sda2 mount /dev/sda1 /mnt swapon /dev/sda2 -- install os -- pacstrap -K /mnt base linux linux-firmware -- update filesystem table -- genfstab -U /mnt >> /mnt/etc/fstab -- switch to new installation -- arch-chroot /mnt -- configure a few things -- /etc/hostname passwd pacman -S grub-bios grub-install /dev/sda grub-mkconfig -o /boot/grub/grub.cfg -- manually get ip address from dhcp...")
- 00:08, 5 Mayıs 2024 Vim-cheatsheet (hist | edit) [500 bytes] Admin (talk | contribs) (Created page with "===Markers=== <pre> :ma set current position for mark A `a jump to position of mark A :marks show list of marks </pre>")
- 05:10, 25 February 2024 Csv-iteration (hist | edit) [429 bytes] Admin (talk | contribs) (Created page with " <pre> #!/bin/sh # process a comma-separated list of values ITEMLIST="apples,pears" ITEMCOUNT=1 STATUS=0 while true do ARGCNT="$" ARGCNT=$ARGCNT$ITEMCOUNT ITEMNAME=`echo $ITEMLIST | awk -F \, "{print $ARGCNT}"` if test -z "$ITEMNAME" then ITEMCOUNT=$((ITEMCOUNT - 1)) break else # item name found, do something with it echo "Item $ITEMCOUNT = $ITEMNAME" ITEMCOUNT=$((ITEMCOUNT + 1)) fi done </pre>")
- 05:10, 25 February 2024 Bash-examples (hist | edit) [87 bytes] Admin (talk | contribs) (Created page with "Collection of somewhat useful scrips I found that do things in bash. csv-iteration")
- 07:07, 24 February 2024 What are the chances (hist | edit) [33 bytes] Admin (talk | contribs) (Created page with "Infographic: What are the chances")
- 22:44, 13 February 2024 Setting global variables (hist | edit) [420 bytes] Admin (talk | contribs) (Created page with " ===Global User Name=== Get the current global user name: <pre> git config --global user.name "Mona Lisa" </pre> Set the current global user name: <pre> git config --global user.name "Mona Lisa" </pre>")
- 01:45, 9 February 2024 Branches (hist | edit) [3,552 bytes] Admin (talk | contribs) (Created page with " Git branch model:")
- 01:42, 9 February 2024 Bash git-prompt (hist | edit) [373 bytes] Admin (talk | contribs) (Created page with " ---automatically change the prompt when you're in a git directory--- <pre> ---[~/.bashrc]--- # uncomment these 5 lines to automatically show a different PS1 prompt when you enter a git directory GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWCOLORHINTS=true PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "' source /usr/lib/git-core/git-sh-prompt ---[]--- </pre>")
- 01:36, 9 February 2024 Setting aliases (hist | edit) [669 bytes] Admin (talk | contribs) (Created page with " <pre> creating an alias will probably save you a lot of time typing in long commands to create an alias either create one from the commandline or edit ~/.gitconfig on the commandline: git config --global alias.hist 'log --graph --all --oneline' NOTE: omitting '--global' will only set this alias for this repository editing the config file: --- [alias] hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --all --oneline --date=short --- or...")
- 01:34, 9 February 2024 Creating a git repository from an existing project (hist | edit) [966 bytes] Admin (talk | contribs) (Created page with " ===creating a git repository from an existing project=== Assuming a project in ~/myproject containing all sorts of files and directories <pre> In the below example we use a local project called 'myproject' and upload it to the git server. - if the existing local 'myproject' isn't initialised with git yet, then do so now: $ git init $ git add . $ git commit -m "initial commit" - clone 'myproject' from your local project into a new local di...")
- 01:21, 9 February 2024 Git (hist | edit) [141 bytes] Admin (talk | contribs) (Created page with " ===creating a git repository from an existing project=== Assuming a project in ~/myproject containing all sorts of files and directories")
- 01:18, 9 February 2024 Vnc (hist | edit) [99 bytes] Admin (talk | contribs) (Created page with "enabling a VNC server for remote desktop access using x11vnc <pre> apt-get install x11vnc </pre>")
- 01:17, 9 February 2024 Systemd-tips (hist | edit) [452 bytes] Admin (talk | contribs) (Created page with " ==Enable /etc/rc.local=== <pre> --[example /etc.rc.local]-- #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. exit 0 --[end]-- systemctl daemon-reload systemctl start rc-local </pre>")
- 01:15, 9 February 2024 Vim-config (hist | edit) [576 bytes] Admin (talk | contribs) (Created page with " useful entries in ~/.vimrc <pre> " --- disable syntax highlighting syntax off " --- open file at last edit position autocmd BufReadPost * \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' \ | exe "normal! g`\"" \ | endif " --- disable bell and screen flickering on escape --- set visualbell set t_vb= " -- allow mouse copy and paste -- set mouse=r " --- set tabstops to 4 spaces and set shiftwidth (ident amount) as...")