| Parameter | Value |
|---|---|
| Incoming (IMAP) server | imap.mail.com |
| Port (Incoming server) | 993 |
| Incoming server requires SSL | Yes (check box) |
| Outgoing (SMTP) server | smtp.mail.com |
| Port (outgoing server) | 587 |
| Outgoing Server requires SSL | No (uncheck) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb shell input keyevent KEYCODE_ENDCALL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ChildItem -Directory -Filter "*2019" | Rename-Item -newname { $_.Name -replace "([0-9]{2})-([0-9]{2})-([0-9]{4})", "`$3`-`$2`-`$1` "} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| date_sub(date(date), interval MOD(TO_DAYS(date) -2, 7) day) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Darkify Slack on Mac OS or Linux. | |
| # curl https://gist.github.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh | |
| if [ "`uname -s`" = "Darwin" ]; then | |
| SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js" | |
| else | |
| SLACK_INTEROP_JS="/usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| :processargs | |
| SET NUMBER=%1 | |
| IF DEFINED NUMBER ( | |
| adb shell am start -a android.intent.action.CALL -d tel:%NUMBER% | |
| ) ELSE (adb shell input keyevent KEYCODE_ENDCALL) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| for /f "usebackq tokens=*" %%a in (`docker ps -aq`) do docker rm %%a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyperclip, re | |
| text = pyperclip.paste() | |
| text = re.sub(r"(\{|\})",r"\\\1",text) | |
| pyperclip.copy(text) |
A simple Ghostscript command to merge two PDFs in a single file is shown below:
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdfInstall Ghostscript:
Type the command sudo apt-get install ghostscript to download and install the ghostscript package and all of the packages it depends on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import os | |
| import sys | |
| sa = os.listdir(sys.argv[1]) | |
| def show1to5(sl): | |
| for i in range(0, len(sl)): | |
| try: |
NewerOlder