Skip to content

Instantly share code, notes, and snippets.

View mrtrkmn's full-sized avatar
☁️
working

Ahmet Türkmen mrtrkmn

☁️
working
View GitHub Profile
@mrtrkmn
mrtrkmn / example.ps1
Created December 6, 2023 00:56
testing out some stuff
# Specify the URL of the EXE file
$url = 'https://github.com/git-for-windows/git/releases/download/v2.43.0.windows.1/Git-2.43.0-64-bit.exe'
# Specify the local path where you want to save the downloaded file
$outputPath = 'C:\Temp\yourfile.exe'
# Download the file
Invoke-WebRequest -Uri $url -OutFile $outputPath
# Start the installation silently
@mrtrkmn
mrtrkmn / add-to-hosts-to-block-profiles.md
Created March 30, 2023 21:19
In case, MAC has company profiles installed and Apple tries to check on it, then blocking following domains would be necessary to get rid of unwanted notifications.
sudo cat <<EOF >>/etc/hosts
0.0.0.0 iprofiles.apple.com
0.0.0.0 mdenrollment.apple.com
0.0.0.0 deviceenrollment.apple.com
0.0.0.0 gdmf.apple.com
EOF

Keybase proof

I hereby claim:

  • I am mrtrkmn on github.
  • I am mrturkmen (https://keybase.io/mrturkmen) on keybase.
  • I have a public key ASCh_rJjFqHsM4GM749LtG3NFd1Ol4dx_ydVTks25sQXlgo

To claim this, I am signing this object:

@mrtrkmn
mrtrkmn / company-search-databases.md
Last active February 8, 2023 11:59
list of databases/places to search information about companies
@mrtrkmn
mrtrkmn / list
Created October 29, 2022 18:33
The Definitive C++ Book Guide and List
https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
@mrtrkmn
mrtrkmn / connect-eduroam-lrz-bavarian.py
Last active August 9, 2022 08:46
script to connect eduroam wifi at TUM ( LINUX ONLY ) - refer to https://doku.lrz.de/display/PUBLIC/eduroam
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
* **************************************************************************
* Contributions to this work were made on behalf of the GÉANT project,
* a project that has received funding from the European Union’s Framework
* Programme 7 under Grant Agreements No. 238875 (GN3)
* and No. 605243 (GN3plus), Horizon 2020 research and innovation programme
* under Grant Agreements No. 691567 (GN4-1) and No. 731122 (GN4-2).
* On behalf of the aforementioned projects, GEANT Association is
@mrtrkmn
mrtrkmn / linux-commands.sh
Last active August 2, 2022 09:30
Handy Linux Command(s)
#!/bin/bash
sudo kill -9 $(pgrep code) # kills code process through terminal
## START SSH-AGENT FOR PASSWORD PROTECTED PRIVATE KEYS
## TO BE ACCEPTED WITHOUT TYPING PASS AT EACH TIME
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
####################
@mrtrkmn
mrtrkmn / dev-local-domain.md
Created June 3, 2022 13:21
.dev local domain cannot be used without HTTPS redirection

The main reason is explained in this reply on Stackoverflow here: https://stackoverflow.com/questions/25277457/google-chrome-redirecting-localhost-to-https

My problem came from having a .dev domain, which was apparently recently registered as a gTLD and put in a commit to Chrome Canary. I found this out from a recent post I came across as I searched for my problem. If you have the same problem I do, it appears that the best solution is to change your domain to be something other than .dev. The article suggested .test with a potential solution of .localhost later down the road (via this proposal).

@mrtrkmn
mrtrkmn / dnsmasq OS X.md
Created June 2, 2022 00:42 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install