Skip to content

Instantly share code, notes, and snippets.

View vkravets's full-sized avatar

Vladimir Kravets vkravets

View GitHub Profile
@vkravets
vkravets / .phoenix.js
Created August 12, 2022 22:19 — forked from rcarmo/.phoenix.js
Phoenix configuration
// ********************************************************************************
// Setup and TODO
// ********************************************************************************
Phoenix.set({
daemon: false,
openAtLogin: true
});
/*
@vkravets
vkravets / gist:22b8b81d85dc407ec7075400f82b0935
Created March 30, 2021 19:31 — forked from alphazo/gist:3303282
Clone MiFare cards using chinesse UUID writable cards

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.

Patch & recompile libnfc

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

@vkravets
vkravets / README.md
Created September 14, 2016 13:15 — forked from pthrasher/README.md
Mac OS X - Wallpaper Changer - Swift

Mac OS X - Wallpaper Changer

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"

echo "c0:b0:$(openssl rand -hex 4 | sed 's/\(..\)/\1:/g; s/.$//')"
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
@vkravets
vkravets / gist:8624622
Created January 25, 2014 22:28
Safe SimpleDateFormat
/******************************************************************************
* 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 *
@vkravets
vkravets / X11FullscreenHelper.java
Created April 12, 2013 08:49
Java Full Screen window on Linux OSs using native X11 calling
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
@vkravets
vkravets / JythonNailgun.java
Created October 26, 2012 15:17
Running jython via Nailgun server
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());
@vkravets
vkravets / nm-signal-0.svg
Created March 28, 2012 13:56 — forked from 3demax/nm-signal-0.svg
rc.lua for lualock simpleblack theme
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.