Skip to content

Instantly share code, notes, and snippets.

public static void Main(string[] args){
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "tester.txt");
using(var eve = new AutoResetEvent(false))
using(var file = new FileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.Delete)){
Task.Run(()=>{
File.Delete(path);
if(File.Exists(path))
Console.WriteLine("File Exists");
eve.Set();
});
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions -EnableShowFullPathInTitleBar
Disable-BingSearch
Install-WindowsUpdate
Enable-RemoteDesktop
Set-TaskbarOptions -Size Small -Lock -Dock Right -Combine Never
cinst msysgit
cinst tortoisegit
cinst poshgit
cinst nsis
@kellyelton
kellyelton / taco.md
Last active February 29, 2016 20:33

prosecutor: "On the night of Aug 25, 2015, what operating system were you using?"

defendant: "...uhh...ww...windows..."

prosecutor: "WHICH windows"

defendant: mumbles "xp"

image

@kellyelton
kellyelton / ClickSoundService.cs
Last active December 16, 2015 17:05
MouseClick Drum
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Media;
namespace DevTools.Services
{

How to Pull Request

We will only accept pull requests if they're in they follow our specific guidelines, so please follow this guide in order to submit a pull request to us.

Sign the CLA

We absolutely will no accept any new code unless you sign our CLA

What Are You Trying to Contribute

@kellyelton
kellyelton / CLA.md
Last active October 3, 2017 13:32
CLA

Harmony Individual Contributor License Agreement

Thank you for your interest in contributing to OCTGN ("We" or "Us").

This contributor agreement ("Agreement") documents the rights granted by contributors to Us. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

1. Definitions

  • "You" means the individual who Submits a Contribution to Us.
@kellyelton
kellyelton / global_area.php
Created December 18, 2014 19:55
ConcreteSnippit
public function display() {
$c = Page::getCurrentPage();
if(!$c->cID)
{
$c = Page::getByPath("/page_not_found");
if(!$c->cID)
echo "1";
}
parent::getOrCreate($c, $this->arHandle, 1);
parent::display($c);
@kellyelton
kellyelton / CONTRIBUTING.md
Created September 8, 2014 22:33
OCTGN CLA

##Definitions

  • I - The Contributor
  • Submission - Transferring materials to the OCTGN Team
  • Materials - Code, images, documents, or any data included during submission.
  • OCTGN Team - Kelly Elton and/or the current owners of the main OCTGN Repository https://github.com/kellyelton/OCTGN

##Agreement I, agree that upon submitting materials to the OCTGN Team, I immediate transfer all rights to said IP to the OCTGN Team. I also give the OCTGN Team the right to save the username/name/handle I used when submitting the IP, and associate with the IP.

I also agree that I am responsible(legally or otherwise) for materials that I submit, and I will not submit any materials that I do not have the explicit rights to submit. I also understand that I do not have the right to make any agreements with the owners of said materials on behalf of the OCTGN Team.

@kellyelton
kellyelton / .bashrc
Created August 28, 2014 17:07
.bashrc
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
Green="\[\033[0;32m\]" # Green
Yellow="\[\033[0;33m\]" # Yellow
Blue="\[\033[0;34m\]" # Blue
Purple="\[\033[0;35m\]" # Purple
@kellyelton
kellyelton / RedditPost.txt
Last active August 29, 2015 14:05
RedditPost
Hello everybody! We are the OCTGN development team, and we looking towards the community to help improve the OCTGN experience for everyone. We regularly watch the OCTGN chatter on Twitter, Reddit, OCTGN's support forums and built-in chatroom, as well as on several other popular sites and forums, and we would like to get some feedback from everyone.
While we regularly release updates to OCTGN to address bugs and issues, we try to create big, splashy updates at every 10% interval of our funding campaign. We have a few ideas for updates between now and 100%, but we decided we are interested in feedback on what new features you all would like to see, starting with the 60% update.
We have various ties into the community, including the /r/octgn subreddit. Here are some other locations where we are active:
- Twitter: Follow @octgn_official for important update, including server status. Our tweets will always appear in the center column of the OCTGN login window. We also follow the #octgn hashtag.
- http://hel