Search results

From wikinotes
  • Netstat (category Pages using deprecated source tags)
    netstat shows TCP ports and their TCP-state. netstat -an # display netwk connections (listening, connected, etc) netstat -4 -f inet -n -r # display routing
    263 bytes (25 words) - 16:39, 3 July 2020
  • Zsh antigen (category Pages using deprecated source tags)
    manager for zsh. pacaur -S antigen Plugins are declared within your ~/.zshrc. source /path/to/antigen.zsh antigen bundle zsh-users/zsh-autosuggestions antigen
    562 bytes (33 words) - 17:23, 8 November 2020
  • Ruby irb (category Pages using deprecated source tags)
    ruby-irb # ~/.irbrc IRB.conf[:USE_SINGLELINE] = true # use 'readline' instead of multiline support irb irb --readline # uses readline, but disables multiline
    672 bytes (40 words) - 22:02, 17 May 2023
  • Pftop (category Pages using deprecated source tags)
    tool like top, that monitors traffic through pf firewall. 1 # 2 # 3 # 4 # 5 # packets blocked for each rule f # filter (see below) filter syntax is very
    732 bytes (72 words) - 17:02, 1 July 2021
  • Python setup.cfg (category Pages using deprecated source tags)
    Consolidates some python project dotfiles. Mostly superceeded by python pyproject.toml. [tool:pytest] python_files = *.py testpaths = tests norecursedirs
    737 bytes (21 words) - 15:07, 13 February 2021
  • Readline (category Pages using deprecated source tags)
    Reads line from a terminal, executes them. Can be configured to use vi keybindings. set editing-mode vi set keymap vi # meta+(hjkl) jumps into normal mode
    869 bytes (90 words) - 23:14, 18 June 2020
  • FreeBSD ifconfig (category Pages using deprecated source tags)
    FreeBSD uses ifconfig to manage network interfaces. manipulate interfaces within shell. # create/destroy a network interface of type 'tun' ifconfig tun
    1 KB (66 words) - 03:36, 7 August 2021
  • Vim cli (category Pages using deprecated source tags)
    vim -p a b c # open in new tabs vim -o a b c # open in vert splits vim -O a b c # open in horiz splits vim --cmd "let foo=bar" --cmd "let bar=baz" # run
    824 bytes (92 words) - 18:38, 8 April 2023
  • Php anatomy (category Pages using deprecated source tags)
    <?php class Automobile { def drive() { } }
    80 bytes (5 words) - 00:47, 9 July 2020
  • Php comments (category Pages using deprecated source tags)
    /** Do something * * @param $name * @return string */ function get_hello_message($name) { // comment /* foo bar baz */ }
    180 bytes (15 words) - 01:21, 9 July 2020
  • Gsudo (category Pages using deprecated source tags)
    sudo for windows! choco install -y gsudo
    271 bytes (7 words) - 02:08, 4 January 2021
  • NvimPlugin: telescope (category Pages using deprecated source tags)
    Extendable search. Can be powered by fzf. :Telescope lsp_workspace_symbols query=Foo::Bar::Baz
    125 bytes (15 words) - 23:35, 23 February 2024
  • Iftop (category Pages using deprecated source tags)
    S # display source port D # display destination port n # show IP instead of host name P # pause ? # display additional commands TX: transmitted RX: received
    360 bytes (24 words) - 21:34, 1 June 2018
  • Gnu ps (category Pages using deprecated source tags)
    # show the environment for a PID at the time the process was started ps -xep ${PID}
    115 bytes (16 words) - 01:59, 1 September 2023
  • Php print (category Pages using deprecated source tags)
    echo "some text\n"; pring "some text\n"; $animals = array("cat", "dog", "monkey"); print_r($animals);
    132 bytes (16 words) - 12:31, 9 July 2020
  • Vim profiling (category Pages using deprecated source tags)
    :profile start profile.log :profile func * :profile file * " At this point do slow actions :profile pause :noautocmd qall!
    152 bytes (18 words) - 00:26, 10 February 2024
  • Linux ip (category Pages using deprecated source tags)
    The linux ip command is used to manage network interfaces on linux. ip addr # list network interfaces ip set wlp3s0 up # activate network interface
    203 bytes (24 words) - 20:02, 1 July 2020
  • Linux iw (category Pages using deprecated source tags)
    iw is used to manage wireless internet connections from linux. iw wlp3s0 info # print wireless connection info iw wlp3s0 scan # scan for access points
    198 bytes (24 words) - 21:45, 1 July 2020
  • Df (category Pages using deprecated source tags)
    df lists volume information, how much room is consumed, remaining, etc. df -h # print consumption, in human readable sizes
    206 bytes (19 words) - 13:49, 20 September 2020
  • File (category Pages using deprecated source tags)
    file gives you information about the type of file. sudo file -s -L /dev/sdc1
    199 bytes (15 words) - 11:49, 9 June 2020
  • Lsof (category Pages using deprecated source tags)
    lsof prints files that are currently open. lsof # list files belonging to active processes
    395 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 filenames
    638 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 deps
    322 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 nameserver
    271 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 caught
    430 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 - (Google
    586 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:wintermute
    436 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 automatically
    294 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 dtraceall
    927 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 syscons
    590 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_bindings
    811 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.1
    637 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)" | tail
    515 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-selection
    566 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.conf
    766 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 :CocCommand
    927 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' the
    817 bytes (74 words) - 19:52, 21 February 2021
  • Ruby syntaxtree (category Pages using deprecated source tags)
    a very fast ruby ast node-types all defined within node.rb stree match /some/file.rb # generate matcher code stree search 'VarRef' /some/file.rb # search
    734 bytes (49 words) - 00:25, 1 February 2024
  • Javascript debuggers (category Pages using deprecated source tags)
    commands to jump for next/step/continue like gdb. instead you have to use the UI, or use OS-specific hotkeys: super ' # next super ; # step super \ # continue
    737 bytes (64 words) - 20:42, 22 February 2024
  • Vimdiff (category Pages using deprecated source tags)
    ]c - advance to the next block with differences [c - reverse search for the previous block with differences do (diff obtain) - bring changes from the other
    847 bytes (104 words) - 21:12, 26 January 2021
  • Zfs zdb (category Pages using deprecated source tags)
    man zdb https://www.unix.com/man-page/FreeBSD/8/zdb/
    901 bytes (70 words) - 01:11, 18 November 2020
  • Korganizer (category Pages using deprecated source tags)
    -latest.exe It is very much a work in progress, at this stage you cannot use calendars at all. Settings > Configure Korganizer General > Calendars > Add
    1 KB (103 words) - 22:19, 8 February 2021
  • Bat (category Pages using deprecated source tags)
    Bat is a syntax highlighted cat. bat file.graphql bat \ -l go `# syntaxhighlight for lang` \ --file-name 'my-file.go' `# set file title in result` \ --theme
    1 KB (72 words) - 21:54, 6 May 2023
  • Ruby operators (category Pages using deprecated source tags)
    and or 1 == 1 1 != 0 1 <= 2 2 >= 1 'foo' =~ 'foobar' # 'foobar' contains 'foo' a ||= b # `a || a = b` (if a is not defined, a = b) obj_1 eql? obj_2 # if
    748 bytes (93 words) - 21:39, 17 April 2020
  • Ruby iruby (category Pages using deprecated source tags)
    ruby. NOTE: It does not appear that iruby supports vi editing mode. I would use ruby pry instead, it has 1st-tier support. sudo pacman -S libffi libtool ruby
    516 bytes (50 words) - 15:15, 10 April 2020
  • Ruby rubocop-ast (category Pages using deprecated source tags)
    nodes https://github.com/rubocop/rubocop-ast/blob/master/docs/modules/ROOT/pages/node_types.adoc Node Patterns (like AST selectors) https://docs.rubocop.
    938 bytes (58 words) - 00:22, 1 February 2024
  • Coreutils dd (category Pages using deprecated source tags)
    on FreeBSD, you'll need to create a virtual block device # for the image using: # mdconfig -a -t vnode -f /path/to/image.img -u 0 # link image to virtual
    687 bytes (96 words) - 19:26, 28 March 2021
  • Bottom (category Pages using deprecated source tags)
    Configurable/Cross-Platform commandline resource manager written in rust. Similar to gnu top. Has a vi mode. NOTE: neat, but graphs are CPU drains and
    903 bytes (55 words) - 13:56, 24 January 2021
  • Xchm (category Pages using deprecated source tags)
    xchm file.chm
    44 bytes (3 words) - 23:06, 8 October 2018
  • Kchmviewer (category Pages using deprecated source tags)
    kchmviewer file.chm
    50 bytes (3 words) - 23:06, 8 October 2018
  • Xarchiver (category Pages using deprecated source tags)
    xarchiver is a GUI program to manage various archive formats sudo pacman -S xarchiver
    117 bytes (14 words) - 14:54, 25 May 2019
  • Osascript (category Pages using deprecated source tags)
    Applescript osascript -e 'display notification "nice text" with title "nice title"'
    133 bytes (11 words) - 16:13, 8 August 2020
  • Wipe (category Pages using deprecated source tags)
    Deletes files within a filesystem. I haven't had the occasion to use it yet. wipe -r /path/to/wipe
    130 bytes (19 words) - 19:43, 3 August 2019
  • Cbsd install (category Pages using deprecated source tags)
    pkg install cbsd
    47 bytes (3 words) - 20:44, 7 June 2020
  • Latex comments (category Pages using deprecated source tags)
    % a comment
    43 bytes (2 words) - 15:13, 10 July 2021
  • Aria2 (category Pages using deprecated source tags)
    sudo pacman -S aria2 aria2c file.torrent # start a torrent download
    224 bytes (11 words) - 16:27, 11 July 2019
  • Elisp math (category Pages using deprecated source tags)
    (+ 3 4) ;; adds 3 and 4
    55 bytes (6 words) - 18:54, 11 January 2020
  • Elisp comments (category Pages using deprecated source tags)
    ;; comments begin with double-semicolons
    71 bytes (5 words) - 18:34, 11 January 2020
  • Nix conditionals (category Pages using deprecated source tags)
    if true then "true" else "false"
    62 bytes (6 words) - 01:00, 16 August 2020
  • Google docs (category Pages using deprecated source tags)
    Tools --> Preferences --> Automatically detect Markdown
    87 bytes (5 words) - 13:33, 6 April 2023
  • Icsharp (category Pages using deprecated source tags)
    NOTE: Did not work for me sudo pacman -S mono git clone https://github.com/zabirauf/icsharp cd icsharp xbuild
    202 bytes (20 words) - 21:06, 2 November 2019
  • Javascript comments (category Pages using deprecated source tags)
    /* Multiline * comment */ let foo = 1 // comment
    90 bytes (6 words) - 17:42, 23 May 2021
  • Ruby comments (category Pages using deprecated source tags)
    # line comment
    63 bytes (2 words) - 20:14, 5 December 2019
  • Notify-send (category Pages using deprecated source tags)
    Issue a notification from the commandline on a linux/bsd server. notify-send SUMMARY BODY
    121 bytes (15 words) - 16:09, 8 August 2020
  • Zip (category Pages using deprecated source tags)
    requests a password, encryption algorithm varies` verify encryption algorithm used 7z l -slt file.zip
    332 bytes (31 words) - 19:29, 13 August 2022
  • Ruby json (category Pages using deprecated source tags)
    require 'json' {"a" => "b"}.to_json #> '{"a": "b"}' JSON.parse('{"a": 1}') #> { "a" => 1 }
    124 bytes (14 words) - 20:18, 6 November 2020
  • Vbscript functions (category Pages using deprecated source tags)
    Sub mysub(argument1,argument2) some statements End Sub
    86 bytes (8 words) - 00:18, 8 December 2019
  • Powershell datetime (category Pages using deprecated source tags)
    Get-Date Get-TimeZone Set-TimeZone 'Eastern Standard Time'
    95 bytes (9 words) - 13:38, 9 August 2019
  • Qutebrowser install (category Pages using deprecated source tags)
    sudo pacman -S qutebrowser # archlinux choco install -y qutebrowser # windows brew cask install qutebrowser # macos
    153 bytes (15 words) - 17:12, 15 May 2021
  • Unrar (category Pages using deprecated source tags)
    Compress/Extract rar archives. # extract, preserving directory structure unrar x src.rar /path/out/
    182 bytes (14 words) - 03:18, 2 July 2022
  • Coreutils chown (category Pages using deprecated source tags)
    Change the user/group that owns a file. chown user:group file
    121 bytes (11 words) - 19:25, 28 March 2021
  • Pulseaudio install (category Pages using deprecated source tags)
    sudo pacman -S pulseaudio pulseaudio-alsa sudo pacman -S pavucontrol-qt
    102 bytes (11 words) - 00:33, 26 March 2021
  • Java logging (category Pages using deprecated source tags)
    TODO: UNFINISHED! import java.util.logging.Logger; import java.util.logging.*;
    117 bytes (11 words) - 19:47, 2 November 2019
  • Nullfs (category Pages using deprecated source tags)
    Mount directories as other directories. mount -t nullfs /mnt/mywebsite /usr/local/www/mywebsite
    178 bytes (14 words) - 18:47, 1 May 2021
  • Powershell registry (category Pages using deprecated source tags)
    Set-ItemProperty -Path 'Registry::HKCU\Environment' -Name PATH -Value ($PATH.Path +";"+ $rezbin_PATH)
    138 bytes (13 words) - 12:22, 6 August 2019
  • Bsd jot (category Pages using deprecated source tags)
    jot -r 1 1 50 # 1 random num between 1 and 50
    78 bytes (12 words) - 19:48, 28 March 2021
  • Wireguard usage (category Pages using deprecated source tags)
    wg # print configured connections wg show # print configured connections wg-quick up wg0 # activate wg0
    158 bytes (15 words) - 03:14, 4 July 2020
  • Viml comments (category Pages using deprecated source tags)
    Lines matching '\s*"' are comments. " a comment " another comment
    113 bytes (9 words) - 19:09, 10 May 2019
  • Exfat (category Pages using deprecated source tags)
    FreeBSD # requires port: sysutils/fusefs-exfat # NOTE: I was unable to compile (2020/05) mount -t exfat /dev/ad1s1 /mnt
    273 bytes (20 words) - 21:02, 14 June 2020
  • Launchd (category Pages using deprecated source tags)
    commandline launchctl -h
    353 bytes (3 words) - 23:51, 15 September 2021
  • Gnu ls (category Pages using deprecated source tags)
    ls --group-directories-first ls -X # sort by file-extension ls -v # sort with natural sorting
    176 bytes (16 words) - 01:30, 25 May 2021
  • Elisp print (category Pages using deprecated source tags)
    (message "her name is %s, her age is %d" (list "vickie" 24) ) ;; print with substitution (print "abc") ;; normal print
    199 bytes (19 words) - 18:38, 11 January 2020
  • Yum (category Pages using deprecated source tags)
    CentOS uses a the rpm based package manager YUM. yum search <package> # search for a package yum install <package> # install package yum update # update
    305 bytes (37 words) - 14:04, 14 March 2021
  • Nix operators (category Pages using deprecated source tags)
    Full list https://nixos.org/nix/manual/#sec-language-operators 1 + 1 # addition 1 - 1 # subtraction 1 * 1 # multiplication 1 / 1 # division
    175 bytes (22 words) - 02:20, 16 August 2020
  • Rpcs3 (category Pages using deprecated source tags)
    RPCS3 is a playstation 3 emulator. pacaur -S cereal pacaur -S rpcs3-git
    158 bytes (13 words) - 16:51, 21 May 2018
  • Vbscript variables (category Pages using deprecated source tags)
    Dim var ' Normal variable within scope Public var ' Global variable Private var ' (? private to what)
    154 bytes (15 words) - 00:09, 8 December 2019
  • Powershell debugger (category Pages using deprecated source tags)
    Set-PSBreakpoint # set breakpoint on current line Set-PSBreakpoint -Line 15 # set breakpoint on line 15
    190 bytes (16 words) - 00:16, 26 November 2019
  • Anbox (category Pages using deprecated source tags)
    Anbox is an android emulator for linux. pacman -S anbox
    142 bytes (10 words) - 02:30, 8 February 2021
  • Ijava (category Pages using deprecated source tags)
    sudo pacman -S jupyter pacaur -S jre pacaur -S jdk11 git clone https://github.com/SpencerPark/IJava.git cd IJava/ sudo chmod u+w gradlew ./gradlew installKernel
    276 bytes (31 words) - 16:27, 8 June 2019
  • Cmake operators (category Pages using deprecated source tags)
    IF( <expr> AND <expr> ) IF( <expr> OR <expr> ) https://cmake.org/cmake/help/v3.11/command/if.html
    130 bytes (18 words) - 18:58, 18 May 2018
  • Powershell conditionals (category Pages using deprecated source tags)
    if ($PATH[0] -ne 'C:\Python27') { ... } # if statement if (!( $PATH.Contains('C:\Python27') )){ ... } # if not statement
    178 bytes (16 words) - 03:26, 19 September 2018
  • Csv (category Pages using deprecated source tags)
    CSVs are comma separated tables. headers are available, but not mandatory. entries may include commas if the row/column is written within double-quotes
    356 bytes (43 words) - 16:53, 20 January 2021
  • Dia (category Pages using deprecated source tags)
    A UML or general node-based diagram tool. sudo pacman -S dia
    106 bytes (12 words) - 00:06, 30 August 2018
  • Ruby yaml (category Pages using deprecated source tags)
    require 'yaml' YAML.load("a: 1", aliases: true) #> {"a"=>1} YAML.dump(['a', ['b']], indentation: 2)
    132 bytes (16 words) - 20:46, 19 September 2022
  • Python install (category Pages using deprecated source tags)
    pacman -S python # Archlinux pkg install python37 # FreeBSD brew install python # MacOS
    178 bytes (12 words) - 16:41, 10 July 2021
  • Ini (category Pages using deprecated source tags)
    values can be put in sections sections cannot be nested '=' or ':' may be used interchangeably [section a] key_1 = value1 key_2 = value2 [section b] key_3
    276 bytes (40 words) - 13:17, 5 April 2019
  • Python ctypes (category Pages using deprecated source tags)
    import ctypes #returns kernel ctypes.windll.kernel32
    110 bytes (7 words) - 20:45, 6 May 2018
  • Ruby parser (category Pages using deprecated source tags)
    An AST parser for ruby, in ruby https://github.com/whitequark/parser ruby-parse -e 'puts "hello"' (send nil :puts (str "hello"))
    178 bytes (22 words) - 14:20, 26 July 2023
  • Ruby filesystem (category Pages using deprecated source tags)
    Dir.mktmpdir("some_prefix_") do |dirpath| # ... end Tempfile.create("some_prefix_") do |fd| fd.write("hello") end
    208 bytes (17 words) - 19:06, 25 July 2023
  • Baikal backups (category Pages using deprecated source tags)
    # keep copy of dir tar -cvf baikal_data.tar /usr/local/www/baikal/Specific # extract into new install
    133 bytes (18 words) - 17:39, 14 August 2022
  • Batch datatypes (category Pages using deprecated source tags)
    REM note the abscence of quotes around string set YOURVAR=Your Value echo %YOURVAR%
    170 bytes (14 words) - 16:05, 10 July 2021
  • Batch operators (category Pages using deprecated source tags)
    == # equals LEQ # <= GEQ # >= LSS # < GTR # > EQU # == NEQ # != if ("%var%" LEQ "3") { echo %var% is less than 3 }
    182 bytes (17 words) - 16:12, 10 July 2021
  • Gnu vmstat (category Pages using deprecated source tags)
    vmstat shows info about processes, memory, paging, io, and cpu activity. vmstat 5 # run vmstat once every 5s
    141 bytes (18 words) - 14:49, 28 August 2020
  • Python sorting (category Pages using deprecated source tags)
    foo = sorted(['z', 'b', 'a']) # new copy sort(mylist) # mutates 'mylist' sorted(mylist, key=lambda x: x % 2) # sort by result of 'key'
    188 bytes (23 words) - 16:11, 6 February 2021
  • Macos screencapture (category Pages using deprecated source tags)
    cli screen capture tool, preinstalled with macos. screencapture -s -T 5 out.png # select region, wait 5s, then capture selection
    161 bytes (20 words) - 14:50, 19 March 2021
  • Redis-cli (category Pages using deprecated source tags)
    redis-cli -h domain.com # connect to redis on cli redis-cli -h domain.com FLUSHALL # execute 'FLUSHALL' and exit
    154 bytes (20 words) - 20:26, 17 April 2021
  • Python resource (category Pages using deprecated source tags)
    bulitin lib to examine/modify resources used by current program. Example import resource resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
    173 bytes (20 words) - 13:40, 22 August 2020
  • Elisp (category Pages using deprecated source tags)
    Alt-x, ielm ;; lisp interpreter
    477 bytes (5 words) - 18:53, 11 January 2020
  • Deluge (category Pages using deprecated source tags)
    sudo pacman -S deluge-gtk # deluge is daemon only Edit > Preferences: Network: Encryption: Inbound: Required Outbound: Required Level: Full Stream
    531 bytes (20 words) - 22:50, 27 December 2020
  • Python thread (category Pages using deprecated source tags)
    The oldest threading interface for python. import thread thread.start_new_thread(func, ('argA',), {'kwargA': 1}) lock = thread.allocate_lock() lock.acquire()
    210 bytes (24 words) - 17:24, 15 February 2019
  • Python redis (category Pages using deprecated source tags)
    redis client for python import redis conn = redis.Redis(host='foo.bar.com', port=, password='password') conn.set('foo', 'bar') conn.get('foo') # >>> 'bar'
    189 bytes (24 words) - 19:16, 17 April 2021
  • Python passlib (category Pages using deprecated source tags)
    from passlib.hash import sha512_crypt sha512_crypt.hash('password')
    218 bytes (10 words) - 12:18, 25 April 2019
  • Php operators (category Pages using deprecated source tags)
    $var === NULL // is instance $var !== NULL // is not instance $var = 1 // equal $var != 1 // not equal $var .= "bar" // append to string $var += 1; //
    203 bytes (25 words) - 23:56, 9 July 2020
  • Php classes (category Pages using deprecated source tags)
    php classes are very similar to java, right down to extends and implements. class Foo { /** string */ private name; public function __constructor() { $this->name
    343 bytes (31 words) - 00:10, 10 July 2020
  • Xquartz (category Pages using deprecated source tags)
    X11 server for MacOS. Download http://xquartz.macosforge.org/landing/ # Do not start xterm on xquartz start defaults write org.macosforge.xquartz.X11 \
    336 bytes (29 words) - 03:31, 25 November 2019
  • Python bcrypt (category Pages using deprecated source tags)
    import bcrypt hashed_pw = bcrypt.hashpw('password'.encode('utf-8'), bcrypt.gensalt()) if bcrypt.checkpw(password.encode('utf-8'), hashed_pw): print('password
    206 bytes (25 words) - 18:14, 20 March 2019
  • Shred (category Pages using deprecated source tags)
    Deletes files off a disk. Should do this before disposing of work HDDs, or before recycling dad's old work computers. Does not necessarily work for most
    307 bytes (44 words) - 00:18, 18 October 2020
  • Powershell filesystem (category Pages using deprecated source tags)
    if (Test-Path -Path "$src_dir") # check if path exists New-Item "$src_dir" -ItemType Directory # create directory Remove-Item -Recurse -Force some_dir
    237 bytes (27 words) - 12:23, 6 August 2019
  • Pkg add (category Pages using deprecated source tags)
    OpenBSD's package manager. #install sudo pkg_add -r <package> #delete pkg_info | grep <package> sudo pkg_delete <package-version.number> #search sudo pkg_search
    204 bytes (25 words) - 14:02, 14 March 2021
  • Batch conditionals (category Pages using deprecated source tags)
    IF [%VARIABLE%]==[] ( echo Variable is not set ) ELSE IF [%VARIABLE]==[blah]( echo some condition ) ELSE ( echo Value Found )
    182 bytes (18 words) - 00:19, 12 October 2018
  • Lightdm (category Pages using deprecated source tags)
    sudo pacman -S lightdm lightdm-gtk-greeter sudo systemctl enable lightdm
    533 bytes (11 words) - 14:10, 3 October 2019
  • Python-digitalocean install (category Pages using deprecated source tags)
    pacman -S python-digitalocean # Arch pip install python-digitalocean # Other
    111 bytes (10 words) - 15:42, 26 July 2020
  • Vmware (category Pages using deprecated source tags)
    desktop_end_user_computing/vmware_workstation_player/15_0 When prompted, use /etc/systemd for system service scripts directory
    426 bytes (45 words) - 16:50, 16 June 2019
  • Python crypt (category Pages using deprecated source tags)
    encrypts strings using the OS's crypt.c. only available on unix-like systems. import crypt # use strongest available crypt.crypt('password') # use specific algorithm
    281 bytes (35 words) - 00:54, 21 March 2021
  • Nload (category Pages using deprecated source tags)
    nload samples badwidth usage over a network interface. sudo pacman -S nload sudo nload # left/right switch network interface being monitored
    311 bytes (21 words) - 18:06, 23 December 2020
  • Ascii sector (category Pages using deprecated source tags)
    Wing-Commander privateer clone buitl out of ascii characters. It is amazing to me that this works as a game, it is even beautiful. Install: pacaur -S asciisec
    215 bytes (33 words) - 04:59, 8 March 2019
  • Python timeit (category Pages using deprecated source tags)
    Timer('t=a; a=b; b=t', 'a=1; b=2').timeit() #> 0.088729 time python2 lute.py ## use bash to simply time how long the script takes to run.
    202 bytes (34 words) - 20:04, 6 May 2018
  • FBReader (category Pages using deprecated source tags)
    fbreader is a cross platform ebook reader. Apparently, quite customizable. sudo pacman -S fbreader FBReader file.epub
    287 bytes (17 words) - 17:38, 18 January 2019
  • Showkey (category Pages using deprecated source tags)
    showkey displays keycodes produced by keypresses within a linux TTY. showkey --keycodes showkey --scancodes showkey -a # type ascii codes
    221 bytes (19 words) - 15:34, 27 September 2020
  • Postgresql usage (category Pages using deprecated source tags)
    sudo -u postgres pg_dumpall > backup.pgsql sudo -u postgres psql < backup.pgsql
    351 bytes (13 words) - 13:08, 15 September 2019
  • Texworks (category Pages using deprecated source tags)
    A side-by-side tex/preview editor. pacman -S texlive # archlinux texlive
    390 bytes (12 words) - 15:43, 10 July 2021
  • Python loops (category Pages using deprecated source tags)
    var = [1,2,3] for i in range(0, len(var)): print var[i] else: print "completed successfully without break statement" padding = 0 while padding < 6 : padding
    273 bytes (26 words) - 17:40, 6 May 2018
  • Npx (category Pages using deprecated source tags)
    Run npm installed executables. npx ${EXECUTABLE} ${ARGS[@]}
    485 bytes (7 words) - 18:39, 4 July 2021
  • Python resampy (category Pages using deprecated source tags)
    import numpy import resampy numpy.frombuffer(raw_wav_str, sr_orig=44100, sr_new=16000)
    325 bytes (15 words) - 21:27, 7 September 2019
  • Ruby datetimes (category Pages using deprecated source tags)
    TODO: sort out what is activesupport extensions Time.parse("Wed Oct 11 13:49:06 2023 -0700") Date.parse("Wed Oct 11 13:49:06 2023 -0700") time.in_time_zone
    213 bytes (34 words) - 14:51, 25 October 2023
  • Vscode plugin: python (category Pages using deprecated source tags)
    code --install-plugin ms-python.python sudo pip install rope
    146 bytes (10 words) - 19:25, 2 November 2019
  • Python flask-restful (category Pages using deprecated source tags)
    Like argparse for API routes curl 'http://api/user' -d 'name=will' -d 'age=30+'
    112 bytes (15 words) - 20:49, 23 July 2019
  • Mkinitcpio (category Pages using deprecated source tags)
    Configure linux boot ram disk. # regenerate mkinitcpio -p ${kernel-name} # ex: linux, linux-lts # temporarily load kernel module modprobe $KERNEL_MODULE
    427 bytes (21 words) - 13:54, 4 April 2021
  • Statsd (category Pages using deprecated source tags)
    statsd is a daemon for stats aggregation. # <metricname>:<value>|<type> echo "foo:1|c" | nc -u -w0 127.0.0.1 8125
    330 bytes (22 words) - 20:00, 23 April 2020
  • Powershell interpreter (category Pages using deprecated source tags)
    set-location # cd clear-host # clear copy-item # cp rename-item # remove-item # rm get-childitem write-output ... | select-string -pattern '.*' # grep
    277 bytes (22 words) - 12:27, 9 August 2019
  • Batch streams (category Pages using deprecated source tags)
    REM replace file echo "test" > C:/test.txt REM append file echo "test" >> C:/test.txt REM redirect stdout/stderr DIR SomeFile.txt 2>&1
    187 bytes (25 words) - 01:24, 12 October 2018
  • Nftables install (category Pages using deprecated source tags)
    NOTE: nftables is not a daemon. it applies settings and exits # nftables sudo pacman -S nftables sudo systemctl enable nftables # for logging sudo pacman
    250 bytes (30 words) - 14:53, 13 March 2022
  • Latex install (category Pages using deprecated source tags)
    pacman -S texlive-bin texlive-core # archlinux Since tex is plaintext, you can use anything you'd like to edit it.
    342 bytes (20 words) - 15:41, 10 July 2021
  • Ncpamixer (category Pages using deprecated source tags)
    tui puleaudio control (duplicates pavucontrol-qt in console) pacaur -S ncpamixer F1 - F5 # each tab (playback, recording, output devices, ...) h/l # volume
    339 bytes (24 words) - 23:20, 17 May 2021
  • Ffmpeg record window (category Pages using deprecated source tags)
    ffmpeg -f gdigrab -framerate 30 -i title="german.avi - VLC media player" -b:v 3M germ.flv
    121 bytes (16 words) - 13:28, 1 June 2018
  • Viml modes (category Pages using deprecated source tags)
    call feedkeys(":abc def")
    132 bytes (4 words) - 17:41, 10 May 2019
  • Vader.vim assertions (category Pages using deprecated source tags)
    Assert 1, 'message' " assert boolean is true AssertEqual 'expected', 'result' " assert equals AssertNotEqual 'a', 'b' AssertThrows
    178 bytes (16 words) - 18:28, 19 July 2019
  • Auditctl (category Pages using deprecated source tags)
    Audit the linux kernel behaviour. auditctl -A exit,always -S connect # install log auditctl -d exit,always -S connect # uninstall log
    252 bytes (21 words) - 14:14, 24 May 2020
  • Znc install (category Pages using deprecated source tags)
    sudo pkg install znc # FreeBSD sudo pacman -S znc # Archlinux The first time you run the service, you will be prompted to generate SSL certs. Do it. Connect
    232 bytes (33 words) - 19:56, 25 April 2020
  • Cmake unix (category Pages using deprecated source tags)
    cd $your_project/build cmake .. # generate makefile make # compile project sudo make install # install compiled project (as super-user, so have write permissions
    323 bytes (26 words) - 18:14, 18 May 2018
  • Cmake conditionals (category Pages using deprecated source tags)
    IF(<expr>) ELSEIF(<expr>) ELSE(<expr>) ENDIF(<expr>) # ======= # Example # ======= IF( 1 EQUALS 2 ) MESSAGE( "1 is equal to 2" ) ENDIF( 1 EQUALS 2 ) See
    235 bytes (27 words) - 18:57, 18 May 2018
  • Cmake expressions (category Pages using deprecated source tags)
    IF( 1 EQUALS 4 ) IF( 1 GREATER 4 ) If( 1 LESS 4 ) If( DEFINED ) If( IS_DIRECTORY ${path} ) If( IS_SYMLINK ${path} ) https://cmake.org/cmake/help/v3.11/command/if
    201 bytes (32 words) - 18:56, 18 May 2018
  • Mutt msmtp (category Pages using deprecated source tags)
    Documents using msmtp to send emails for mutt. set sendmail = "/usr/bin/msmtp -a <account>"
    194 bytes (15 words) - 22:31, 1 January 2021
  • Python setuptools: executables (category Pages using deprecated source tags)
    You can instruct setuptools to install executables on your PATH using entry_points. setup( ... entry_points = { 'console_scripts': ['funniest-joke=funniest
    256 bytes (23 words) - 17:47, 7 August 2020
  • Elisp conditionals (category Pages using deprecated source tags)
    ;; test same datatype/value (if (equal "abc" "abc") (print "equal!") ;; if true (print "not equal!" ) ;; if false ) ;; if list equal (equal '(3 4 5) '(3
    325 bytes (36 words) - 18:52, 11 January 2020
  • Ruby jekyll install (category Pages using deprecated source tags)
    Install ruby bundler and gem install jekyll. gem update gem install jekyll
    235 bytes (12 words) - 01:07, 28 February 2021
  • VimPlugin: Tabular (category Pages using deprecated source tags)
    :Tab /= "align all = signs :Tab /=\zs "align everything after the = sign :Tab /=/l0r1 "define spacing on left/right of matched char NOTE: author also describes
    332 bytes (38 words) - 19:39, 30 March 2019
  • Spidermonkey (category Pages using deprecated source tags)
    Firefox's javascript engine. Includes an interpreter. pacaur -S spidermonkey js file.js
    493 bytes (12 words) - 12:20, 6 June 2021
  • Cpp inheritance (category Pages using deprecated source tags)
    // header class MyClass: public MyParent { public: MyClass (int, int); void new_method (); }; // re-implement constructor // 1. duplicate interface //
    429 bytes (39 words) - 02:56, 17 November 2018
  • Inotify (category Pages using deprecated source tags)
    inotify is a program that monitors a directory for new or changed files. sudo pacman -S inotify-tools
    189 bytes (18 words) - 02:11, 14 May 2021
  • Archlinux troubleshooting (category Pages using deprecated source tags)
    sudo update-ca-trust
    105 bytes (4 words) - 22:25, 1 October 2020
  • Php namespaces (category Pages using deprecated source tags)
    php namespace Foo\Bar; class Baz { // ... } # /src/package/foo/bar/zab.php use Foo\Bar; new Bar\Baz()
    318 bytes (41 words) - 23:41, 9 July 2020
  • Batch registry (category Pages using deprecated source tags)
    REM query registry key reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v AllowRemoteRPC REM set/modify registry key reg add "HKLM\S
    321 bytes (35 words) - 16:23, 10 July 2021
  • Samba install (category Pages using deprecated source tags)
    sudo pacman -S samba sudo systemctl enable samba.service # sudo systemctl enable smb.service # sudo systemctl enable nmb.service sudo pkg install samba413
    419 bytes (35 words) - 16:30, 1 July 2021
  • Csharp build systems (category Pages using deprecated source tags)
    yourproject.csproj <Project Sdk="Microsoft.NET.Sdk"> <!-- ...project config... --> <ItemGroup> <PackageReference Include="Newtonsoft.Json" Version="9.0
    322 bytes (21 words) - 03:29, 3 November 2019
  • Wireguard install (category Pages using deprecated source tags)
    sudo pacman -S wireguard-tools #sudo pacman -S wireguard-dkms # built into linux kernel >5.6 pkg install wireguard # /etc/rc.conf gateway_enable="YES"
    483 bytes (37 words) - 21:40, 19 June 2021
  • Amazon (category Pages using deprecated source tags)
    firefox: Settings > Preferences: General: - [x] Play DRM controlled Content google-chrome: ?? High Def videos: # see https://www.maketecheasier.com/wa
    457 bytes (38 words) - 20:17, 21 February 2021
  • Winetricks (category Pages using deprecated source tags)
    Install windows fonts and DLLs in wine. winetricks list # list install categories winetricks ${CATEGORY} list # list available installs from a category
    444 bytes (25 words) - 14:27, 23 May 2021
  • Powershell services (category Pages using deprecated source tags)
    get-service # list all services get-service | get-member # list all properties of service objects get-service <service> # get target service object get-service
    482 bytes (42 words) - 20:54, 8 August 2019
  • Java comments (category Pages using deprecated source tags)
    There are 3x types of comments in java. // inline comment /* multiline comment */ In java, docstrings are written above the item being documented. /**
    420 bytes (41 words) - 16:13, 9 February 2019
  • Fzy (category Pages using deprecated source tags)
    A commandline fuzzy matcher. Not as featureful as fzf. find | fzy # interactive fuzzy search find | fzy --show-matches='foo' # non-interactive descending
    423 bytes (24 words) - 14:31, 27 February 2022
  • Tt-rss upgrades (category Pages using deprecated source tags)
    Important note: after an upgrade, you have to set SINGLE_USER_MODE to true in your config.php; remember to modify after that if needed.
    167 bytes (25 words) - 01:44, 4 April 2021
  • Gawk conditionals (category Pages using deprecated source tags)
    if ( var >= 10 ) { print "var is larger than or equal to 10"; } else if ( var <= 5 ) { print "var is smaller than or equal to 5"; } else { print "all other
    273 bytes (30 words) - 01:20, 19 July 2021
  • Nginx install (category Pages using deprecated source tags) (section Compile from Source)
    pkg install nginx # FreeBSD pacman -S nginx # Archlinux You may need to compile for newer or disabled features. I don't recall when I needed this.
    350 bytes (25 words) - 22:06, 21 March 2021
  • Pacman troubleshooting (category Pages using deprecated source tags)
    package's file, and re-install using force. sudo rm -rf /var/lib/pacman/local/man-pages-* sudo pacman -S --force man-pages
    301 bytes (30 words) - 18:36, 25 December 2021
  • Ruby nokigiri (category Pages using deprecated source tags)
    nokigiri is an html parser require 'nokigiri' html = '<html><title>foo</title></html>' doc = Nokigiri::HTML.parse(html) doc.css("title") # css-select elements
    316 bytes (24 words) - 20:01, 14 September 2021
  • Ntop (category Pages using deprecated source tags)
    A web ui for network traffic introspection. graphs, stats, etc. sudo pacman -S ntop sudo ntop -i enp0s25 # visit: localhost:3000
    432 bytes (21 words) - 20:05, 23 December 2020
  • Nix variables (category Pages using deprecated source tags)
    var = "value" # assign variable (global) # under 'let' variables are local to current scope let local_var = "value" other_var = "value" 'with' exposes
    342 bytes (44 words) - 22:39, 5 August 2021
  • Bitlbee discord: install (category Pages using deprecated source tags)
    pacaur -S bitlbee-discord sudo pkg install autoconf sudo pkg install autotools cd /usr/ports/irc/bitlbee-discord make sudo make install
    227 bytes (22 words) - 02:18, 21 January 2022
  • Vbscript input/output (category Pages using deprecated source tags)
    Set fso = CreateObject ("Scripting.FileSystemObject") Set stdout = fso.GetStandardStream (1) Set stderr = fso.GetStandardStream (2) stdout.WriteLine "print
    244 bytes (25 words) - 00:23, 8 December 2019
  • Postgresql install (category Pages using deprecated source tags)
    sudo pkg install postgresql96-server echo "postgresql_enable=\"YES\"" >> /etc/rc.conf sudo service postgresql initdb sudo service postgresql start WARNING:
    559 bytes (45 words) - 13:00, 15 September 2019
  • Batch hardware (category Pages using deprecated source tags)
    wmic cpu wmic memcache get access # overall cpu usage typeperf "\Processor(_Total)\% Processor Time" # individual cpu usage typeperf "\Processor{*)\% Processor
    555 bytes (36 words) - 16:25, 10 July 2021
  • 7zip (category Pages using deprecated source tags)
    7zip is a commandline/gui program to manage various archive formats. pacman -S p7zip # archlinux 7z x -o/path/out/ file.7z # extract to dir
    311 bytes (25 words) - 20:39, 13 November 2021
  • Python lowlevel (category Pages using deprecated source tags)
    WARNING: Kills python process if there is an error. (including maya). import ctypes memoryLoc = id( MyClassInstance ) ## Get Memory Location ref2Class
    392 bytes (32 words) - 17:28, 6 May 2018
  • Docker-compose usage (category Pages using deprecated source tags)
    docker-compose up # runs command for each server in 'docker-compose.yml' docker-compose build # builds environment from 'docker-compose.yml' docker-compose
    264 bytes (32 words) - 21:22, 18 April 2020
  • Kobo eReader (2010) (category Pages using deprecated source tags)
    It's pretty straightforwards, just plug it in and mount it like a normal disk. sudo mount /dev/sdb /mnt/usb cp somebook.pdf /mnt/usb
    234 bytes (25 words) - 16:12, 19 September 2021
  • Light (category Pages using deprecated source tags)
    light allows you to control your backlight brightness. sudo pacman -S light usermod -a -G video will # add your user to group 'video' light -S 100 # set
    425 bytes (41 words) - 11:49, 14 September 2019
  • Dunst usage (category Pages using deprecated source tags)
    # send notification notify-send 'my title' 'my message' # repeat last message # (repeated calls navigate further back in history) dunstctl history-pop
    499 bytes (42 words) - 23:13, 6 August 2021
  • Nix libraries (category Pages using deprecated source tags)
    pkgs.lib.makeLibraryPath [ pkgs.zlib ] # path from lib/ dirs "${pkgs.shared-mime-info}/share/mime/packages/freedesktop.org.xml" # pkg interpolated is the
    461 bytes (36 words) - 02:17, 27 March 2021
  • Fsck (category Pages using deprecated source tags)
    Check for filesystem errors, and try to repair them. Similar to mount, fsck has different tools for different filesystems. For example fsck.btrfs, fsck
    350 bytes (40 words) - 02:09, 9 May 2021
  • Ruby concurrency (category Pages using deprecated source tags)
    def func1 i = 0 while i<=2 puts "func1 at: #{Time.now}" sleep(2) i = i+1 end end thread = Thread.new{func1()} thread.join()
    395 bytes (25 words) - 19:25, 17 February 2020
  • Ruby debuggers (category Pages using deprecated source tags)
    Builtin debugger module. See ruby debug. ruby -r debug yourmodule.rb A ruby interpreter, and debugger rolled into one. External library. See ruby pry.
    415 bytes (33 words) - 15:56, 29 March 2020
  • Mutt khard (category Pages using deprecated source tags)
    ~/.mutt/muttrc set query_command= "khard email --parsable %s" macro index,pager a "<pipe-message>khard add-email<return>" \ "Add sender to contacts (khard)"
    315 bytes (30 words) - 17:10, 29 December 2020
  • Nginx allowlist or denylist (category Pages using deprecated source tags)
    # explicit allowlist Server { allow 192.168.1.0/24; # entire subnet deny all; }
    119 bytes (13 words) - 21:39, 21 March 2021
  • Delta (category Pages using deprecated source tags)
    colourized side-by-side diffs and pager. brew install git-delta delta 1.txt 2.txt # combined diff delta -s 1.txt 2.txt # side-by-side diff
    453 bytes (28 words) - 02:24, 13 July 2022
  • Cpp qt: simple (category Pages using deprecated source tags)
    The simplest possible build I could think of to test with. src/main.cpp #include <QtWidgets/QApplication> #include <QtWidgets/QPushButton> int main(int
    326 bytes (39 words) - 21:52, 8 February 2019
  • Nix files (category Pages using deprecated source tags)
    imports bind all of the let variables defined within a file to a set. # ./foo.nix let a = "A" fn = x: x # ./bar.nix foo = import ./foo.nix {}; # foo expects
    450 bytes (55 words) - 13:14, 16 August 2020
  • Sphinx hosting (category Pages using deprecated source tags)
    # /usr/local/etc/nginx/nginx.conf user www www worker_processes auto; worker_cpu_affinity auto; events { multi_accept on; worker_connections 1024; } http
    446 bytes (52 words) - 23:43, 28 February 2021
  • Vbscript conditionals (category Pages using deprecated source tags)
    If var = 1 Then stdout.WriteLine "condition A" ElseIf var = 2 Then stdout.WriteLine "condition B" Else stdout.WriteLine "condition C" End If d=weekday(date)
    381 bytes (43 words) - 00:14, 8 December 2019
  • Pcmanfm (category Pages using deprecated source tags)
    Pcmanfm is LXDM's file manager. It featureful, themable, and low on dependencies. A clear win. sudo pacman -S pcmanfm sudo pacman -S tumbler # image thumbs
    318 bytes (33 words) - 16:44, 26 December 2019
  • Ezjail (category Pages using deprecated source tags)
    Shellscripts for managing FreeBSD jails. # create a jail ezjail-admin install ezjail-admin create example.com 'em0|10.0.0.2' ezjail-admin start example
    617 bytes (26 words) - 03:51, 10 June 2020
  • Xdotool (category Pages using deprecated source tags)
    target windows lots more Xdotool itself does not record keybindings, but used with xbindkeys, you can bind keys to other keys. xdotool key Home ## Virtual
    610 bytes (81 words) - 14:40, 18 February 2019
  • Ruby csv (category Pages using deprecated source tags)
    csv = CSV.new(File.read('out.csv')) csv.read # array of rows csv << [0, 1, 2] # append row to csv csv = CSV.new(<<~CSV, headers: true) id, name 123, foouser
    354 bytes (56 words) - 18:27, 7 December 2023
  • Gnu patch (category Pages using deprecated source tags)
    patch a codebase patch directories diff -ruN new/ old/ > diff.patch # create patch patch -ruN -d working < diff.patch # apply patch patch files diff -u
    377 bytes (45 words) - 03:29, 21 September 2020
  • Baikal install (category Pages using deprecated source tags)
    sudo pkg install baikal nginx openssl # add user Will to group www pw groupmod www -M will Set up an httpd directive See `/usr/local/share/examples/baikal`
    475 bytes (58 words) - 01:41, 17 July 2020
  • Rdesktop (category Pages using deprecated source tags)
    rdesktop lets you access windows over RDP from a X11 displayserver. rdesktop \ -P \ -z \ -x 1 \ -r sound:off \ -u 'domain.com\willp' \ -p 'password' \
    424 bytes (28 words) - 01:04, 21 September 2020
  • Gpart (category Pages using deprecated source tags)
    gpart is a BSD tool for working with partition tables. Similar to linux's fdisk. camcontrol devlist # list all devices gpart list # print all disks (with
    557 bytes (78 words) - 19:25, 12 February 2022
  • Cmake general utilities (category Pages using deprecated source tags)
    get information about the system running cmake. cmake_host_system_information( RESULT os_name QUERY OS_NAME ) if (os_name =
    183 bytes (20 words) - 19:05, 18 May 2018
  • Broot (category Pages using deprecated source tags)
    Fuzzy directory tree searching. pacman -S broot You'll also need to define the function br. # ~/.zshrc function br { local cmd cmd_file code cmd_file=$(mktemp)
    723 bytes (51 words) - 17:41, 3 July 2021
  • Powershell loops (category Pages using deprecated source tags)
    $array = 'a','b','c' ForEach ($item in $array){ # do stuff } foreach ($dir in (get-childitem -recurse -path . -filter "package.py)) { cd $dir.DirectoryName;
    530 bytes (46 words) - 03:20, 19 September 2018
  • Shairport (category Pages using deprecated source tags)
    issuing: systemctl enable avahi-daemon.service In order to run shairport, use the shairport.pl script. Can be run from dmenu, or a terminal window. Avahi-daemon
    433 bytes (59 words) - 20:00, 21 February 2021
  • Hexchat (category Pages using deprecated source tags)
    pinephone. server: domain.com/1025 - [x] connect to selected servers only - [x] use ssl for all the servers on this network username: you/freenode login_method:
    362 bytes (39 words) - 06:02, 11 November 2020
  • Xpad (category Pages using deprecated source tags)
    The builtin linux gamepad driver. NOTE: linux kernel 3.17+ supports wired xbox one controller natively. sudo pacman -S xpad sudo modprobe xpad
    237 bytes (23 words) - 02:48, 27 June 2021
  • Python mock: mock objects (category Pages using deprecated source tags)
    mock = mock.Mock() mock.a() >>> <Mock id='1234567'> mock.a >>> <Mock id='7654321'> mock.a.return_value = 'hi' mock.a() >>> 'hi'
    162 bytes (21 words) - 03:56, 10 August 2019
  • Qutebrowser commands (category Pages using deprecated source tags)
    Some useful commands I use frequently :download-clear " clear completed downloads :tab-select " fuzzy-select tab to view :devtools " chrome dev tools :config-edit
    452 bytes (36 words) - 01:59, 4 September 2022
  • Ruby thin (category Pages using deprecated source tags)
    A webserver. http://maratgaliev.com/bigsur-rails/ gem install thin -v '1.7.2' -- --with-cflags="-Wno-error=implicit-function-declaration"
    276 bytes (21 words) - 16:00, 31 January 2021
  • Mysql backup (category Pages using deprecated source tags)
    You'll need the full 'mysql' package rather than just the 'mysql-client' in order to do this: CREATE USER 'backup'@'ip-address' IDENTIFIED BY 'password';
    444 bytes (59 words) - 22:03, 23 March 2020
  • Mutt abook (category Pages using deprecated source tags)
    --mutt-query '%s'" macro index a "|abook --add-email\n" 'add sender to abook' macro pager a "|abook --add-email\n" 'add sender to abook'
    337 bytes (37 words) - 17:06, 29 December 2020
  • Ruby rails: install (category Pages using deprecated source tags)
    NOTE: sourcing chruby's activation script from bashrc while installing rails was causing it to fail with CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?:
    314 bytes (37 words) - 23:53, 9 April 2020
  • Mutt install (category Pages using deprecated source tags)
    longer need to compile/patch with sidebar Install setup-x86.exe -q -P ^ mutt (source),^ msmtp,^ w3m,^ ncurses,^ libncurses-devel,^ abook,^ offlineimap,^ autobuild
    607 bytes (47 words) - 02:01, 2 July 2022
  • Python termplotlib (category Pages using deprecated source tags)
    very useful python library that aims to reproduce matplotlib using ascii so that it can be used on headless servers. Unfortunately, it seems you cannot render
    401 bytes (64 words) - 23:48, 28 August 2020
  • Tcpdump (category Pages using deprecated source tags)
    to try command with/without (-n) # to use ip-addrs instead of hostnames tcpdump -n -i eth0 # piping tcpdump using (-l) tcpdump -l -i eth0 | grep "192.1"
    512 bytes (85 words) - 02:29, 7 November 2021
  • Mosh install (category Pages using deprecated source tags)
    You'll need to install mosh on both the client/server. Mosh works by first connecting over ssh, then starting and communicating via the mosh-daemon. There
    428 bytes (64 words) - 03:26, 29 December 2021
  • Xrandr (category Pages using deprecated source tags)
    Xrandr allows you to manipulate query and manipulate display settings. xrandr --output VGA-1 --mode 1920x1080 # set resolution xrandr # query outputs/modes
    596 bytes (45 words) - 02:37, 27 August 2020
  • Sudo usage (category Pages using deprecated source tags)
    # visudo (/etc/sudoers) will ALL=(ALL): ALL # full sudo permissions to user %group ALL=(ALL): ALL # full sudo permissions to group members superuser ALL=(ALL)
    588 bytes (58 words) - 21:11, 2 April 2022
  • Giara (category Pages using deprecated source tags)
    Giara is a mobile reddit client for linux written in python. It works on the pinephone. pacaur -S giara-git
    445 bytes (20 words) - 03:28, 13 November 2020
  • Powershell functions (category Pages using deprecated source tags)
    Function _AppendToPathEnv { param ( [Parameter (Mandatory=$true, position=2)] [String]$value ) # """ Appends a value to registry key, if it does not already
    692 bytes (69 words) - 19:32, 2 December 2019
  • Tig (category Pages using deprecated source tags)
    gitk within your terminal. tig -G'def foo' file.txt # show comits with code changes involving 'def foo' uu # stage/unstage file for commit ul # stage/unstage
    736 bytes (39 words) - 14:07, 4 July 2022
  • Vagrant: plugins (category Pages using deprecated source tags)
    ly/vagrant-lxc-wheezy64-2013-10-23' config.vm.define "db" do |node| # Set Container to use LXC config.vm.provider :lxc do |lxc| lxc.customize 'cgroup.memory.limit_in_bytes'
    503 bytes (66 words) - 17:02, 13 December 2019
  • Batch modules (category Pages using deprecated source tags)
    REM batch script arguments are listed numerically in order REM path to batch script echo %0 REM arguments, in order echo %1 echo %2 ... number of arguments
    523 bytes (65 words) - 16:05, 10 July 2021
  • Asus RT-N66U Router (category Pages using deprecated source tags)
    My router circa 2010. power button broke, but works if held down with tape. lan: dhcp: start: 192.168.1.100 start: 192.168.1.200 wan: port-forwarding:
    204 bytes (30 words) - 15:07, 23 December 2020
  • Javascript jest (category Pages using deprecated source tags)
    A test framework for javascript. // ${project}/foo.js function sum(a, b) { return a + b; } // ${project}/foo.test.js const sum = require('./foo.js'); test('1
    522 bytes (35 words) - 02:05, 17 June 2021
  • Pev (category Pages using deprecated source tags)
    Windows executable info from linux. (ex: build version). pacaur -S pev # get windows executable version peres -v DDDA.exe | grep 'File Version' # ?? info
    583 bytes (31 words) - 21:06, 1 May 2021
  • Css cookbook (category Pages using deprecated source tags)
    https://stackoverflow.com/questions/46690572/indent-content-based-on-headings h1, h1 ~ *, h2 ~ h1, h2 ~ h1 ~ *, h3 ~ h1, h3 ~ h1 ~ * { margin-left: 0px;
    429 bytes (49 words) - 22:17, 2 May 2021
  • Github ui (category Pages using deprecated source tags)
    # shopify is:open is:pr -is:draft -reviewed-by:@me review-requested:@me +is:pr # only include pull requests -is:draft # remove drafts -is:approved # removes
    557 bytes (49 words) - 15:41, 19 September 2021
  • Batch loops (category Pages using deprecated source tags)
    REM (start-counting-at, iterate-by, stop-counting-at) FOR /L %%i IN (0, 1, 5) DO ( echo %%i ) FOR /D %%d IN (root will vagrant build) DO ( echo %%d ) FOR
    410 bytes (39 words) - 00:29, 12 October 2018
  • VimPlugin: gitlink-vim (category Pages using deprecated source tags)
    Get link for current line in github. :GitLink
    282 bytes (8 words) - 19:49, 14 February 2021
  • Python qt: tabs (category Pages using deprecated source tags)
    ## Build Widgets layout = QtGui.QVBoxLayout() tab_layout = QtGui.QTabWidget() info_manager = QtGui.QPushButton('manager info') info_tasks = QtGui.QPushButton('task
    408 bytes (50 words) - 02:24, 23 May 2018
  • Neovim configuration (category Pages using deprecated source tags) (section source vimrc)
    regular vimrc. lua <<EOF -- some lua code EOF " ~/.config/nvim/init.vim " source vimrc from init.vim set rtp^=HOME/.vim so ~/.vimrc
    648 bytes (42 words) - 14:53, 21 January 2022
  • Yarn (category Pages using deprecated source tags)
    replacement that is parallellized. TODO: split this into yarn-1 and yarn-2 pages yarn run ... # runs a command from your package.json
    500 bytes (24 words) - 15:32, 26 June 2023
  • Browsh (category Pages using deprecated source tags)
    webbrowser that uses a headless firefox and renders using libcaca to a terminal. pacman -S go-bindata dep pacaur -S browsh browsh is intended t obe used with a
    546 bytes (44 words) - 04:23, 21 September 2020
  • Viu (category Pages using deprecated source tags)
    viu displays images within a terminal using squares. It even supports animated gifs! pacaur -S viu viu image.png # display image viu -w 50 image.png #
    510 bytes (33 words) - 01:02, 31 December 2020
  • Sphinx configuration (category Pages using deprecated source tags)
    # ${PACKAGE}/source/conf.py # loaded from ${site-packages}/sphinx/themes/ html_theme = 'alabaster' Each theme may define it's own additional options. https://pypi
    816 bytes (40 words) - 12:40, 4 July 2022
  • Windows FileShares (category Pages using deprecated source tags)
    # permanently mount \\groot\movies to K: net use K: /delete /y # unmount K: (if mount created using net use)
    553 bytes (48 words) - 22:26, 23 November 2019
  • Python wave (category Pages using deprecated source tags)
    docs intro tutorial https://www.tutorialspoint.com/read-and-write-wav-files-using-python-wave detailed tutorial https://nbviewer.jupyter.org/github/mgeier
    661 bytes (36 words) - 21:12, 31 August 2019
  • Python pudb (category Pages using deprecated source tags)
    pudb is a gui debugger. Watch a Variable watching a variable in pudb enters it into the GUI on the top right. Breakpoints are not added, it simply displays
    449 bytes (76 words) - 22:13, 6 May 2018
  • VimPlugin: vim-pyunit (category Pages using deprecated source tags)
    NOTE: use VimPlugin: vim-test instead vim pyunit integrates nose into vim, allowing you to test functions/modules as you write/refactor straight from your
    404 bytes (57 words) - 17:01, 14 February 2021
View (previous 250 | ) (20 | 50 | 100 | 250 | 500)