Skip to content

Instantly share code, notes, and snippets.

[Desktop Entry]
Actions=new-window;new-private-window;
Categories=GNOME;GTK;WebBrowser;Network;
Comment=Browse the World Wide Web
Exec=/opt/firefox-developer-edition/firefox-bin %u
GenericName=Web Browser
Icon=/opt/firefox-developer-edition/browser/chrome/icons/default/default128.png
Keywords=Internet;WWW;Browser;Web;Explorer
Name=Firefox Developer Edition
StartupNotify=true
@anddam
anddam / vbox.log
Created March 27, 2019 06:43
VirtualBox EFI VM black screen issue
00:00:00.786500 VirtualBox VM 6.0.0 r127566 linux.amd64 (Dec 18 2018 13:18:17) release log
00:00:00.786503 Log opened 2019-03-27T06:41:20.689638000Z
00:00:00.786504 Build Type: release
00:00:00.786507 OS Product: Linux
00:00:00.786507 OS Release: 4.15.0-46-generic
00:00:00.786508 OS Version: #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019
00:00:00.786529 DMI Product Name: Skylake Platform
00:00:00.786535 DMI Product Version: 0.1
00:00:00.786576 Host RAM: 7890MB (7.7GB) total, 6178MB (6.0GB) available
00:00:00.786579 Executable: /usr/lib/virtualbox/VirtualBoxVM
@anddam
anddam / output.log
Last active March 30, 2019 18:43
Micropython external C module build output
~/Micropython/micropython-git/ports/unix $ ls ../../../modules/example-git/
example.c micropython.mk
~/Micropython/micropython-git/ports/unix $ touch ../../../modules/example-git/micropython.mk
~/Micropython/micropython-git/ports/unix $ env BUILD_VERBOSE=T make V=1 USER_C_MODULES=../../../modules all
Including User C Module from ../../../modules/example-git
python3 ../../py/makeversionhdr.py build/genhdr/mpversion.h
mkdir -p build/example-git/
CC ../../../modules/example-git/example.c
{"time": "eyJhcHBOYW1lIjoid2hpdGVzcGFjZSIsInBhZ2UiOiJpbmRleCIsInRpbWluZ3MiOnsic3RhcnRUaW1pbmciOjEwNCwidGNwVGltaW5nIjo4MSwiaHR0cHNUaW1pbmciOjQyLCJyZXF1ZXN0VGltaW5nIjo4MzYyLCJyZXNwb25zZVRpbWluZyI6NTMsImRvbUxvYWRpbmdUaW1pbmciOjY4NiwiZG9tSW50ZXJhY3RpdmVUaW1pbmciOjE0MTYsImRvbUNvbnRlbnRMb2FkZWRUaW1pbmciOjd9fQ=="}
~/.local/share/applications/ $ hg status
M .local/share/applications/firefox-personal.desktop
~/.local/share/applications/ $ hg diff
~/.local/share/applications/ $
@anddam
anddam / file.log
Created December 2, 2018 19:25
Packagekitd running with high CPU usage
Transactions:
[none]
daemon connected=1
network status=online
Transactions:
1 /8330_ddeacbcb
Transactions:
1 /8330_ddeacbcb
2 /8331_ebadebdd
/8330_ddeacbcb allow_cancel 1
class Profile(models.Model):
"""Extend User model """
company = fields.CompanyField()
user = models.OneToOneField(to=User, on_delete=models.CASCADE)
timezone = fields.TimeZoneField(default=settings.DEFAULT_PROFILE_TIMEZONE)
created = models.DateTimeField(auto_now_add=True, editable=False)
last_updated = models.DateTimeField(auto_now=True, editable=False)
class Meta:
ordering = ('-created',)
# coding: utf-8
from datetime import datetime
from time import sleep
from sys import exit
from psycopg2 import connect, OperationalError
def wait_for_database(delay=4, retries=10, host='db', dbname='postgres',
user='postgres'):
$
Connected to 10:13:31:53:9e:7f (on wlp1s0)
SSID: brapinet wifi
freq: 2412
RX: 10624279 bytes (9662 packets)
TX: 1274629 bytes (7090 packets)
signal: -64 dBm
tx bitrate: 58.5 MBit/s MCS 6
bss flags: short-preamble short-slot-time
$ iw wlp1s0 info
Interface wlp1s0
ifindex 3
wdev 0x1
addr a0:d3:7a:37:20:5d
type managed
wiphy 0
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
$ uname -rms