Skip to content

Instantly share code, notes, and snippets.

@Ram-Z
Ram-Z / Movies
Last active April 8, 2022 19:31
Skaro
./10,000 BC (2008){unknown}[en].avi
./12 Angry Men (1957){1080p}{bluray}{h264}[en].mkv
./12 Years a Slave (2013){1080p}[en].mkv
./13 Assassins (2010){unknown}[en].avi
./1492: Conquest of Paradise (1992){1080p}{bluray}{h264}[en][de].mkv
./2001: A Space Odyssey (1968){1080p}{bluray}{ac3}[en][de].mkv
./2012 (2009){unknown}[en].avi
./21 (2008){1080p}{bluray}{h264}{ac3}[en][de].mkv
./22 Bullets (2010){720p}{h264}{dts}[en].mkv
./22 Jump Street (2014){1080p}{webdl}{h264}{aac}[en].mkv
packadd termdebug
let g:termdebug_wide = 1
function! s:Debug(...)
tabedit %
let t:debug_tab=1
au BufDelete !gdb ++once if exists('t:debug_tab') | tabclose | endif
endfunction
command! -nargs=* -bang -complete=file Debug call <SID>Debug() | Termdebug<bang> <args>
@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
@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
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)
pkgname: name
pkgver: 0.1
depends:
- foo
- bar
#####PAYLOAD_SEPARATOR####
build() {
@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
#texlive-bin
texlive-core
texlive-bibtexextra
texlive-fontsextra
texlive-htmlxml
texlive-latexextra
texlive-pictures
texlive-pstricks
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
[Unit] Description=Copy EFISTUB Kernel to UEFISYS Partition
[Path]
PathChanged=/boot/initramfs-linux-fallback.img
[Install]
WantedBy=multi-user.target
WantedBy=system-update.target