Skip to content

Instantly share code, notes, and snippets.

View MFry's full-sized avatar

Michal Frystacky MFry

View GitHub Profile

Keybase proof

I hereby claim: * I am mfry on github. * I am codefry (https://keybase.io/codefry) on keybase. * I have a public key ASA5mt1lhFIcnt8yxxmgiFdHS9uYxzV9PkYxxXxgH_PKwwo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "0120399add6584521c9edf32c719a08857474bdb98c7357d3e4631c57c601ff3cac30a",       "host": "keybase.io",       "kid": "0120399add6584521c9edf32c719a08857474bdb98c7357d3e4631c57c601ff3cac30a",       "uid": "abb93a76aefd6a1d5315d0f2fe971919",       "username": "codefry"     },     "merkle_root": {       "ctime": 1580925842,       "hash": "6a8084f9f501a526bdb62eeb39eaa9e2a19165ce2fed0e921f84d31a3631ca2ef5eda629eaeb88b43af1679fd0e0941d2c0b943dac50d1e778669b5c893c3dca",       "hash_meta": "58ca2d4dbfff26c795fd8284b2b15c89f202be381523feecb7d0100e4bc67632",       "seqno": 14499835     },     "service": {       "entropy": "T9BRBdp1DyBBkGQVSAEIIbAm",       "name": "github",       "username": "mfry"     },     "type": "web_service_binding
@MFry
MFry / .travis.yml
Last active October 16, 2019 12:20
Permissions to deploy to S3 from a CI provider
language: node_js
node_js:
- node
cache:
yarn: true
directories:
- node_modules
script:
- mkdir -p build/css
- cp index.html build/
@MFry
MFry / README.md
Last active April 5, 2017 23:24
Changing IISExpress port for Website Project

If you are getting the following error after trying to debug a website project:

Unable to launch the IIS Express Web server.

Failed to register URL "http://localhost:62940/" for site "SITE NAME" application "/". Error description: Access is denied. (0x80070005).

and if windows managed to reserve the specific port (such as 62940) you might want to change the port of your projects IISExpress server. (You can check what ports are being used by running netstat. You can also try killing Microsoft.VisualStudio.Web.Host.exe*32. Alas, if none of that works locate your project.sln (where project is the name of your specific project) and you can edit the port.

@MFry
MFry / Vagrantfile
Last active May 5, 2022 16:58
A simple vagrant provision
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
@MFry
MFry / .bash_profile
Created January 11, 2017 01:49
Fixing global npm installed modules for git bash
# This file is optional and included for completion sake
# if you generate the appropriate .bashrc file and load git-bash this file will be automatically created.
# generated by Git for Windows
test -f ~/.profile && . ~/.profile
test -f ~/.bashrc && . ~/.bashrc
@MFry
MFry / Webpack and toastr
Last active February 16, 2023 16:58
Getting toastr npm to play with webpack
//In case anyone was having the same issue in getting toastr to run with webpack and es6
@MFry
MFry / webserver.py
Last active September 10, 2019 19:20
Simple post/get server on Python 3.5 with cgi (udacity example converted)
#!/usr/bin/env python3.5
# different imports
from http.server import HTTPServer, BaseHTTPRequestHandler
import cgi
class WebServerHandler(BaseHTTPRequestHandler):
form_html = \
'''
<form method='POST' enctype='multipart/form-data' action='/hello'>
@MFry
MFry / gettingStartedWithBootstrapDatepicker.js
Last active May 23, 2016 19:53
Usage and getting started with Bootstrap Datepicker
//In HTML:
//<div id="sandbox-container"><input type="text" class="form-control"></div>
//SCRIPT:
$('#sandbox-container input').datepicker({
}).on('changeDate', function (event){
var t = event['dates'];
//t is a JavaScript Date Reference link: http://www.w3schools.com/jsref/jsref_obj_date.asp
});