Skip to content

Instantly share code, notes, and snippets.

View onuratci's full-sized avatar
🎯
Focusing

Onur Atci onuratci

🎯
Focusing
View GitHub Profile
@onuratci
onuratci / fedora_post_install.md
Created August 17, 2021 20:51 — forked from zobayer1/fedora_post_install.md
Fedora 34 Post Installation (For Developers). Things you should do after installing your new Fedora workstation.

Fedora 34 Post Installation (For Developers)

Things you should do after installing your new Fedora workstation.

Settings

Change Hostname

  • Method (a): from Settings -> About, change Device Name.
@onuratci
onuratci / ubuntu-development-environment-setup.sh
Last active May 4, 2021 11:22
Ubuntu development environment for java developers
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 48
gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items false
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true
sudo apt install docker.io maven gradle zip unzip openjdk-11-jdk openjdk-8-jdk
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
@onuratci
onuratci / adb-shell-p30-pro-bloatware-uninstall.sh
Last active June 22, 2022 21:05
huawei p30 pro bloatware uninstall script
adb devices
adb shell
pm uninstall -k --user 0 com.google.android.googlequicksearchbox
pm uninstall -k --user 0 com.google.android.apps.books
pm uninstall -k --user 0 com.google.android.apps.docs.editors.docs
pm uninstall -k --user 0 com.google.android.apps.docs.editors.sheets
pm uninstall -k --user 0 com.google.android.apps.docs.editors.slides
pm uninstall -k --user 0 com.google.android.apps.cloudprint
pm uninstall -k --user 0 com.google.android.apps.docs
@onuratci
onuratci / uninstall_vmware.sh
Created May 20, 2020 10:42 — forked from boneskull/uninstall_vmware.sh
completely uninstall vmware on mac
#!/usr/bin/env bash
# Usage: bash uninstall_vmware.bash
remove() {
entry="$1"
echo -ne "Removing \e[1;34m$entry\e[0m... "
sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log
if [[ ! -e "$entry" ]]; then
echo -e "\e[1;32mOK\e[0m"
@onuratci
onuratci / skype-for-business-uninstall.sh
Created May 20, 2020 10:39
skype for business uninstall script for OSX
#!/bin/sh
# Pull current logged in user into 'user' variable.
user=`ls -l /dev/console | cut -d " " -f 4`
# #2 Kill Lync & SfB
killall "Microsoft Lync"
killall "Skype for Business"
# #3 Delete the Lync & SfB applications
use Aws\Common\Aws;
// Create a service builder using a configuration file
$aws = Aws::factory('/path/to/my_config.json');
// Get the client from the builder by namespace
$client = $aws->get('Kinesis');
$result = $client->putRecords(array(
// Records is required
@onuratci
onuratci / install-proto.sh
Created February 20, 2018 13:17 — forked from samklr/install-proto.sh
Install Protobuf debian ...
#! /bin/bash
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar xzf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1
sudo apt-get update
sudo apt-get install build-essential
sudo ./configure
sudo make
sudo make check
sudo make install
@onuratci
onuratci / supervisord.service
Last active August 21, 2017 20:30 — forked from mozillazg/supervisord.service
install and configure supervisord on centos 7.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown
@onuratci
onuratci / gist:c49ea36d1bdaed974dea
Last active August 29, 2015 14:01
PHP Turkish Character Replacer Function
function biz_replace_tr_ch($str)
{
return str_replace("ğ", "g", str_replace("ü", "u", str_replace("ş", "s", str_replace("ç", "c", str_replace("ö", "o", str_replace("Ö", "O", str_replace("Ç", "C", str_replace("Ş", "S", str_replace("Ü", "u", str_replace("İ", "i", str_replace("ı", "i", $str)))))))))));
}
public @ResponseBody String getServiceResponse()
{
return "hello world";
}