Skip to content

Instantly share code, notes, and snippets.

View omergulen's full-sized avatar
🚩
pushing the limits

Ömer omergulen

🚩
pushing the limits
View GitHub Profile
@UrsaDK
UrsaDK / macOS appearance and CLI tools.md
Last active February 26, 2026 21:17
Integrate terminal CLI tools with macOS appearance (Dark/Light mode).

MacOS dark mode & command line tools

  1. Beta version of iTerm2 has built-in support for system appearance and will change themes in sync with macOS;
  2. Setup dark-mode-notify to launch on start and call a custom shell script (eg: appearance-change.sh) when appearance changes;
  3. Update the script as required

NOTE:

  • neovim v0.8.0+ can issue self referencing commands. For example, try putting this into your init.lua to prevent nested vim instances when using built-in terminal:
    vim.env.EDITOR = string.format('nvim --server %s --remote --', vim.api.nvim_get_vvar('servername'))
/**
* MySQL Multi-Line Insert
* =======================
* See: https://gist.github.com/ProjectCleverWeb/d2362b082af1d7054ebfd464f202ec1b
*
* Notes:
* - I used a output buffer variable since in most languages variables are
* significantly faster than function calls and in this case the syntax for
* using a variable was both shorter and easier to read.
* - Table & column names are quoted to help improve compatibility, but in most
@ifyoumakeit
ifyoumakeit / github-conventional-comments.js
Last active January 15, 2026 05:03
GitHub Conventional Comments (instructions to install in comment below code)
(async function generateReplies(document) {
// https://conventionalcomments.org/#labels
const LABEL = {
praise: "praise",
nitpick: "nitpick",
suggestion: "suggestion",
issue: "issue",
todo: "todo",
question: "question",
thought: "thought",
@bradtraversy
bradtraversy / pipenv_cheat_sheet.md
Last active August 27, 2025 18:43
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@quinn-joyce
quinn-joyce / web-scraper-node-js.md
Last active February 24, 2022 23:21
Node web scraper with axios and cheerio

Node JS Web Scraper

I this is part of the first node web scraper I created with axios and cheerio. I took out all of the logic, since I only wanted to showcase how a basic setup for a nodejs web scraper would look.

const cheerio = require('cheerio'),
      axios = require('axios'),
      url = `<url goes here>`;
 

How to setup Shadowsocks on your Ubuntu server

Your school or company network may block the access to a few specific websites. To solve this problem, I'd highly recommend Shadowsocks, since it is the easiest proxy tool I've ever found, and it's FREE (of course iff you have your own server running).

First, ssh to your server, and make sure you have Python and pip installed. If you have Python but not pip, install it using the following command

$ sudo apt-get install python3-pip
@Abhey
Abhey / @Multiple Client Chat Description
Last active August 22, 2024 16:25
Multiple client chat system in C
It is an simple implementation of simple client server chat system where once client are connected to server,
then they can communicate with each other.
The client first needs to connect with the server and can then issue two commands -
1. GET - This command fetches the list of client's that are currently connected to server.
2. SEND (client number) (message) - SEND followed by client number which can be be used to send the meassage
to particular to that particular client number.
(please issue the complete send command in one go).
To run these program first run ChatServer.c and then run multiple instatnces of ChatServer.c .
@agentcooper
agentcooper / 0.README.md
Last active March 18, 2026 17:02
Telegram chat backup/export

How to use

  1. Login to https://web.telegram.org
  2. Copy-paste contents of telegram-scripts.js into JS console
  3. Run showContacts() to get the list of contacts with ids
  4. Run saveChat(userId) where userId is the id from step 3

Process can take a while, check console for progress. Occasionall FLOOD_WAIT errors are expected. Once done, browser will download the JSON file.

Motivation