Skip to content

Instantly share code, notes, and snippets.

@xoofx
xoofx / ResizeWithSkia.cs
Created October 20, 2016 14:54
Resize an image and draw some overlay text with SkiaSharp
// You need to configure your C# project with x86 or x64 platform (Tools\Configuration Manager\Create new Platform on the project)
// otherwise the native libSkiaSharp.dll will not get copied
using System;
using System.IO;
using SkiaSharp;
namespace TestSkia
{
class Program
{
@onjin
onjin / docker-compose.yml
Created September 5, 2016 09:17
example docker compose for postgresql with db init script
postgres:
image: postgres:9.4
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
@shmup
shmup / torrents.md
Last active July 5, 2025 22:03
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client:

@odan
odan / xampp_php7_xdebug.md
Last active June 4, 2025 12:43
Installing Xdebug for XAMPP
@mistic100
mistic100 / Mediakeys.ahk
Last active May 13, 2025 17:00
Media keys shortcuts for AutoHotkey
; AutoHotkey Media Keys
^!Space::Send {Media_Play_Pause}
^!Left::Send {Media_Prev}
^!Right::Send {Media_Next}
^!NumpadMult::Send {Volume_Mute}
^!NumpadAdd::Send {Volume_Up}
^!NumpadSub::Send {Volume_Down}
@mihai-stancu
mihai-stancu / Debug.Dump
Created April 22, 2015 07:27
Debugging class to print out the structured contents of C# objects similar to PHP's print_r or var_dump.
#if DEBUG
using System;
using System.Collections;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
public class Debug
{
@davidfowl
davidfowl / dotnetlayout.md
Last active June 29, 2025 14:46
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@0xF1o
0xF1o / ssh.cs
Last active August 6, 2024 19:59
ssh.net Example - Keybased Authentication, File Upload, Shell Commands
/*
get SSH.NET (BSD License: http://sshnet.codeplex.com/license)
with NuGet:
>Install-Package SSH.NET -Version 2013.4.7
or just get the dll from here: http://j.mp/sshNet
*/
using System;
@emeeks
emeeks / gexfd3.css
Last active May 1, 2020 00:31
GEXF D3 Simple Example
#modal {
position:fixed;
left:150px;
top:20px;
z-index:1;
background: white;
border: 1px black solid;
box-shadow: 10px 10px 5px #888888;
display: none;
}