Skip to content

Instantly share code, notes, and snippets.

View xmesaj2's full-sized avatar
🆗

Mesaj xmesaj2

🆗
View GitHub Profile
@h0wl
h0wl / edge_crash2.html
Last active November 4, 2015 17:42
Edge Crash No Interaction
<!-- based on https://connect.microsoft.com/IE/feedback/details/1683347/ms-edge-combination-of-iframe-anchor-hash-navigation-and-history-state-crashes-the-browse -->
<!doctype html>
<html>
<head>
<script>
function boom() {
var iframe = document.getElementById('iframe1');
iframe.src = "http://bing.com";
iframe.src += "";
document.location.href = '#';
// ==UserScript==
// @name GreenIsBad
// @namespace GreenIsBad
// @version 0.2
// @description Ukrywa wpisy/komentarze zielonek za spojlerami
// @author Feuer
// @match http://wykop.pl/*
// @match http://www.wykop.pl/*
// @grant none
// ==/UserScript==
@TimHess
TimHess / CertHelpers.cs
Created December 24, 2019 18:50
Postgres Client Certs
using Microsoft.Extensions.Configuration;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Security;
using System.IO;
using System.Security.Cryptography.X509Certificates;
using System.Text;
namespace PostgreEFCore
@kevnord
kevnord / Dockerfile
Last active April 25, 2020 08:38
Debugging .NET Core in Docker Container with Visual Studio Code. Based on https://github.com/Microsoft/generator-docker/issues/130#issuecomment-287222915
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base
WORKDIR /app
EXPOSE 80
# DEBUG
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS debug
WORKDIR /app
@dermatologist
dermatologist / FileUpload.cs
Created July 24, 2017 21:06
ASP.Net Core Upload Multiple Files , Zip and Save as a byte array in database
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using System.IO;
using System.IO.Compression;
namespace MyNameSpace
{
@ingride
ingride / gist:7bb61483127d1f6d85a35d772b589090
Last active May 24, 2023 17:44
Return a String from C++ to WASM
// C++ bit . save it in an example.cpp file
#include "emscripten.h"
extern "C" {
inline const char* cstr(const std::string& message) {
char * cstr = new char [message.length()+1];
std::strcpy (cstr, message.c_str());
return cstr;
}
EMSCRIPTEN_KEEPALIVE
const char* getAMessage() {
@adulau
adulau / ghidra-community.md
Last active November 11, 2023 13:16
Ghidra community - collection
@sr229
sr229 / install-anbox-dkms-fedora.sh
Last active December 21, 2023 17:59
Automated Script to Install Anbox Ashmem and Binder to WSL2 Linux Kernel
#!/bin/bash
set -o pipefail
KERNEL_WORKING_DIRECTORY="/usr/src"
KERNEL_VERSION=$(uname -r)
REQUIRED_DEPENDENCIES="git bison flex elfutils-libelf-devel openssl-devel"
KERNEL_SRC_DIR="$KERNEL_WORKING_DIRECTORY/WSL2-Linux-Kernel-$(uname -r)"
echo "Warning: This script has to be run on sudo permissions. If you encounter issues please report it immediately."
@amaxwell01
amaxwell01 / interviewitems.MD
Created September 15, 2012 14:17
My answers to over 100 Google interview questions

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go
@LayZeeDK
LayZeeDK / angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Last active March 17, 2024 13:40
Angular CLI, Angular, Node.js, TypeScript, and RxJS version compatibility matrix. Officially part of the Angular documentation as of 2023-04-19 https://angular.io/guide/versions
Angular CLI version Angular version Node.js version TypeScript version RxJS version
~16.0.0 ~16.0.0 ^16.13.0 || ^18.10.0 >=4.9.5 <5.1.0 ^6.5.5 || ^7.4.0
~15.2.0 ~15.2.0 ^14.20.0 || ^16.13.0 || ^18.10.0 >=4.8.4 <5.0.0 ^6.5.5 || ^7.4.0
~15.1.0 ~15.1.0 ^14.20.0 || ^16.13.0 || ^18.10.0 >=4.8.4 <5.0.0 ^6.5.5 || ^7.4.0
~15.0.5 ~15.0.4 ^14.20.0 || ^16.13.0 || ^18.10.0 ~4.8.4 ^6.5.5 || ^7.4.0
~14.3.0 ~14.3.0 ^14.15.0 || ^16.10.0 >=4.6.4 <4.9.0 ^6.5.5 || ^7.4.0
~14.2.0 ~14.2.0 ^14.15.0 || ^16.10.0 >=4.6.4 <4.9.0 ^6.5.5 || ^7.4.0
~14.1.3 ~14.1.3 ^14.15.0 || ^16.10.0 >=4.6.4 <4.8.0 ^6.5.5 || ^7.4.0
~14.0.7 ~14.0.7 ^14.15.0 || ^16.10.0 >=4.6.4 <4.8.0 ^6.5.5 || ^7.4.0
~13.3.0 ~13.3.0 ^12.20.2 || ^14.15.0 || ^16.10.0 >=4.4.4 <4.7.0 ^6.5.5 || ^7.4.0