This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_flags(key, sep=" "): | |
| return list({stripped for item in get_config_var(key).split(sep) if (stripped := item.strip())}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| style=google | |
| add-braces | |
| indent-namespaces | |
| pad-oper | |
| pad-header | |
| break-blocks | |
| delete-empty-lines | |
| indent-switches | |
| # Objective-C | |
| align-method-colon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Logger * Logger::m_Instance = 0; | |
| Logger::Logger() { | |
| char* buf = nullptr; | |
| size_t sz = 0, l = 0; | |
| // No `m_Instance` declared here | |
| Logger * Logger::getInstance() throw () { | |
| if (m_Instance == 0) { | |
| m_Instance = new Logger(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PySide2.QtCore import Qt | |
| from PySide2.QtWidgets import QMainWindow, QTableWidgetItem | |
| class CMTableWidgetItemNonEditable(QTableWidgetItem): | |
| """Unset editing flags | |
| """ | |
| def __init__(self, *args, **kwargs): | |
| super().__init__(*args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error saving domain: operation failed: domain save job: unexpectedly failed | |
| Traceback (most recent call last): | |
| File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper | |
| callback(asyncjob, *args, **kwargs) | |
| File "/usr/share/virt-manager/virtManager/vmmenu.py", line 182, in cb | |
| vm.save(meter=asyncjob.get_meter()) | |
| File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn | |
| ret = fn(self, *args, **kwargs) | |
| File "/usr/share/virt-manager/virtManager/object/domain.py", line 1377, in save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -- | |
| # example of .path_dirs file: | |
| # /home/anddam/bin | |
| # /home/anddam/.local/bin | |
| { | |
| # This 'config' should probably be found more nicely than this. | |
| cat "${1:-$HOME/.path_dirs}" | |
| IFS=: | |
| # Wordsplitting is purposefully used here over a colon. PATH is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name a.server.invalid; | |
| root /var/www/a; | |
| index index.html; | |
| location = /foo { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Devel mode | |
| Collecting pip | |
| Using cached pip-21.1.2-py3-none-any.whl (1.5 MB) | |
| Installing collected packages: pip | |
| Attempting uninstall: pip | |
| Found existing installation: pip 20.2.3 | |
| Uninstalling pip-20.2.3: | |
| Successfully uninstalled pip-20.2.3 | |
| Successfully installed pip-21.1.2 | |
| Using local bit4id-pyexe source directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + env_devel=/home/test/Desktop/ada/venv | |
| + rm -rf /home/test/Desktop/ada/venv | |
| + python3 -m venv /home/test/Desktop/ada/venv | |
| + . /home/test/Desktop/ada/venv/bin/activate | |
| + deactivate nondestructive | |
| + [ -n ] | |
| + [ -n ] | |
| + [ -n -o -n ] | |
| + [ -n ] | |
| + unset VIRTUAL_ENV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openat(AT_FDCWD, "/home/ada/.local/var/db/xbps/pkgdb-0.38.plist", O_RDONLY) = 3 | |
| fstat(3, {st_mode=S_IFREG|0644, st_size=190, ...}) = 0 | |
| mmap(NULL, 4096, PROT_READ, MAP_SHARED, 3, 0) = 0x7ff95eb7e000 | |
| close(3) = 0 | |
| madvise(0x7ff95eb7e000, 4096, MADV_SEQUENTIAL) = 0 | |
| munmap(0x7ff95eb7e000, 4096) = 0 | |
| openat(AT_FDCWD, "/home/ada/.local/var/db/xbps/pkgdb-0.38.plist", O_RDWR|O_CREAT|O_CLOEXEC, 0664) = 3 | |
| fcntl(3, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_CUR, l_start=0, l_len=0}) = 0 | |
| access("/", W_OK) = -1 EACCES (Permission denied) | |
| umask(022) = 022 |
NewerOlder