Skip to content

Instantly share code, notes, and snippets.

View blubbll's full-sized avatar
🔷

B͈̤̖̪̪̱ͅl̯̯̮̼͎̬͚̳̩̖̲u̜̼͉͈̠b͙̬̘̙̱̗̲͙b͍̞̬̬͓̼l̰̪͖̯̼̟̟͈̖͕̜̱̜ͅl̻̗͔̝̭̰͚͇̯̥ blubbll

🔷
View GitHub Profile
@blubbll
blubbll / secure.js
Created January 16, 2020 06:06
make it
Object.defineProperty(HTMLScriptElement.prototype, 'src', {
get: function() {
return this.getAttribute('src')
},
set: function(url) {
var prefix = "http://";
if (url.startsWith(prefix))
url = "https://" + url.substr(prefix.length);
@blubbll
blubbll / bcsocket.js
Last active January 5, 2020 00:07
bcsocket.js
!function(){var f,aa=aa||{},l=this;function ba(t){t=t.split(".");for(var e,n=l;e=t.shift();){if(null==n[e])return null;n=n[e]}return n}function ca(){}function da(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function m(t){return"array"==da(t)}function ea(t){var e=da(t);return"array"==e||"object"==e&&"number"==typeof t.length}function n(t){return"string"==typeof t}function fa(t){return"function"==da(t)}var ga="closure_uid_"+(1e9*Math.random()>>>0),ha=0;function ia(t,e,n){return t.call.apply(t.bind,arguments)}function ja(t,e,n
/**!checkes6 by Blubbll*/
var es6 = void 0 !== Array.from && void 0 !== Array.of && void 0 !== Math.acosh && void 0 !== Math.hypot && void 0 !== Math.imul && void 0 !== Number.isInteger && void 0 !== Number.isNaN && void 0 !== Number.EPSILON && void 0 !== Object.assign && void 0 !== Promise && void 0 !== Proxy && void 0 !== Map && void 0 !== Set && void 0 !== WeakMap && void 0 !== WeakSet && void 0 !== Symbol;
window.WebSocket && es6 &&
! function(e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
else if ("function" == typeof define && define.amd) define([], e);
else {
("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).OneWebSocket = e()
}
'use strict'
const { EventEmitter } = require('events')
const ws = require('ws')
const _WebSocket = (typeof ws === 'function') ? ws : window.WebSocket
const MAXIMUM_RECONNECT_DELAY = 20000 // twenty seconds
class OneWebSocket extends EventEmitter {
@blubbll
blubbll / gist:cb3cd97e29687570fcdaf93e4782b8a6
Created December 22, 2019 07:24
get ie version by google
tn_.labs.userAgent.browser.getIEVersion_ = function(a) {
var b = /rv: *([\d\.]*)/.exec(a);
if (b && b[1]) return b[1];
b = "";
var c = /MSIE +([\d\.]+)/.exec(a);
if (c && c[1])
if (a = /Trident\/(\d.\d)/.exec(a), "7.0" == c[1])
if (a && a[1]) switch (a[1]) {
case "4.0":
b = "8.0";
<div id="warn">
<style>
#warn-wrap {
background-color: #f7f7f7;
color: #646464;
fill: darkslategray;
height: 100vh;
position: fixed;
width: 100vw;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
//purge bunny url
sw.url.startsWith(process.env.SWHOST) &&
!_.cache.get(`bunnyPurge_${sw.url}`) && [
_.bunny.purge(sw.url),
_.cache.set(`bunnyPurge_${sw.url}), sw.url`)
];
Es handelt sich um einen Privatverkauf. Das neue -Recht schreibt vor, dass nun auch bei Privat verkauften Artikeln eine Garantie von einem Jahr und Umtauschrecht gegeben werden muss, es sei denn, dass dies ausdrücklich ausgeschlossen wird. Der hier angebotene Artikel wird von mir privat verkauft. Die Angaben in dieser Artikel-Beschreibung wurden von mir wahrheitsgemäß und nach bestem Wissen und Gewissen gemacht. Ich übernehme keine Garantie. Ferner sind Sie im Gegensatz zum neuen Verbraucherschutzgesetz als Käufer damit einverstanden, keinen Gebrauch vom neuen Garantie-Gesetz zu machen. Darüber hinaus verzichtet der Käufer ausdrücklich auf Umtausch, Reklamationen oder Rückgabe des Artikels. Irrtümer vorbehalten.
@blubbll
blubbll / gist:34c143d1f2f9cbb565ddf0f99e8a6996
Created November 12, 2019 10:13
webapi basecontroller c#
using System;
using System.Web;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Routing;
using System.Web.Http.WebHost;
using System.Web.Routing;
using System.Web.SessionState;
namespace filetransfer
@blubbll
blubbll / Word.bat
Last active November 12, 2019 08:29
Word-ungeschützter Modus
@echo off
set title=Word-Dokument
::Übergebenen Dateinamen holen
set param=%0
::Aktueller Ordner
cd /d %~dp0
::TMPDIR
set tmp=tmp>nul 2>&1
IF not exist %tmp% (mkdir %tmp%)
del /q /s %tmp%\*