Skip to content

Instantly share code, notes, and snippets.

View icebreaker's full-sized avatar
Code Gardening

Mihail Szabolcs icebreaker

Code Gardening
View GitHub Profile
icebreaker /
Created March 29, 2024 20:56 — forked from SchizoDuckie/
Build an OSX .pkg installer from Linux using mkbom and xar
# change the values below to match your system.
# target the BUILD_DIR to output from an build process. nwjs-shell-builder recommended!
# BASE_DIR is the target directory for this script, where files will be gathered and packaged to
icebreaker / clear-screen.php
Created November 22, 2012 09:30
PHP - clear screen recipe
function cls()
echo "hello world";
icebreaker / revprox.go
Created May 27, 2023 19:33 — forked from JalfResi/revprox.go
Simple reverse proxy in Go
package main
func main() {
icebreaker / download.cpp
Created November 28, 2022 08:47 — forked from nem0/download.cpp
Donwload file on windows without 3rd party
#include <urlmon.h>
#pragma comment(lib, "urlmon.lib")
bool download(const char* url, OutputMemoryStream& blob) {
IStream* stream = nullptr;
if (S_OK != URLOpenBlockingStream(nullptr, url, &stream, 0, nullptr)) {
return false;
char buffer[4096];
ULONG read = 0;
icebreaker / main.cpp
Created August 4, 2022 10:47 — forked from YukiSnowy/main.cpp
example SDL2 Direct3D9 application
// g++ *.cpp -o d3d9 -lmingw32 -lSDL2main -lSDL2 -I/dxsdk/include -L/dxsdk/lib -DUNICODE -ld3d9 -ld3dx9
#include <iostream>
using namespace std;
#include <SDL2/SDL.h>
#include <windows.h>
<configuration xmlns:patch="">
<event name="publish:end:remote">
<handler type="MyApp.Publishing.APICaller, MyApp.Publishing" method="CallAPIMethod" />
using Sitecore.Caching;
using Sitecore.Caching.Generics;
using Sitecore.Configuration;
using Sitecore.Diagnostics;
using Sitecore.Sites;
using System;
using System.Collections;
namespace MyApp.Publishing
icebreaker / GlslSobel.frag
Created December 21, 2021 19:18 — forked from Hebali/GlslSobel.frag
GLSL Fragment Shader: Sobel Edge Detection
// Sobel Edge Detection Filter
// GLSL Fragment Shader
// Implementation by Patrick Hebron
uniform sampler2D texture;
uniform float width;
uniform float height;
void make_kernel(inout vec4 n[9], sampler2D tex, vec2 coord)
icebreaker / ConvertToObj.cs
Created August 30, 2021 17:06 — forked from NewEXE/ConvertToObj.cs
Export Unity Game Objects to Wavefront OBJ
// On the basis:
// How to use:
// Put file to Assets/Editor folder
// then select GameObject -> Export selected objects
// in Unity's main panel.
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
icebreaker / carrierwave.rb
Created September 30, 2011 08:15
Carrierwave initializer
CarrierWave.configure do |config|
if Rails.env.development? = :file
else = :s3
config.s3_access_policy = :public_read
config.s3_access_key_id = 'ACCESS_KEY'
config.s3_secret_access_key = 'SECRET_ACCESS_KEY'
config.s3_headers =