Skip to content

Instantly share code, notes, and snippets.

View koraysaritas's full-sized avatar

Koray Sarıtaş koraysaritas

View GitHub Profile
@koraysaritas
koraysaritas / tfs-checkout-sample.bat
Created September 30, 2019 09:50 — forked from glombard/tfs-checkout-sample.bat
TFS checkout files from a batch file
@echo off
setlocal EnableExtensions
set tfuser=glombard
set tflogin=/login:DOMAIN\%tfuser%,password
set tfworkspace=TFSWorkspace
set tfdir=C:\temp\MyWorkspace
set tfsource=$/PROJ/Source
set tfurl=http://127.0.0.1:8080/tfs/TEAM/
@koraysaritas
koraysaritas / tfs-checkout-sample.bat
Created September 30, 2019 09:50 — forked from glombard/tfs-checkout-sample.bat
TFS checkout files from a batch file
@echo off
setlocal EnableExtensions
set tfuser=glombard
set tflogin=/login:DOMAIN\%tfuser%,password
set tfworkspace=TFSWorkspace
set tfdir=C:\temp\MyWorkspace
set tfsource=$/PROJ/Source
set tfurl=http://127.0.0.1:8080/tfs/TEAM/
@koraysaritas
koraysaritas / eventListener.js
Created July 24, 2019 14:11 — forked from shayanb/eventListener.js
simple NodeJS app to display triggered events on a smart contract
// This is a simple NodeJS app to display triggered events on a smart contract
// you need your contract ABI and deployed address and also a synced geth running
// github.com/shayanb
var optionsABI = [YOUR_CONTRACT_ABI]
var contractAddress = "0xYOUR_CONTRACT_ADDRESS"
var Web3 = require('web3');
@koraysaritas
koraysaritas / mac-clear-icon-cache.sh
Created July 12, 2019 19:59 — forked from ismyrnow/mac-clear-icon-cache.sh
Clear the icon cache on a Mac when you start seeing generic icons in Finder or the Dock
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder
@koraysaritas
koraysaritas / add.c
Created April 27, 2017 10:46 — forked from barosl/add.c
Function overloading in C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int addi(int a, int b) {
return a + b;
}
char *adds(char *a, char *b) {
char *res = malloc(strlen(a) + strlen(b) + 1);