Skip to content

Instantly share code, notes, and snippets.

View ikolomiko's full-sized avatar
:dependabot:
Hit 'em where it GHz!

İlker AVCI ikolomiko

:dependabot:
Hit 'em where it GHz!
View GitHub Profile
@ikolomiko
ikolomiko / pyinstaller.md
Created October 14, 2023 20:21
How to decompile pyinstaller executables

How to decompile PyInstaller executables

This tutorial is aimed for decompiling binaries packed up using PyInstaller.

The best(?) way to identify a pyinstaller binary is by checking the strings output of the binary to see if anything related to Python is in there. The Python version could be identified from the strings output as well. For instance, an output containing the string "6python310.dll" implies the Python version used to build the executable is 3.10.

  1. First things first, set up a virtual environment with venv. If the Python version used to build the executable is known, use that version of Python in the shell.
# Switch to the required Python version
pyenv install 
@ikolomiko
ikolomiko / dtp-toggle.sh
Last active March 26, 2022 17:21
dtp-toggle | A script to toggle between a panel-based (dash-to-panel) layout and a dock-based (dash-to-dock) layout for Gnome desktop
#!/usr/bin/env bash
cd $HOME/.local/share/gnome-shell/extensions/workspace-indicator@gnome-shell-extensions.gcampax.github.com/
case $1 in
"on")
sed -i 's/width: 40px/width: 45px/g' stylesheet.css
sed -i 's/padding: 4px 0/padding: 10px 0/g' stylesheet.css
dconf write /org/gnome/shell/extensions/blur-my-shell/blur-panel true
gnome-extensions disable dash-to-dock@micxgx.gmail.com
@ikolomiko
ikolomiko / ikobot_hacettepe_ydyo.py
Last active November 30, 2021 16:50
Checks Hacettepe YDYO's website and sends an email if there's a new announcement
#!/usr/bin/env python3
import requests, smtplib
from email.message import EmailMessage
from bs4 import BeautifulSoup
def send_mail(mailbody):
sender_email = "your@gmail.com" # Enter your gmail address
receiver_email = "receiver@mail.com" # Enter receiver address
password = "your password here" # Enter your gmail password
@ikolomiko
ikolomiko / osym_checker.sh
Last active November 11, 2021 05:30
Ösym sonuç açıklama sistemini kontrol eden script
#!/usr/bin/env bash
# Functions
check_website () {
# change the cmbYil below properly
# do NOT edit or remove the cookie or any viewstate parameter.
curl --silent --location --request POST 'https://sonuc.osym.gov.tr/SonucSec.aspx' \
--header 'Cookie: NSC_TPOVD_TTM=ffffffff090e9c9b45525d5f4f58455e445a4a423660' \
--form 'cmbYil="2021"' \
--form 'cmbSinavTipi="17"' \
@ikolomiko
ikolomiko / xorg.conf
Created July 7, 2021 11:17
Xorg optimus configuration for laptops with Intel iGPU and Nvidia dGPU
# This configuration sets Intel GPU as primary and allows the use of Nvidia GPU when needed. Also fixes the screen tearing issue
# Tested on Fedora 34 with Gnome 40.1, Linux 5.12.13, Nvidia driver version 465.31
# Original config: https://gist.github.com/GMLudo/c94782b15897469b0de9
# File location: /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
@ikolomiko
ikolomiko / 20-intel-graphics.conf
Created June 15, 2021 16:37
Intel HD Graphics screen tearing fix
# File location: /etc/X11/xorg.conf.d/20-intel-graphics.conf
Section "Module"
Load "dri3"
EndSection
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
# Change "3" to "false" on the line below if it doesn't work