Skip to content

Instantly share code, notes, and snippets.

View caglartoklu's full-sized avatar

Çağlar Toklu caglartoklu

View GitHub Profile
@caglartoklu
caglartoklu / python_install_for_winpython.bat
Last active July 10, 2020 18:16
A .bat file to install Python packages I mostly use for WinPython.
REM Tested with WinPython:
REM https://winpython.github.io/
REM Winpython32-3.7.4.1.exe
REM
REM packages already installed in WinPython:
REM python -m pip install pylint
REM python -m pip install pep8
REM python -m pip install autopep8
REM python -m pip install pycodestyle
REM python -m pip install pyinstaller
@caglartoklu
caglartoklu / install_packages_for_ubuntu_on_windows.sh
Created July 29, 2019 14:20
Install packages for Ubuntu on Windows (Bash on Windows)
# Shell script to prepare an Ubuntu 18.04 LTS for development on Windows 10.
# After downloading the file, uncomment the sections you like.
# Tested with Ubuntu on Windows.
sudo apt update
# __________ utilities
sudo apt install mc p7zip-full p7zip-rar arj
sudo apt install curl tofrodos
@caglartoklu
caglartoklu / install_packages_for_ubuntu.sh
Last active August 1, 2019 08:25
Install packages for Ubuntu
# Shell script to prepare an Ubuntu 18.04 LTS for development.
# After downloading the file, uncomment the sections you like.
# Tested with Zorin OS 15 Core 64-bit.
# __________ remove some unnecessary apps for development
sudo apt remove gnome-mahjongg gnome-mines gnome-sudoku aisleriot quadrapassel
# __________ utilities
@caglartoklu
caglartoklu / bin_cleaner.bat
Last active July 2, 2019 06:36
Deletes "bin" and "obj" folders recursively from .NET projects.
REM Introduction to bin_cleaner.bat
REM Deletes "bin" and "obj" folders recursively from .NET projects.
REM This is a simple batch file to DELETE "bin" and "obj" folders
REM for Windows.
REM I use this to really "clean" .NET projects.
REM Usage
REM Copy this to the root of your solution folder.
REM Warning
REM Do not run this in your desktop or documents folder.
REM It will delete all the "bin" and "obj" folders under that folder
@caglartoklu
caglartoklu / workonw.bat
Last active April 6, 2020 13:29
Makes it easier to switch to Python virtual environments.
@ECHO OFF
REM Introduction to workonw.bat
REM Makes it easier to switch to Python virtual environments.
REM Another purpose is simplicity.
REM This is Windows only.
REM
REM This is a simple alternative to feature packed virtualenvwrapper:
REM https://virtualenvwrapper.readthedocs.io/en/latest/command_ref.html
REM
@caglartoklu
caglartoklu / Vagrantfile
Last active July 12, 2019 14:17
Vagrantfile for development on Ubuntu with vim, Python, Node.js(npm, angular-cli, yarn), Docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
# #############################
# R E A D M E
#
#
# # Requirements
#
@caglartoklu
caglartoklu / source_file_if_exists.vim
Last active July 14, 2017 06:51
source a file if exists in VimL #vim
try
source $HOME/_vimrc_local
catch /^Vim\%((\a\+)\)\=:E484/
endtry
@caglartoklu
caglartoklu / check_on_windows.vim
Created July 14, 2017 06:47
check if on windows on vim #vim
if has("win16") || has("win32") || has("win64")
else
endif
@caglartoklu
caglartoklu / pip_upgrade_all.py
Last active July 2, 2019 16:05
upgrade all #python packages using #pip
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Traverses all the Python packages and upgrades them.
"""
from __future__ import print_function
from __future__ import unicode_literals