Service | SSL | status | Response Type | Allowed methods | Allowed headers |
---|
#!/usr/bin/env bash | |
# Leverages Docker containers to create a temporary signing server | |
# Obtain a SSL cert and then apply it to the service in question we're interested in | |
# Usage: ./kasm_cert.sh mydomain.test | |
mkdir -p /tmp/webroot | |
# Start an ephemeral nginx container |
# Gain superuser privileges | |
sudo -i | |
# Create swap area for managing memory | |
sudo dd if=/dev/zero bs=1M count=5024 of=/mnt/swapfile.swap | |
sudo chmod 600 /mnt/swapfile.swap | |
sudo mkswap /mnt/swapfile.swap | |
sudo swapon /mnt/swapfile.swap | |
echo '/mnt/swapfile.swap swap swap defaults 0 0' | sudo tee -a /etc/fstab |
# | |
### Calomel.org Squid squid.conf | |
# | |
########### squid.conf ########### | |
# | |
## interface, port and proxy type | |
#http_port 10.10.10.1:8080 transparent | |
http_port 10.10.10.1:8080 | |
## general options |
I have googled many things and explored many questions on Stack Overflow
to find the best way to push only dist/
directory to live server. I
couldn't find any good solution but one person on Stackoverflow suggested to
look at Git Submodules and this is the best solution I could come up with. I
have never heard of submodules before because almost nobody uses them. If you
never heard of it too then I'll first explain what a submodule is and then I'll
show you how you can use submodules to push only dist/
directory to
a live server.
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
- new update introducing no 11 setup checks on boot in VirtualBox
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
configure via set vars, commandline parameters or rename script like
iso 21H2 Pro MediaCreationTool.bat
recommended windows setup options with the least amount of issues on upgrades set via auto.cmd
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
#!/bin/bash | |
# Creator: Phil Cook | |
# Modified: Andy Miller | |
osx_major_version=$(sw_vers -productVersion | cut -d. -f1) | |
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2) | |
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3) | |
osx_patch_version=${osx_patch_version:-0} | |
osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx_patch_version})) | |
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g') |