Skip to content

Instantly share code, notes, and snippets.

Avatar
🎱

Roman Shopin devromans

🎱
View GitHub Profile
@devromans
devromans / setup.md
Created Dec 7, 2018 — forked from novemberborn/setup.md
OS X Redirect ports 80 and 443 to 8080 and 8443 respectively
View setup.md

Changes with .dev domains in mind.

Create /etc/pf.anchors/dev, containing:

rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443

@devromans
devromans / iterm2-solarized.md
Created Jun 11, 2020 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

@devromans
devromans / gist:b76b3b61514ea13bd590bd6db4c04a4e
Created Sep 22, 2020 — forked from jfeilbach/gist:fd109c7dbc9798ce6e47358b82d0be76
DNS over TLS (knot resolver) setup using 1.1.1.1 on macOS
View gist:b76b3b61514ea13bd590bd6db4c04a4e
# Configuring DNS-over-TLS on macOS
# Worked on macOS 10.13.4
brew -v update
brew -v doctor
# Next two commands are optional
sudo chown -R $(whoami) $(brew --prefix)/*
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
# Install DNS client
brew install knot-resolver
# Should be installed to something like: /usr/local/Cellar/knot-resolver/2.3.0/sbin/kresd
@devromans
devromans / php_time_zones.csv
Last active Oct 28, 2021
PHP time zones mapping
View php_time_zones.csv
PHP Timezone Identifier Timezone (GMT offset if unknown) Timezone abbreviation (GMT offset if unknown) Daylight Saving Time
Africa/Abidjan Greenwich Mean Time GMT No
Africa/Accra Greenwich Mean Time GMT No
Africa/Addis_Ababa Eastern Africa Time EAT No
Africa/Algiers Central European Time CET No
Africa/Asmara Eastern Africa Time EAT No
Africa/Bamako Greenwich Mean Time GMT No
Africa/Bangui West Africa Time WAT No
Africa/Banjul Greenwich Mean Time GMT No
Africa/Bissau Greenwich Mean Time GMT No
@devromans
devromans / mz_invisible_widget.js
Created Aug 5, 2022 — forked from mzeryck/mz_invisible_widget.js
A Scriptable script that creates "invisible" widget backgrounds based on your iOS wallpaper, and then either uses them as a Scriptable widget background or exports to your camera roll.
View mz_invisible_widget.js
/*
MIT License
Copyright (c) 2022 Maxwell Zeryck
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW
View Delete all Jenkins Jobs
for(job in jenkins.model.Jenkins.theInstance.getAllItems()) {
println "\nJob: $job.name"
job.delete()
}