Skip to content

Instantly share code, notes, and snippets.

@Ram-Z
Ram-Z / -
Created April 23, 2016 15:45
execve("/usr/bin/pactree", ["pactree", "-s", "zsh"], [/* 63 vars */]) = 0
brk(NULL) = 0x25c9000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=260581, ...}) = 0
mmap(NULL, 260581, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff48f585000
close(3) = 0
open("/usr/lib/libalpm.so.9", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 p\240\2067\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=204672, ...}) = 0
ueo
[Unit] Description=Copy EFISTUB Kernel to UEFISYS Partition
[Path]
PathChanged=/boot/initramfs-linux-fallback.img
[Install]
WantedBy=multi-user.target
WantedBy=system-update.target
nnoremap <leader>f :call someFunction()<CR>
let map = "\<leader>f"
let save_map = maparg(map)
" save_map == ':call someFunction()<CR>'
nnoremap <leader>f :call someOtherFunction()<CR>
" I'd like to execute the previous mapping of <leader>f
" doesn't work because '<CR>' is not escaped in save_map
exe "normal!" save_map
#texlive-bin
texlive-core
texlive-bibtexextra
texlive-fontsextra
texlive-htmlxml
texlive-latexextra
texlive-pictures
texlive-pstricks
@Ram-Z
Ram-Z / -
Last active July 28, 2016 22:55
❱❱ makepkg -sir --asdeps
[...]
error: failed to commit transaction (conflicting files)
python3-oauth2client: /usr/lib/python3.5/site-packages/tests/__init__.py exists in filesystem
python3-oauth2client: /usr/lib/python3.5/site-packages/tests/__pycache__/__init__.cpython-35.pyc exists in filesystem
[...]
23:44 ramsi@shada
❱❱ paco /usr/lib/python3.5/site-packages/tests/__init__.py
/usr/lib/python3.5/site-packages/tests/__init__.py is owned by python3-ccr 0.3.3-1
23:44 ramsi@shada
pkgname: name
pkgver: 0.1
depends:
- foo
- bar
#####PAYLOAD_SEPARATOR####
build() {
diff --git a/flexget/plugins/filter/require_field.py b/flexget/plugins/filter/require_field.py
index d9a0016..3d32859 100644
--- a/flexget/plugins/filter/require_field.py
+++ b/flexget/plugins/filter/require_field.py
@@ -31,6 +31,9 @@ class FilterRequireField(object):
if field not in entry:
entry.reject('Required field %s is not present' % field)
break
+ if entry[field] is None:
+ entry.reject('Required field %s is `None`' % field)
@Ram-Z
Ram-Z / after.lua
Created January 31, 2017 00:08
awesome_declarative.lua
local battery = wibox.widget.base.make_widget()
if utils.has_battery() then
table.insert(battery, separator)
table.insert(battery, require("widgets/battery_widget"))
end
awful.screen.connect_for_each_screen(function(s)
[..snip..]
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
@Ram-Z
Ram-Z / gist:0652cde85b113ac799f12470e9fce474
Created January 31, 2017 00:28
awesome_declarative_awesome.lua
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
-- mylauncher,
s.mytaglist,
s.mypromptbox,
},
s.mytasklist, -- Middle widget