Skip to content

Instantly share code, notes, and snippets.

View jlndk's full-sized avatar

Jonas Lindenskov Nielsen jlndk

View GitHub Profile
@Duckapple
Duckapple / ls.py
Last active February 5, 2019 13:21
ls.py - the *nix ls command in Python3 for use in Windows
"""
MIT License
Copyright (c) 2019 Simon Green Kristensen @Duckapple
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@TaranVH
TaranVH / cursor click visualizer.ahk
Created April 5, 2016 20:03
show clicks visually onscreen.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Size := 50, Color := "Red" ; settings
CoordMode, mouse, screen
Gui, -Caption +ToolWindow +AlwaysOnTop +LastFound
Gui, Color, %Color%
@v0lkan
v0lkan / nginx.conf
Last active May 16, 2024 08:32
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@optikalefx
optikalefx / Super Simple Ajax File Upload (XHR2).js
Last active April 4, 2021 15:12
Ajax File upload with jQuery and XHR2Sean Clark http://square-bracket.com
// Ajax File upload with jQuery and XHR2
// Sean Clark http://square-bracket.com
// xhr2 file upload
$.fn.upload = function(remote, data, successFn, progressFn) {
// if we dont have post data, move it along
if (typeof data != "object") {
progressFn = successFn;
successFn = data;
}