Skip to content

Instantly share code, notes, and snippets.

> df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 244K 9.8M 3% /dev
/dev/disk/by-uuid/d7e4eb44-ba34-42a7-9cbe-1261536dacde
5.5G 5.1G 192M 97% /
shm 1.5G 0 1.5G 0% /dev/shm
/dev/sda4 119G 73M 112G 1% /boot <---- this line right here
^
|
Do you see it?
@tylerharper
tylerharper / temp-file.edebug
Created December 18, 2012 02:41
Learning how other create temp file on remote machine. eshell on remote machine tailing a file creates a temp file on remote machine
shell-command("tail bar" #<buffer *eshell remote output*> #<buffer *eshell remote error*>)
eshell-remote-command("tail" ("bar")) <--- really look at this
eshell-external-command("tail" ("bar"))
eshell-plain-command("tail" ("bar"))
eshell-named-command("tail" ("bar"))
Also note tramp-sh-handle-file-local-copy
@tylerharper
tylerharper / gist:6185411
Last active December 20, 2015 19:48
django serializer save issue
Django Serializer does not update many 2 many tables nicely with the using paramenter passed into its save. The object itself use the using database, but the many to many objects will not be saved using the using database. Instead it uses some other database.
How does it get that other database?
django/core/serializers/base.py:167:
django/db/models/fields/releated.py:824: