- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or folders
inany application
- Add a
Run Shell Script
action- your default shell should already be selected, otherwise use
/bin/zsh
for macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
Discover gists
This file contains 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
#!/usr/bin/env bash | |
# checck if pidof exists | |
PIDOF="$(which pidof)" | |
# and if not - install it | |
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof | |
# find app in default paths | |
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
This file contains 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
// by klaytonb | |
// https://forums.developer.apple.com/forums/thread/699111?answerId=740437022#740437022 | |
import Combine | |
import SwiftUI | |
public extension Publishers { | |
static var keyboardHeight: AnyPublisher<CGFloat, Never> { | |
let willShow = NotificationCenter.default.publisher(for: UIApplication.keyboardWillShowNotification) | |
.map { $0.keyboardHeight } | |
let willHide = NotificationCenter.default.publisher(for: UIApplication.keyboardWillHideNotification) |
This file has been truncated, but you can view the full file.
This file contains 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
ZIP,LAT,LNG | |
00601,18.180555, -66.749961 | |
00602,18.361945, -67.175597 | |
00603,18.455183, -67.119887 | |
00606,18.158345, -66.932911 | |
00610,18.295366, -67.125135 | |
00612,18.402253, -66.711397 | |
00616,18.420412, -66.671979 | |
00617,18.445147, -66.559696 |
This file contains 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
# Install XQuartz | |
brew cask install xquartz | |
# Restart MacOS | |
# Open XQuartz | |
open -a XQuartz | |
# Ensure the "Allow connections from network clients" option in Preferences >> Security is turned on |
emoji | unicode | emoji | unicode |
---|---|---|---|
✒️ :black_nib: |
\U00002712 | ✔️ :heavy_check_mark: |
\U00002714 |
✖️ :heavy_multiplication_x: |
\U00002716 | :bangbang: |
\U0000203C |
✳️ :eight_spoked_asterisk: |
\U00002733 | ✨ :sparkles: |
\U00002728 |
❕ :grey_exclamation: |
\U00002755 | ✴️ :eight_pointed_black_star: |
\U00002734 |
❄️ :snowflake: |
\U00002744 | ❇️ :sparkle: |
\U00002747 |
❌ :x: |
\U0000274c | ❎ :negative_squared_cross_mark: |
\U0000274e |
This file contains 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
// ==UserScript== | |
// @name Bypass Detect-Devtool | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description bypass https://github.com/theajack/disable-devtool | |
// @author Wagyourtail | |
// @match {site} | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.io | |
// @grant none | |
// ==/UserScript== |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
License: MIT License | |
Copyright (c) 2023 Miel Donkers | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer |
This file contains 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
# config.yml in traefik directory | |
# Dynamic Configuration for Dashboard | |
http: | |
routers: | |
dashboard: | |
# Your domain here | |
rule: Host(`traefik-dashboard.example.com`) | |
service: api@internal | |
middlewares: | |
- auth |
NewerOlder