Skip to content

Instantly share code, notes, and snippets.

[com.canonical.indicator.sound.AccountsService]
PlayerName=''
Timestamp=0
Title=''
Artist=''
Album=''
ArtUrl=''
PlayerIcon=<('themed', <['application-default-icon', 'application-default', 'application']>)>
[User]
$ sudo dpkg-reconfigure locales
Generating locales (this might take a while)...
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-62-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Green
Device Model: WDC WD10EADS-11M2B2
Serial Number: WD-WCAV59534464
LU WWN Device Id: 5 0014ee 25985d7d9
Firmware Version: 80.00A80
User Capacity: 1.000.204.886.016 bytes [1,00 TB]
[62917.421440] usb 2-2: device not accepting address 24, error -62
[62917.445414] usb usb2-port2: unable to enumerate USB device
[63045.363300] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[63050.579363] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
filter_argument = self.request.GET.get('filter')
if filter_argument:
cleaned_argument = filter_argument.strip()
if cleaned_argument:
context['filter'] = cleaned_argument
context['orderby'] = self.request.GET.get('orderby')
class TestRequestLoginListView(LoginListView):
model = models.TestRequest
paginate_by = 10
def get_queryset(self):
objects = self.model.objects.all()
filter_argument = self.request.GET.get('filter')
if filter_argument:
conditions = [Q(config__name__icontains=word) for word in filter_argument.split()]
forth = {
'foo': 'bar',
}
back = {value: key for key, value in forth.items()}
def generate_trans(dictionary):
def _(folder):
if folder in dictionary:
@anddam
anddam / output.sh
Last active February 1, 2017 15:44
root@bragile:/boot/efi/EFI/backup# pwd
/boot/efi/EFI/backup
root@bragile:/boot/efi/EFI/backup# ls
grub.cfg grubx64.efi MokManager.efi shimx64.efi
root@bragile:/boot/efi/EFI/backup# cat grub.cfg
search.fs_uuid 880fb7dd-72ee-407e-bcec-276cee827fa7 root hd0,gpt4
set prefix=($root)'/boot/backup/grub'
configfile $prefix/grub.cfg

From git-rebase(1) starting from

                 A---B---C topic
                /
           D---E---F---G master

running git rebase master or git rebase master topic results in

                         A'--B'--C' topic

/