Skip to content

Instantly share code, notes, and snippets.

View ozkansen's full-sized avatar
:octocat:

Özkan ŞEN ozkansen

:octocat:
View GitHub Profile
@ozkansen
ozkansen / shell_plus.py
Last active March 12, 2019 20:50 — forked from lorne-luo/python_console_for_pycharm.py
django_extensions' shell_plus for Pycharm's python console
# Note : settings.py define in DEBUG_EXTENSIONS true
# add Pycharm -> Settings -> Django Console
# Shell Plus
try:
from django.conf import settings
from pprint import pprint
from django.core.management.color import no_style
if settings.DEBUG_EXTENSIONS:
from django_extensions.management.shells import import_objects
@ozkansen
ozkansen / goland64.vmoptions
Created March 21, 2019 11:00 — forked from halidaltuner/goland64.vmoptions
Performance tuning for Goland or other Jetbrains IDEs.
# custom GoLand VM options
-server
-Xms2g
-Xmx2g
-Xss16m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
Type Foundry Log
Thought it might be nice to share or maintain a log or list of foundries.
http://www.felicianotypefoundry.com/
http://www.fontsmith.com/fonts/
http://sudtipos.com/home
http://www.type-together.com/
http://fontfabric.com/
http://www.letterheadfonts.com/
http://thedaleguild.com/
@ozkansen
ozkansen / networkmanager-wifi-powersave.md
Created May 20, 2020 07:43 — forked from jcberthon/networkmanager-wifi-powersave.md
NetworkManager Wi-Fi powersaving configuration

NetworkManager WiFi Power Saving

NetworkManager supports WiFi powersaving but the function is rather undocumented.

From the source code: wifi.powersave can have the following value:

  • NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
  • NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
  • NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
@ozkansen
ozkansen / bind_socket.py
Created July 6, 2021 21:53 — forked from tuxfight3r/bind_socket.py
python tcp socket client / server examples
#!/usr/bin/python
import socket #for sockets
import sys #for exit
try:
#create an AF_INET, STREAM socket (TCP)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error, msg:
print 'Failed to create socket. Error code: ' + str(msg[0]) + ' , Error message : ' + msg[1]