Skip to content

Instantly share code, notes, and snippets.

View jploudre's full-sized avatar

Jonathan Ploudre jploudre

View GitHub Profile
@b0gdanw
b0gdanw / DisableBigSur.sh
Last active September 23, 2025 05:44
Disable Big Sur services
#!/bin/zsh
#Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
#Disabling unwanted services on macOS 11 Big Sur (11) and macOS Monterey (12)
#Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
#Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist
# user
TODISABLE=()
@dasgoll
dasgoll / gist:2f27ec2b703fbcb49a273d550d7865f8
Created January 31, 2019 09:50
Python send smtp email outlook
https://medium.freecodecamp.org/send-emails-using-code-4fcea9df63f
# import the smtplib module. It should be included in Python by default
import smtplib
# set up the SMTP server
s = smtplib.SMTP(host='smtp-mail.outlook.com', port=587)
s.starttls()
s.login('jameel@outlook.com', 'password')
===
import smtplib
@jasonjoh
jasonjoh / sendactionablemessage.py
Last active October 17, 2023 12:45
A sample Python script that sends an actionable message via the Office 365 SMTP server.
#! /usr/local/bin/python
"""Sends an actionable message to yourself
Usage: 'sendactionablemessage.py -u <username> -p <password>'
"""
import sys
import getopt
from smtplib import SMTP as SMTP
from email.mime.text import MIMEText

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@chrisRedwine
chrisRedwine / pd.css
Last active May 17, 2023 11:32
Pandas CSS for Jupyter Notebooks
body {
margin: 0;
font-family: Helvetica;
}
table.dataframe {
border-collapse: collapse;
border: none;
}
table.dataframe tr {
border: none;
@rothgar
rothgar / tmux_local_install.sh
Last active October 17, 2025 16:36 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
TMUX_VERSION="2.1"
LIBEVENT_VERSION="2.0.20"
NCURSES_VERSION="6.0"
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
@marcelaraujo
marcelaraujo / gist:9a9fe07c5a4bcaea8c06
Created October 1, 2015 03:22
MacOS disable services
System process daemons that are system-wide provided by mac os x are described by launchd preference files that can be showed with the command:
$ sudo ls -all /System/Library/LaunchDaemons/
Third party process daemons that are system-wide provided by the administrator are described by preference files that can be showed with the command:
$ sudo ls -all /Library/LaunchDaemons/
Launch Agents that are per-user provided by mac os x usually loaded when the user logs in. Those provided by the system can be found with:
$ sudo ls -all /System/Library/LaunchAgents/
Launch Agents that are per-user provided by the administrator and usually loaded when the user logs in. Those provided by the system can be found with:
@tmplinshi
tmplinshi / KeypressOSD.ahk
Last active February 16, 2024 12:55
Note: This script has been moved to https://github.com/tmplinshi/KeypressOSD
; KeypressOSD.ahk
;--------------------------------------------------------------------------------------------------------------------------
; ChangeLog : v2.22 (2017-02-25) - Now pressing same combination keys continuously more than 2 times,
; for example press Ctrl+V 3 times, will displayed as "Ctrl + v (3)"
; v2.21 (2017-02-24) - Fixed LWin/RWin not poping up start menu
; v2.20 (2017-02-24) - Added displaying continuous-pressed combination keys.
; e.g.: With CTRL key held down, pressing K and U continuously will shown as "Ctrl + k, u"
; v2.10 (2017-01-22) - Added ShowStickyModKeyCount option
; v2.09 (2017-01-22) - Added ShowModifierKeyCount option
; v2.08 (2017-01-19) - Fixed a bug
@aviaryan
aviaryan / Clipjump - Temp Clipboard.ahk
Created August 24, 2013 03:51
Temporary Clipboards for use with Clipjump - Provides shortcuts to capture data to another private Clipboard.
;---------------------------------------
;TEMPORARY SYSTEM CLIPBOARD FOR CLIPJUMP
;v0.1
;---------------------------------------
;The shortcuts are Alt+C , X , V
!C::
copy("^c")
return
@AndTheFortyThieves
AndTheFortyThieves / command-list
Created April 24, 2013 12:10
Autohotkey Library "Commands As Functions" Provides nearly every command as function.
;------------------------------------------------------------------------------
This list was used to generate the functions of the lib:
Syntax: Command$param1,param2, ...
;------------------------------------------------------------------------------
AutoTrim$On_or_Off
BlockInput$Mode
Click$ModeButtonx,y
ClipWait$SecondsToWait,1
Control$Cmd,Value,Control,WinTitle,WinText,ExcludeTitle,ExcludeText