Skip to content

Instantly share code, notes, and snippets.

View danielga's full-sized avatar
🎯
Focusing

Daniel danielga

🎯
Focusing
View GitHub Profile
@danielga
danielga / export_authy.js
Last active February 29, 2020 01:05
Authy secrets exporter
/**
* Activate the developer tools by changing the `if (manifest.dflag)` condition to `true` (commenting the `if` clause is fine) in `app.js`.
* Activate resizing by changing `resizable` entries to `true` and maximizing by changing `maximizable` entries to `true` in `app.js`.
*/
/*! QRious v4.0.2 | (C) 2017 Alasdair Mercer | GPL v3 License
Based on jsqrencode | (C) 2010 tz@execpc.com | GPL v3 License
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.QRious=e()}(this,function(){"use strict";function t(t,e){var n;return"function"==typeof Object.create?n=Object.create(t):(s.prototype=t,n=new s,s.prototype=null),e&&i(!0,n,e),n}function e(e,n,s,r){var o=this;return"string"!=typeof e&&(r=s,s=n,n=e,e=null),"function"!=typeof n&&(r=s,s=n,n=function(){return o.apply(this,arguments)}),i(!1,n,o,r),n.prototype=t(o.prototype,s),n.prototype.constructor=n,n.class_=e||o.class_,n.super_=o,n}function i(t,e,i){for(var n,s,a=0,h=(i=o.ca
@danielga
danielga / lujlu.lua
Created April 16, 2018 22:05 — forked from meepen/lujlu.lua
LuaJit VM in Lua. Comes with fully operational bytecode interpreter. License is: contact me before using it commercially. - Now runs itself inside itself and itself inside itself inside itself
local bytecodes = {}
local BC, run_function = {}
local VARG_CONST = {}
local lujlu_mt_funcs
local lujlu_cache = setmetatable({}, {__mode = "k"})
local lujlu_identifier_mt = {
__tostring = function(self)
return tostring(lujlu_cache[self].data)
end,

Keybase proof

I hereby claim:

  • I am danielga on github.
  • I am danielga (https://keybase.io/danielga) on keybase.
  • I have a public key whose fingerprint is 9FF4 AFB1 0470 F414 97CB F21A 6047 C76C 33DD BB44

To claim this, I am signing this object:

@danielga
danielga / vfs.lua
Created December 14, 2015 03:33
A pure Lua module for Garry's Mod that provides the same functionality as the gm_vfs module by wrapping gm_filesystem.
--[[
gm_filesystem wrapper for gm_vfs
A pure Lua module for Garry's Mod that provides the same functionality
as the gm_vfs module by wrapping gm_filesystem.
-----------------------------------------------------------------------
Copyright (c) 2015, Daniel Almeida
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
@danielga
danielga / playersync.lua
Created December 14, 2015 03:32
xcomms test (player data synchronization)
--[[
Copyright (c) 2015, Daniel Almeida
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
@danielga
danielga / pack.lua
Created December 14, 2015 03:31
A pure Lua module that provides the same functionality as the lpack C module.
--[[
luapack
A pure Lua module that provides the same functionality as the lpack
C module.
-----------------------------------------------------------------------
Copyright (c) 2015, Daniel Almeida
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions