Swift code to change the Wallpaper for all screens. Currently, it changes only the current spaces' wallpaper. I'm working on a version to change in all spaces.
Usage: WallpaperChanger "/Users/username/SomeFolder/SomePicture.jpg"
public class JythonNailgun { | |
private static PythonIterpreter interpreter = null; | |
public static void nailMain (NGContext context) { | |
if (interpreter == null) { | |
interpreter = new PythonIterpreter(); | |
} else { | |
Py.setSystemState(new PySystemState()); |
package org.linux.X11; | |
import com.sun.jna.Native; | |
import com.sun.jna.NativeLong; | |
import com.sun.jna.platform.unix.X11; | |
import java.awt.*; | |
/** | |
* Author: Vladimir Kravets |
/****************************************************************************** | |
* Copyright (c) 2012-2014, Vladimir Kravets * | |
* All rights reserved. * | |
* * | |
* Redistribution and use in source and binary forms, with or without * | |
* modification, are permitted provided that the following conditions are * | |
* met: Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. * | |
* Redistributions in binary form must reproduce the above copyright notice, * | |
* this list of conditions and the following disclaimer in the documentation * |
RROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://plugin.video.fs.ua/?cover=%2f%2fimg.dotua.org%2ffsua_items%2fcover%2f00%2f10%2f08%2f13%2f00100856.jpg&folder=1&href=http%3a%2f%2ffs.to%2fvideo%2ffilms%2fix5ib21WvF8fEQXYGLB1gk-prevoskhodstvo-borna.html&isMusic=no&mode=read_dir&quality=None&referer=http%3a%2f%2ffs.to%2fvideo%2ffilms%2fix5ib21WvF8fEQXYGLB1gk-prevoskhodstvo-borna.html | |
12:51:08 T:18446744072289642056 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.fs.ua/?cover=%2f%2fimg.dotua.org%2ffsua_items%2fcover%2f00%2f10%2f08%2f13%2f00100856.jpg&folder=1&href=http%3a%2f%2ffs.to%2fvideo%2ffilms%2fix5ib21WvF8fEQXYGLB1gk-prevoskhodstvo-borna.html&isMusic=no&mode=read_dir&quality=None&referer=http%3a%2f%2ffs.to%2fvideo%2ffilms%2fix5ib21WvF8fEQXYGLB1gk-prevoskhodstvo-borna.html) failed | |
'plugin://plugin.video.fs.ua/','11','?cover=%2f%2fimg.dotua.org%2ffsua_items%2fcover%2f00%2f40%2f80%2f13%2f00408025.jpg&fol |
echo "c0:b0:$(openssl rand -hex 4 | sed 's/\(..\)/\1:/g; s/.$//')" |
libnfc supports UUID writable cards and even has some dedicated tools for them.
However it doesn't work with some of the cards found on eBay that are even simpler to use. Sector 0 is unlocked and can be written without any additional commands. libnfc requires a small patch to get it working.
Following has been tested under ArchLinux with modified libnfc 1.5.1, mfoc 0.10.2 and a SCL3711 dongle.
The patch is fairly simple, open libnfc-1.5.1/utils/nfc-mfclassic.c and comment 2 lines (it was lines 384 and 385 for me):
// Try to write the trailer
// ******************************************************************************** | |
// Setup and TODO | |
// ******************************************************************************** | |
Phoenix.set({ | |
daemon: false, | |
openAtLogin: true | |
}); | |
/* |