Skip to content

Instantly share code, notes, and snippets.

View iegrsy's full-sized avatar
🏠
Working from home

Ibrahim Ethem Gursoy iegrsy

🏠
Working from home
  • 12:30 (UTC +03:00)
View GitHub Profile
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">
<Id>ae1c65ff-ef39-47a1-9f1f-56400a39e2a8</Id>
<Version>1.0.0.0</Version>
<ProviderName>MyDLP</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="MyDLP Outlook Plugin"/>
<Description DefaultValue="A template to get started."/>
<IconUrl DefaultValue="https://mydlpoutlook.z13.web.core.windows.net/assets/icon-64.png"/>
<HighResolutionIconUrl DefaultValue="https://mydlpoutlook.z13.web.core.windows.net/icon-128.png"/>
@iegrsy
iegrsy / SimpleHttpServer.cs
Last active June 30, 2020 09:03 — forked from augustoproiete/SimpleHttpServer.cs
C# Based HttpListener Static File Web Server
using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Net;
using System.IO;
using System.Threading;
using Westwind.Utilities;
using System.IO.Compression;
using System.Diagnostics;
@iegrsy
iegrsy / AndroidManifest.xml
Last active October 10, 2019 14:13
Nonstop background service
<manifest
...
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
...
<service
android:name="com.sparsetechnology.testpull_pushnotification.NotificationCheckService"
android:enabled="true" />
@iegrsy
iegrsy / UIHelper.java
Created March 29, 2019 07:26
UI slide helper
public static class UIHelper {
public static void toggleViewLeftRight(View view) {
if (view.getVisibility() != View.VISIBLE)
slideToRight(view);
else
slideToLeft(view);
}
public static void toggleViewUpDown(View view) {
if (view.getVisibility() != View.VISIBLE)
@iegrsy
iegrsy / CameraPreviewFragment.java
Last active March 27, 2019 08:00
Android Camera Preview Fragment
import android.content.Context;
import android.graphics.ImageFormat;
import android.hardware.Camera;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.Surface;
@iegrsy
iegrsy / Demo.txt
Created September 17, 2018 15:16
dotnetcore app for grpc
// 1- Boş bir konsol uygulaması oluşturma
~$ dotnet new console -o DemoCameraGrpc
// 2- Uygulama dizinine geçiş
~$ cd DemoCameraGrpc
// 3-
~$ dotnet restore
// 4- Grpc araçlarını kurma işlemi
@iegrsy
iegrsy / radiostream.sh
Created December 12, 2017 06:43
Radio for linux with vlc
#!/bin/bash
# radio stations source:
# http://www.radiosure.com/stations/
if [[ $1 == "stop" ]]; then
#statements
pkill vlc;
exit;
fi