In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
""" | |
Lisp languages support an image-based development cycle at the REPL. | |
R - having its roots in Lisp - it was first implemented in Scheme - has overtaken this. | |
R's base command `save.image(filepath)` can save the state of an entire REPL session in a file, | |
and next time you start R, you can start where you stopped, by hitting `load(filepath)`. | |
I was asking myself, since Python's REPL is ipython, what supports | |
similar functionailities for pythonistas. |
It's great for beginners. Then it turns into a mess.
const MY_DOMAIN = "agodrich.com" | |
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2" | |
const DISQUS_SHORTNAME = "agodrich" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", |
This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.
There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.
$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log > requests.txt
You will need:
This guide is based on Ubuntu, for other OS, use their package manager instead.
- Racket & scheme are orders of magnitude faster than clojure.
- I like lisp but I hate this clojure movement. Especially when 60% of it is written in Java.
- Are there major java libraries for which there is no scheme implementations?
- Why did people pick up clojure rather than racket. Hype?
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
You must use the magic method %save
:
In [1]: %save?
Type: Magic function
String Form:<bound method CodeMagics.save of <IPython.core.magics.code.CodeMagics object at 0x7fb5d25bb1d0>>
Namespace: IPython internal
File: /usr/lib/python2.7/dist-packages/IPython/core/magics/code.py
// | |
// Copyright © 2023 Bill Bonney. All rights reserved. | |
// | |
// The Swift Programming Language: Swift by Tutorials (solutions) | |
// Author: Bill Bonney <billbonney (at) communistech.com> | |
// | |
// This is all the code in The Swift Tour section in the Apple Book on Swift. | |
// This should allow you to play with the code and see behaviours, and help | |
// solve any paticulars you get stuck on when doing the Experiments. | |
// |