User Tools

Site Tools


infrastructure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
infrastructure [2015-12-02 14:39] – mrksinfrastructure [2023-03-14 15:55] (current) – mrks
Line 1: Line 1:
 ===== Infrastructure ===== ===== Infrastructure =====
  
-==== Windows Setup ==== 
  
-Show symbols instead of preview in ALT+TAB window choosing menu:+==== Safe Browsing ====
  
-  - Right-click task bar | Properties | Taskbar | Preview desktop with Aero Peek | [ ] Use Aero peek to preview desktop 
  
-Choose colour scheme:+  * HTTPS Everywhere 
 +  * uBlock Origin 
 +  * PrivacyBadger
  
-  - Right-click desktop | Personalize | Basic designs | Windows 7 Basic.+https://digitalcourage.de/digitale-selbstverteidigung/pc 
 + 
 + 
 + 
 +==== Linux Mint Setup ==== 
 + 
 + 
 +Change the font size: Preferences > Appearance > Fonts > DPI > [x] Own DPI value (modify value)
  
-Set environment variables without administrator privileges: 
  
-  * English: Start | Accounts | Change my environment variables 
-  * German: Start | Benutzerkonten | Eigene Umgebungsvariablen ändern 
-  * Registry: HKEY_CURRENT_USER\Environment 
  
 ==== Ubuntu Setup ==== ==== Ubuntu Setup ====
 +
  
 Get latest desktop version from the [[http://www.ubuntu.com/desktop|Ubuntu website]]. Get latest desktop version from the [[http://www.ubuntu.com/desktop|Ubuntu website]].
Line 26: Line 30:
 sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
 </code> </code>
 +
 +
  
 === Shortcuts === === Shortcuts ===
 +
  
 [[https://help.ubuntu.com/community/KeyboardShortcuts|Ubuntu general keyboard shortcuts]]. [[https://help.ubuntu.com/community/KeyboardShortcuts|Ubuntu general keyboard shortcuts]].
Line 44: Line 51:
   * Restore window size: Super+Down   * Restore window size: Super+Down
  
-=== Sublime Text installation ====+ 
 + 
 +=== Sublime Text ==== 
 + 
 + 
 + 
 +== Installation == 
  
 Download the latest version of [[https://www.sublimetext.com/|Sublime Text]]. Download the latest version of [[https://www.sublimetext.com/|Sublime Text]].
Line 81: Line 95:
 TargetEnvironment=Unity TargetEnvironment=Unity
 </code> </code>
 +
 +
 +
 +== Setup ==
 +
 +
 +Install [[https://packagecontrol.io/installation#st2|Package Control]], View | Show Console, execute:
 +
 +<code>
 +import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
 +</code>
 +
 +Install packages (CTRL+SHIFT+P, "Package Control: Install Package"):
 +
 +  * [[https://packagecontrol.io/packages/Alignment|Alignment]], [[http://www.granneman.com/webdev/editors/sublime-text/packages/how-to-install-and-use-sublime-alignment/|Tutorial]]
 +  * [[https://packagecontrol.io/packages/Diffy|Diffy]]
 +  * [[https://packagecontrol.io/packages/dired|dired]]: Displays a directory in a view, allowing easy file manipulation
 +  * [[https://packagecontrol.io/packages/FileDiffs|FileDiffs]]
 +  * [[https://github.com/kemayo/sublime-text-2-goto-documentation|GotoDocumentation]]
 +  * [[https://facelessuser.github.io/HexViewer/|HexViewer]]
 +  * [[https://github.com/dzhibas/SublimePrettyJson|Pretty JSON]]
 +  * [[https://packagecontrol.io/packages/Python%20PEP8%20Autoformat|Python PEP8 Autoformat]]
 +  * [[https://packagecontrol.io/packages/PyYapf%20Python%20Formatter|PyYapf Python Formatter]]
 +  * [[https://packagecontrol.io/packages/Restructured%20Text%20%28RST%29%20Snippets|Restructured Text (RST) Snippets]]
 +  * [[https://packagecontrol.io/packages/RestructuredText%20Improved|Restructured​Text Improved]]
 +  * [[https://github.com/Kronuz/SublimeCodeIntel|SublimeCodeIntel]]
 +  * [[https://github.com/SublimeLinter/SublimeLinter-for-ST2|SublimeLinter]]
 +  * [[https://packagecontrol.io/packages/SqlBeautifier|SqlBeautifier]]
 +  * [[https://packagecontrol.io/packages/Terminal|Terminal]]
 +  * [[https://packagecontrol.io/packages/TrailingSpaces|TrailingSpaces]]
 +  * [[https://github.com/jonathandelgado/SublimeTodoReview|TodoReview]]
 +  * [[https://github.com/spadgos/sublime-ToggleQuotes|ToggleQuotes]]
 +  * [[https://github.com/ehuss/Sublime-Wrap-Plus|Wrap Plus]]
 +  * ([[https://github.com/freewizard/SublimeFormatSQL|Format SQL]])
 +
 +[[https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/|Sublime Text 3 for Python Development]]
 +
  
 === Git installation === === Git installation ===
 +
  
 <code> <code>
 sudo apt-get install git-core git-gui git-doc sudo apt-get install git-core git-gui git-doc
 </code> </code>
 +
 +
  
 === Issues with Ubuntu in VirtualBox ==== === Issues with Ubuntu in VirtualBox ====
 +
  
 Restoring the VM after it was saved freezes Ubuntu. Resizing the VM windows helps to resolve the issue: [[https://www.virtualbox.org/ticket/13487|VirtualBox Ticket #13487: Ubuntu Desktop 14.04.1 freezes when restarting from saved state (3D)]] Restoring the VM after it was saved freezes Ubuntu. Resizing the VM windows helps to resolve the issue: [[https://www.virtualbox.org/ticket/13487|VirtualBox Ticket #13487: Ubuntu Desktop 14.04.1 freezes when restarting from saved state (3D)]]
 +
 +
  
 ==== VirtualBox ==== ==== VirtualBox ====
 +
  
 Change the UUID of a hard drive: Change the UUID of a hard drive:
Line 100: Line 158:
 </code> </code>
  
 +
 +
 +==== Unix Settings ====
 +
 +
 +=== Shell Prompt Prefix ===
 +
 +
 +<code>
 +export PS1='$(whoami)@$(hostname):$(pwd)$ '
 +</code>
 +
 +This can be executed manually, added to ~/.profile or ~/.bashrc for using bash and leads to a command shell prompt like:
 +
 +<code>
 +myuser@myserver:/home/myuser$
 +</code>
 +
 +http://superuser.com/questions/601181/how-to-display-current-path-in-command-prompt-in-linuxs-sh-not-bash
 +
 +
 +
 +==== Windows Setup ====
 +
 +
 +Show symbols instead of preview in ALT+TAB window choosing menu:
 +
 +  - Right-click task bar | Properties | Taskbar | Preview desktop with Aero Peek | [ ] Use Aero peek to preview desktop
 +
 +Choose colour scheme:
 +
 +  - Right-click desktop | Personalize | Basic designs | Windows 7 Basic.
 +
 +Set environment variables without administrator privileges:
 +
 +  * English: Start | Accounts | Change my environment variables
 +  * German: Start | Benutzerkonten | Eigene Umgebungsvariablen ändern
 +  * Registry: HKEY_CURRENT_USER\Environment
 +
 +Taskbar | Properties:
 +
 +  * [x] Lock the taskbar
 +  * [ ] Auto-hide the taskbar
 +  * [x] Use small icons
 +  * Taskbar location on screen: Left
 +  * Taskbar buttons: Always combine, hide labels
 +
 +
 +
 +==== Wifi sharing on Windows ====
 +
 +
 +
 +share_wifi.bat
 +
 +<code>
 +:: Creates a Local Area Connection network adapter.
 +:: For the first time of the connection setup an internet connection must be
 +:: shares with the local area connection. In the network adapter configuration
 +:: select the network adapter which provides the internet connection, choose
 +:: Properties, Sharing, [x] Share with others, select Local Area Connection
 +:: from drop down. Confirm.
 +
 +:: Open network adapter configuration
 +start "" ncpa.cpl
 +:: Configure hosted network
 +netsh wlan set hostednetwork mode=allow ssid=wifi_name key=wifi_key
 +:: Start hosted network
 +netsh wlan start hostednetwork
 +pause
 +:: Stop hosted network
 +netsh wlan stop hostednetwork
 +</code>
 +
 +
 +==== LDAP ====
 +
 +=== General information ===
 +
 +  * DN: distinguished name
 +  * CN: common name
 +  * OU: organizational unit
 +  * DC: domain component
 +
 +=== Searches ===
 +
 +  * Find LDAP servers of a domain: <code>nslookup -type=srv _ldap._tcp.DOMAINNAME</code>
 +  * Search within base DN: <code>ldapsearch -h example.com -b ",dc=example,dc=com" "cn=MY_IDENTIFIER"</code>
 +  * Search the whole database: <code>ldapsearch -h example.com "cn=MY_IDENTIFIER"</code>
 +  * Search a host inside all Oracle TNS strings: <code>ldapsearch -h example.com "orclNetDescString=*HOST=database.tld*"</code>
 +
 +
 +=== References ===
 +
 +  - [[https://tools.ietf.org/search/rfc1558|RFC 1558: A String Representation of LDAP Search Filters]]
 +  - [[https://en.wikipedia.org/w/index.php?title=LDAP_Data_Interchange_Format&oldid=661799172|Wikipedia contributors. "LDAP Data Interchange Format." Wikipedia, The Free Encyclopedia, 11 May. 2015. Web. 21 Oct. 2015.]]
 +
 +
 +
 +==== Windows File System ====
 +
 +
 +  * Hard links
 +    * Create: ''> mklink /H linked-file.ext original-file.ext''
 +    * List: ''> fsutil hardlink list linked-file.ext''
 +  * Junctions
 +    * Create: ''> mklink /J linked-dir original-dir''
 +    * List: ''> dir'', lists ''<JUNCTION> linked-dir [original-dir]''
infrastructure.1449063582.txt.gz · Last modified: (external edit)