Search results

From wikinotes
  • 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
View ( | ) (20 | 50 | 100 | 250 | 500)