Skip to content

Instantly share code, notes, and snippets.

@DorukUlucay
DorukUlucay / cipher.cs
Last active February 8, 2017 13:35
cipher decipher sample
public string Cipher(string RawData, int Key)
{
StringBuilder CipheredText = new StringBuilder();
byte[] RawBytes = UnicodeEncoding.UTF8.GetBytes(RawData);
int keyLen = Key.ToString().Length;
int keyPos = 0;
foreach (byte rawByte in RawBytes)
@DorukUlucay
DorukUlucay / nationalities.sql
Last active October 3, 2016 19:20
nationalities, ready to insert
INSERT INTO nationality ([description])
VALUES ('Afghan');
INSERT INTO nationality ([description])
VALUES ('Albanian');
INSERT INTO nationality ([description])
VALUES ('Algerian');
INSERT INTO nationality ([description])
VALUES ('American');
INSERT INTO nationality ([description])
VALUES ('Andorran');
@DorukUlucay
DorukUlucay / _info.md
Last active September 7, 2018 10:41
some helpful javascript snippets

Some helpful Javascript Snippets. Click on it to see all.

Bazı faydalı Javascript kod parçacıkları. Hepsini görmek için tıklayın.

@DorukUlucay
DorukUlucay / index.html
Created November 23, 2017 17:06
js promises
<script>
var aCallWithDelayOf_1secs = new Promise(function (resolve, reject) {
setTimeout(function () {
resolve('Success!');
}, 1000);
// reject('Failure!');
});
var aCallWithDelayOf_2secs = new Promise(function (resolve, reject) {
setTimeout(function () {
@DorukUlucay
DorukUlucay / gp.bat
Last active April 10, 2024 12:26
Retrieve Password of an App Pool identity account
echo off
REM Get info of given app pool
color a
set /p apppool= Which one ?
cd \
cd C:\Windows\System32\inetsrv
appcmd.exe list apppool %apppool% /text:* | find "password"
PAUSE
@DorukUlucay
DorukUlucay / _001.js
Created December 1, 2017 06:56
Adevnt Of Code
//https://adventofcode.com
var inp = "()()(()()()(()()((()((()))((()((((()()((((()))()((((())(((((((()(((((((((()(((())(()()(()((()()(()(())(()((((()((()()()((((())((((((()(()(((()())(()((((()))())(())(()(()()))))))))((((((((((((()())()())())(())))(((()()()((((()(((()(()(()()(()(()()(()(((((((())(())(())())))((()())()((((()()((()))(((()()()())))(())))((((())(((()())(())(()))(()((((()())))())((()(())(((()((((()((()(())())))((()))()()(()(()))))((((((((()())((((()()((((()(()())(((((()(()())()))())(((()))()(()(()(()((((()(())(()))(((((()()(()()()(()(((())())(((()()(()()))(((()()(((())())(()(())())()()(())()()()((()(((()(())((()()((())()))((()()))((()()())((((()(()()(()(((()))()(()))))((()(((()()()))(()(((())()(()((()())(()(()()(()())(())()(((()(()())()((((()((()))))())()))((()()()()(())()())()()()((((()))))(()(((()()(((((((())()))()((((()((())()(()())(())()))(()(()())(((((((())))(((()))())))))()))())((())(()()((())()())()))))()((()()())(())((())((((()())())()()()(((()))())))()()))())(()()()(()((((((()()))())())
@DorukUlucay
DorukUlucay / Helper.cs
Created December 7, 2017 11:26
some useful code snippets
using System;
namespace FormUI
{
public class Helper
{
private static string stampFormat = "{0}{1}{2}T{3}{4}{5}";
public static string TimeStamp()
{

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@DorukUlucay
DorukUlucay / gist:d25c25919366bf6e77990ffb3d6ee847
Created January 19, 2018 07:27 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@DorukUlucay
DorukUlucay / dir_to_txt.md
Last active February 14, 2018 13:59
windows cmd line numaraları

windows cmd line'da bir klasörün tüm içeriğini aynı klasörde bulunan bir "x.txt" adlı bir dosyaya yazmak için:

  • dir >> x.txt

kodunun çalıştırılması yeterlidir.