view · edit · sidebar · attach · print · history

<< 2020 | Home | 2018 >>

2019

23.12.2019

  • c++ upgrade Debian
 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
 sudo apt-get install pkg-config

20.12.2019

17.12.2019

  • Flatpak
 flatpak run org.gnucash.GnuCash

3.12.2019

  • show PMU name
 cat /sys/devices/cpu/caps/pmu_name

13.11.2019

  • Show exact line number with sed.
 sed -n -e 5p -e 8p file
  • Dealing with Qt upgrades
 emerge -1pa `qlist -CI dev-qt/*`

11.11.2019

6.9.2019

  • Kill process based on ouput
 meteor | sed -e '/Exited with code/q'

3.9.2019

  • Rename Files with Umlaute
 rename 's/[^\x00-\x7F]//g' *

22.8.2019

  • Useful keychain commands
 security find-identity -vp codesigning
 security list-keychains

5.7.2019

  • Set path in Powershell
 setx PATH "$env:path;\the\directory\to\add" -m
  • Profile

How to Create a Windows PowerShell Profile

 New-item –type file –force $profile 
 notpad $profile

gives you

$console = $host.ui.rawui
$console.backgroundcolor = "black"
$console.foregroundcolor = "white"
$colors = $host.privatedata
$colors.verbosebackgroundcolor = "Magenta"
$colors.verboseforegroundcolor = "Green"
$colors.warningbackgroundcolor = "Green"
$colors.warningforegroundcolor = "white"
$colors.ErrorBackgroundColor = "DarkCyan"
$colors.ErrorForegroundColor = "Green"
set-location C:\Users\zdavatz\Documents\VisualStudio\amiko_csharp
clear-host
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
  Import-Module "$ChocolateyProfile"
}

18.6.2019

  • PriceCheck with Stock
 awk -F';' '{print $1,$2,$9,$13}' Artikelstamm_Vollstamm.csv | grep 4519851

10.4.2019

  • DeviceCheck
 https://developer.apple.com/documentation/devicecheck?language=objc
 https://codeburst.io/unique-identifier-for-the-ios-devices-590bb778290d
 https://medium.com/walkin/how-to-uniquely-identify-an-ios-device-8bbd292737f7
  • Text extraction
 https://stackoverflow.com/questions/6187250/pdf-text-extraction-with-coordinates

6.4.2019

 awk -F';' 'BEGIN {OFS = FS} {print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' OPEN_MEDIC_2018.CSV > fr_atc_unique.txt
 vim fr_atc_unique.txt
 :sort u

5.4.2019

  • Public Domain Drug APIs
 Public Domain Drug APIs

27.2.2019

  • Show all open ports
 sudo netstat -nlp | grep :*

26.2.2019

  • Limit vsftp to one IP
 vsftpd: from here.

6.2.2019

  • Merge two files if a pattern matches
 awk 'NR==FNR{a[$1]; next} {for (i in a) if (index($0, i)) print $1,$2,$3,$4,$5}' galenik_Vollstamm.txt galenic_codes.txt

2.2.2019

  • Merge to files if first column matches
 awk 'FNR==NR{a[$1]=$2;next} ($1 in a) {print $1,a[$1],$2,$3,$4,$5,$6,$7,$8,$9,$10}' atc wido.csv

1.2.2019

  • Useful sort command:
 du -d1 -x -h / | sort -h

16.1.2019

<< 2020 | Home | 2018 >>

view · edit · sidebar · attach · print · history
Page last modified on January 07, 2022, at 10:53 AM