Skip to content

Instantly share code, notes, and snippets.

View erkantaylan's full-sized avatar
🫖

erkan erkantaylan

🫖
  • TURKEY
  • 04:47 (UTC +03:00)
View GitHub Profile
@jacurtis
jacurtis / about.blade.php
Created February 4, 2016 17:05
Build a Blog with Laravel Part 5.5 File Download
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Laravel Blog</title>
@brahmlower
brahmlower / koel-installation-docs_debian8.md
Last active June 8, 2021 09:03
This is installation documentation for installing Koel on Debian 8.

Installation on Debian 8

This is installation documentation for installing Koel on Debian 8.

Install Dependancies

Most packages can be installed via apt-get.

user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl

Composer

@DanielSWolf
DanielSWolf / Program.cs
Last active April 17, 2025 05:36
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);
@sajirdalas
sajirdalas / Tutorial 10
Created April 10, 2015 12:16
Code written during tutorial 10
//main.js
var cm = require("sdk/context-menu");
var item = cm.Item({
label: "Search on google",
data: "MyId",
//context: cm.PageContext()
//context: cm.URLContext(["*.mozilla.org","*.reddit.com"])
//context: cm.SelectionContext()
@sajirdalas
sajirdalas / Tutorial 9
Created April 10, 2015 10:35
Code examples for Tutorial 9
//silly.js
function sumNumbers(a, b){
return a+b;
}
function sumNumbersAsync(a, b, callback){
var result = a + b;
callback(result);
}
@CoffeePirate
CoffeePirate / se_server_linux.md
Last active April 24, 2025 14:39
A quick guide how to setup Space Engineers Dedicated server on a Linux box with Wine

Ubuntu 14.04/14.10 SpaceEngineers Dedicated Server

Here's a quick guide how to run SpaceEngineers Dedicated Server on Ubuntu with Wine

Requirements

  • A copy of Space Engineers
  • A Windows box
  • A Linux box running Ubuntu 14.04 or 14.10 (It'll probably work on other distros, YMMV)

Step #1: Install & configure Wine1.6 and dependencies

@prakhar1989
prakhar1989 / richhickey.md
Last active January 30, 2025 06:39 — forked from stijlist/gist:bb932fb93e22fe6260b2
richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

@lsd
lsd / dota-2-console-commands.markdown
Last active January 5, 2024 13:08
DOTA 2 useful console commands

DOTA2 console commands

The most useful command here is probably dota_force_right_click_attack 1
More will be added as they come. The essentials DO NOT require sv_cheats
and as far as I know do not violate any official competition rules.

Turn on console

  • In steam, right cilck on "Dota 2" > properties
  • Click on Set Launcher Options and add -console
  • Save and start game. The default hotkey is ```` (backtick)
@ekwus
ekwus / MainViewModel
Created September 10, 2013 09:05
Example of binding MahApps.Metro Flyout IsOpen using MVVM Light
using System;
using System.Collections.ObjectModel;
using System.Threading;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using TrinityToolkit;
using TrinityPlayer.Model;
@cheynewallace
cheynewallace / NetStatPortsAndProcessNames.cs
Last active June 19, 2025 15:47
C# Get Active Ports and Associated Process Names. This code will parse the output from a "netstat -a -n -o" and retrieve a list of active listening ports, along with the associated PID. The PID is then resolved to a process name so we can see exactly which port is attached to which process.
// ===============================================
// The Method That Parses The NetStat Output
// And Returns A List Of Port Objects
// ===============================================
public static List<Port> GetNetStatPorts()
{
var Ports = new List<Port>();
try {
using (Process p = new Process()) {