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-08 11:27] – mrksinfrastructure [2023-03-14 15:55] (current) – mrks
Line 1: Line 1:
 ===== Infrastructure ===== ===== Infrastructure =====
 +
 +
 +==== Safe Browsing ====
 +
 +
 +  * HTTPS Everywhere
 +  * uBlock Origin
 +  * PrivacyBadger
 +
 +https://digitalcourage.de/digitale-selbstverteidigung/pc
 +
 +
 +
 +==== Linux Mint Setup ====
 +
 +
 +Change the font size: Preferences > Appearance > Fonts > DPI > [x] Own DPI value (modify value)
  
  
Line 36: Line 53:
  
  
-=== Sublime Text installation ====+=== Sublime Text ==== 
 + 
 + 
 + 
 +== Installation ==
  
  
Line 75: Line 96:
 </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]]
  
  
Line 108: Line 164:
  
 === Shell Prompt Prefix === === Shell Prompt Prefix ===
 +
  
 <code> <code>
Line 139: Line 196:
   * German: Start | Benutzerkonten | Eigene Umgebungsvariablen ändern   * German: Start | Benutzerkonten | Eigene Umgebungsvariablen ändern
   * Registry: HKEY_CURRENT_USER\Environment   * 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.1449570466.txt.gz · Last modified: (external edit)