Skip to content

Instantly share code, notes, and snippets.

View Dentrax's full-sized avatar
🎢
GNW's Not Wololooo!

Furkan TΓΌrkal Dentrax

🎢
GNW's Not Wololooo!
View GitHub Profile
@ctechols
ctechols / compinit.zsh
Last active June 25, 2025 13:13
Speed up zsh compinit by only checking cache once a day.
# On slow systems, checking the cached .zcompdump file to see if it must be
# regenerated adds a noticable delay to zsh startup. This little hack restricts
# it to once a day. It should be pasted into your own completion file.
#
# The globbing is a little complicated here:
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct.
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error)
# - '.' matches "regular files"
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours.
autoload -Uz compinit

Comparison of ASP.NET and Node.js for Backend Programming

We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.

Updates

This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):

  1. Koa.js no longer uses co-routines, it has switched to Babel's async/await. yield and await are used almost in the same way, so I see no point to rewrite the examples.
@mpatraw
mpatraw / p2p.c
Created October 22, 2014 18:10
Simple P2P example using ENet.
/*
* p2p.c
*/
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <enet/enet.h>
@cryptix
cryptix / vineScrape.go
Created August 27, 2014 12:31
extract a javascript object value from a html page using goquery and otto
package main
import (
"errors"
"log"
"os"
"github.com/PuerkitoBio/goquery"
"github.com/robertkrimen/otto"
)
@rxaviers
rxaviers / gist:7360908
Last active July 17, 2025 00:41
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@ppmathis
ppmathis / screenshot.sh
Last active August 4, 2018 18:51
Linux screenshot script, can be used together with a custom shortcut. Based on notify-send, shutter, scp and xclip.
#!/bin/sh
# Options
RANDOM_CHARS=$(< /dev/urandom tr -dc a-z0-9 | head -c10)
FILE_DESTINATION='/home/pmathis/Pictures/Screenshots'
FILE_FORMAT=$RANDOM_CHARS'_%Y-%m-%d_%H.%M.%S.png'
SSH_ALIAS='trinity'
SSH_FOLDER='/home/pmathis/public/screens.snapserv.net'
HTTP_URL='https://screens.snapserv.net'
SUCCESS_ICON='/usr/share/icons/gnome/32x32/status/stock_dialog-info.png'
FAILURE_ICON='/usr/share/icons/gnome/32x32/status/stock_dialog-error.png'
@ewencp
ewencp / ela.py
Created August 15, 2012 05:52
Quick, simple implementation of Error Level Analysis
#!/usr/bin/env python
# This is a really simple implementation of ELA as described in
# http://blackhat.com/presentations/bh-dc-08/Krawetz/Whitepaper/bh-dc-08-krawetz-WP.pdf
# You shouldn't actually use it, or at least read the paper carefully
# and implement more of the techniques before drawing any conclusions.
from PIL import Image, ImageChops, ImageEnhance
import sys, os.path