Skip to content

Instantly share code, notes, and snippets.

@Peredery
Peredery / Fix_gpg_Mac_OS_error.md
Last active May 19, 2024 08:36
FIX - gpg failed to sign the data fatal: failed to write commit object
@ramgadgi
ramgadgi / ansible.cfg
Created May 19, 2024 08:34 — forked from alivx/ansible.cfg
Default Ansible config file
# Example config file for ansible -- https://ansible.com/
# =======================================================
# Nearly all parameters can be overridden in ansible-playbook
# or with command line flags. Ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory, or /etc/ansible/ansible.cfg, whichever it
# finds first
# For a full list of available options, run ansible-config list or see the
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-cef-delaypageload - Enable early-out for known page loads
@kamkarthi
kamkarthi / QNAP Qsync Client for Fedora Linux.md
Last active May 19, 2024 08:33
QNAP Qsync Client for Fedora Linux

QNAP Qsync Client for Fedora Linux

Hello folks, I managed to setup Qsync client under fedora linux 37, so I thought myself to share this simple guide. Basically downloaded Debian qsync utility provided from QNAP and then tweaked missing library paths and related filenames.

INSTALL:

Download and extract the debian package

mkdir QNAPCLIENT

Xbox One Controller Protocol Notes

The Xbox One controller protocol is quite in-depth. This is a collection of all the information I've gathered over time about it, most of which is sourced from medusalix's xone driver for Linux. There's a little bit of my own research/reverse engineering in there too, but a majority of the information comes from xone.

The info here refers to the USB/wireless side of things, it does not fully apply to the interface the Xbox One controller driver on Windows exposes. That interface is covered here. The wireless receiver protocol is also not documented here, as that's its own beast to handle.

Struct definitions and code examples are not guaranteed to be valid C/C++ code, and are meant mainly for efficiently defining how things are structured or handled. All structs are assumed to be packed with 1-byte alignment.

Table of Contents

@clement-or
clement-or / ccide.lua
Created May 18, 2024 23:24
ComputerCraft auto-sync files from Neovim (works in multiplayer)
-- File to include inside init.lua in your neovim conf
-- Define a global table to store the autocommand ID and GitHub credentials
_G.CCIDE = {
augroup_id = nil,
github_token = "<github-personal-access-token>", -- You can create this in Github > Settings > Developer Settings
gist_id = nil,
}
-- Function to update the current buffer to GitHub Gist
local function update_gist()
@rikusalminen
rikusalminen / gist:972e3824350193bbed0c28ff96a82a73
Created September 10, 2016 16:24
Linux force feedback hello world
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <linux/input.h>
@psitem
psitem / archive.is.js
Last active May 19, 2024 08:28
This is my bookmarklet for archive.is. There are many like it, but this one is mine. This one strips the querystring and navigates directly to the latest archived version.
javascript:void(open('https://archive.is/newest/%27+encodeURIComponent( document.location.origin + document.location.pathname ),"_self"))
@diasporx
diasporx / JetBrains products Activation code until 14 October 2024
Last active May 19, 2024 08:26
JetBrains products Activation code until 14 October 2024
I2A0QUY8VU-eyJsaWNlbnNlSWQiOiJJMkEwUVVZOFZVIiwibGljZW5zZWVOYW1lIjoiVU5JVkVSU0lEQURFIEVTVEFEVUFMIERFIENBTVBJTkFTIiwiYXNzaWduZWVOYW1lIjoiVGFvYmFv77yaSkVU5YWo5a625qG25r+AIOa0u+W3peS9nOWupCAgcmVuIHpodW4gZGlhbiBtaW5n77yBIiwiYXNzaWduZWVFbWFpbCI6IlJvYmJ5X1dlbmlnZXJAb3V0bG9vay5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMjQtMTAtMTQiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZS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