Skip to content

Instantly share code, notes, and snippets.

View dzinushin's full-sized avatar

Dmitry Zinushin dzinushin

View GitHub Profile
@dzinushin
dzinushin / safari-summary.sh
Created April 17, 2024 06:50 — forked from umputun/safari-summary.sh
Raycast script for Safari's page summary
#!/bin/sh
# @raycast.schemaVersion 1
# @raycast.title Summarize Safari page
# @raycast.mode fullOutput
#
# Optional parameters:
# @raycast.icon ✨
#
# @raycast.packageName Things
@dzinushin
dzinushin / jar_in_mc.txt
Last active April 16, 2024 19:25 — forked from mikeananev/scratch_2.txt
MacOS mc Midnight commander open jar file
# jar
shell/i/.jar
Open=%cd %p/uzip://
View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.26/libexec/mc/ext.d/archive.sh view zip
# jar
type/i/^jar\ archive
Open=%cd %p/uzip://
View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.26/libexec/mc/ext.d/archive.sh view zip
@dzinushin
dzinushin / concurrency-in-go.md
Created January 7, 2022 22:02 — forked from kachayev/concurrency-in-go.md
Channels Are Not Enough or Why Pipelining Is Not That Easy

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@dzinushin
dzinushin / web_tools.html
Created June 21, 2021 09:33 — forked from taingmeng/web_tools.html
Web Tool Bookmarks for Chrome
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DT><H3 ADD_DATE="1624006311" LAST_MODIFIED="1624006311">Web Tools</H3>
<DL><p>
<DT><A HREF="https://regex101.com/" ADD_DATE="1624006311" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABrklEQVQ4jVVSPW8TQRSc2duz75IQKxgZRZFACoIiQhQgGipS8BMoU9Eh/gDiL9AgJBA/gTYFDR0SUqCjAPNRxAIXwQYcnBjZd94divvwest5+968mTe88+g1AEkkJSF4FUJyAdqwRgY1of4rocYtAAGoGGa5d14S4ojNOFJAXjRbAASqAq5srbdWYhA/R9Pvg0lsSRppsVbJQNI5v5LYh3evHk+y0Wm2eTb99OPvi1dfi/oSgyrVxjB3/sl+90t/fLGz9vjejYPPw4PucDWJnS9lmGKlmlFCPvfO6/Do5Nd4eiaNnYqZWnKpVCJFhjcvt8+tJzsXWgA+HI7SRhRICBqK8bHlrZ3zt6+ZrXZ6/9n7P+NZI45qAeVKle8whtPcP93vPnj+rv/73/VLG1nuw6uVDaWnACCCaSOa5f7lm97e7nZnI8nmLgxBIFqS6Lx3Xmupfftx2O2P93a3s9wTi8iwzhIAQ26208HxNJt7SauJ7bSS3uCUIConqzsAJL3UO5pYS0OCnEzdt8lJMzbF4RYuFe2FFc2YqggjQ2si
@dzinushin
dzinushin / nginxproxy.md
Created May 25, 2020 07:37 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@dzinushin
dzinushin / macosx_remove_java9.sh
Created September 28, 2018 13:02 — forked from schnell18/macosx_remove_java9.sh
MacOS X remove Java 9
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane