New pages

Jump to navigation Jump to search
New pages
Hide registered users | Hide bots | Show redirects
  • 05:10, 25 February 2024Csv-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 2024Bash-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 2024What are the chances (hist | edit) ‎[33 bytes]Admin (talk | contribs) (Created page with "Infographic: What are the chances")
  • 22:44, 13 February 2024Setting 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 2024Branches (hist | edit) ‎[3,552 bytes]Admin (talk | contribs) (Created page with " Git branch model:")
  • 01:42, 9 February 2024Bash 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 2024Setting 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 2024Creating 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 2024Git (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 2024Vnc (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 2024Systemd-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 2024Vim-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...")
  • 08:51, 4 February 2024MorseRunner (hist | edit) ‎[1,743 bytes]Admin (talk | contribs) (Created page with "An excellent morse-code CW Contest Simulator is a program created by Alex Shovkoplyas (VE3NEA) called MorseRunner. After you set your own callsign and the speed at which you want to send CW you're set to go. I normally set a duration for 15 minutes and then click on the green Run button to kick it off. The software is surprisingly good at realistically simulating various types of contacts; some slow, some fast, sometimes fading, with crackles and pops in the background...")