Search results
From wikinotes
- Lsof (category Pages using deprecated source tags)lsof prints files that are currently open. lsof # list files belonging to active processes395 bytes (14 words) - 13:46, 20 September 2020
- Ntfs (category Pages using deprecated source tags)maximum characters Windows restricts paths to a max of 260 characters (with their bytestring path interface, unicode supports longer paths) Invalid filenames638 bytes (50 words) - 19:27, 12 February 2022
- Php composer (category Pages using deprecated source tags)dependency manager for php. brew install composer # [MacOS] not in macports cd project/ # dir with composer.json composer install # install deps322 bytes (21 words) - 13:35, 8 July 2020
- Host (category Pages using deprecated source tags)google.com # DNS query for google.com host google.com 8.8.8.8 # DNS query using 8.8.8.8 as nameserver271 bytes (35 words) - 01:09, 7 August 2021
- Coc-graphql (category Pages using deprecated source tags)" requirement Plug 'https://github.com/jparise/vim-graphql' :CocInstall coc-graphql Add a graphql-config to your project # ${project}/.graphqlrc # See:629 bytes (38 words) - 03:56, 11 February 2021
- Php exceptions (category Pages using deprecated source tags)throw new Exception("Division by zero"); try { // code that can throw exceptions } catch(Exception $e) { // code that runs when an exception is caught430 bytes (35 words) - 01:15, 9 July 2020
- Google chrome (category Pages using deprecated source tags)Settings > Keyboard: Shortcuts: App Shortcuts: - (All Applications) Close Tab: Ctrl+W # create - (Google Chrome) Select Next Tab: Ctrl+P # create - (Google586 bytes (28 words) - 00:04, 10 February 2024
- Python conditionals (category Pages using deprecated source tags)if var == 'no' : print "something" elif var == 'yes' : print "something else" else: print "something else entirely" You may find the all keyword useful:532 bytes (46 words) - 02:01, 14 February 2024
- Windows filesystem permissions (category Pages using deprecated source tags)TODO: I definitely have detailed notes on this somewhere.. TODO: Also record standardized locations with friendly permisisons (like for ssh keys) msg /server:wintermute436 bytes (49 words) - 22:59, 18 April 2021
- Ruby chruby (category Pages using deprecated source tags)rbenv. Consider using nix and direnv instead. cd yourproject/ echo "2.6.5" > .ruby-version # now when you enter directory, correct ruby is used automatically294 bytes (32 words) - 20:10, 14 August 2020
- Ruby rails: dates and times (category Pages using deprecated source tags)tzinfo = ActiveSupport::TimeZone.find_tzinfo("America/Toronto") timezone = ActiveSupport::TimeZone.new(tzinfo) Time.parse("1970-01-01T10:00:00Z").in_timezone(timezone)258 bytes (22 words) - 16:08, 7 February 2024
- Dtrace (category Pages using deprecated source tags)Watch/Count syscalls that a process makes. # dtrace is included in base system pkg install dtrace-toolkit # (optional) dtrace scripts kldload dtraceall927 bytes (44 words) - 19:48, 13 September 2020
- Freebsd vt (category Pages using deprecated source tags)Console Driver (tty) for FreeBSD, introduced as default in FreeBSD-12. # /boot/loader.conf vt.kern.vty = "sc" # enable syscons590 bytes (20 words) - 01:39, 8 February 2021
- Mycli (category Pages using deprecated source tags)mycli is an alternative mysql/mariadb/percona client built overtop of prompt_toolkit. pacaur -S mycli pip install mycli [main] multi_line = True key_bindings811 bytes (31 words) - 23:28, 17 December 2020
- Nmap (category Pages using deprecated source tags)nmap is a commandline port scanner. # don't use sudo. give your user permission to X nmap -sP '192.168.1.*' # scan all ips in addr range nmap 192.168.1637 bytes (59 words) - 01:01, 1 October 2020
- Bind-tools (category Pages using deprecated source tags)NOTE: see also dig # get BGP protocol ASN for facebook whois -h v4.whois.cymru.com " -v $(host facebook.com | grep "has address" | cut -d " " -f4)" | tail515 bytes (76 words) - 21:29, 11 October 2021
- Vim shell (category Pages using deprecated source tags)the commandline from vim's command mode. :w !sh " execute the current file using /bin/sh :w !less " pipe entire file to less :'<,'>!less " pipe visual-selection566 bytes (62 words) - 15:51, 10 February 2024
- Php fpm (category Pages using deprecated source tags)PHP fastcgi process manager. Can be configured to listen on a port or socket. Configure where php-fpm should listen # /usr/local/etc/php-fpm.d/www.conf766 bytes (82 words) - 18:33, 4 April 2021
- Coc-python (category Pages using deprecated source tags)NOTE: unmaintained, use coc-pyright instead python -m pip install jedi python -m pip install pylint :CocInstall coc-python " Interactive Choice :CocCommand927 bytes (41 words) - 00:43, 27 December 2021
- Ifuse (category Pages using deprecated source tags)interact with ios device filesystem on computer. sudo pacman -S libimobiledevice ifuse # unlock phone, plug into computer, and on iphone # 'trust' the817 bytes (74 words) - 19:52, 21 February 2021