Skip to content

Instantly share code, notes, and snippets.

View edisplay's full-sized avatar

edisplay edisplay

View GitHub Profile
@gaearon
gaearon / index.html
Last active January 26, 2024 11:25
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@echo off
set /p domain="Enter Domain: "
set OPENSSL_CONF=../conf/openssl.cnf
if not exist .\%domain% mkdir .\%domain%
..\bin\openssl req -config cert.conf -new -sha256 -newkey rsa:2048 -nodes -keyout %domain%\server.key -x509 -days 3650 -out %domain%\server.crt
echo.
echo -----
[ req ]
default_bits = 2048
default_keyfile = server-key.pem
distinguished_name = subject
req_extensions = req_ext
x509_extensions = x509_ext
string_mask = utf8only
[ subject ]
@edisplay
edisplay / git.sh
Created December 28, 2017 13:44 — forked from etoxin/git.md
GIT Bash Commands
# search (regex)
git grep "regex"
# list all branches
git branch -a
# list remote branches
git branch -r
# checkout an branch on remote
#!/bin/bash
export TERM=xterm;
clear;
echo " ";
echo "---------------------------------------------";
echo " START | "$(date +%m.%d.%Y-%H.%M.%S);
echo "---------------------------------------------";
#create db dump for all databases
@abhishekdagarit
abhishekdagarit / Disable mouse scroll wheel zoom on embedded Google Maps
Created October 25, 2016 21:29
Disable mouse scroll wheel zoom on embedded Google Maps
Question:
I work on a WordPress site where the authors usually embed Google Maps using iFrames in most posts.
Is there a way to disable the zoom via mouse scroll wheel on all of them using Javascript?
Solution:
I was having the same problem: when scrolling the page then the pointer becomes over the map,
it starts to zoom in/out the map instead of continuing scrolling the page. :(
class Main {
public static void main(String[] args) {
System.out.println("Francisco Cruz");
System.out.println("This morning I came from North Bergen, NJ");
System.out.println("I took a Bus to Porth Authority on 42nd Street, and then");
System.out.println("I took the Seven Train to 33rd Street.");
System.out.println("I learned to code my first program in Java");
System.out.println("I hope to learn to master Java everyday");
}
}
@edisplay
edisplay / gist:3b98edf71a82c6725455
Created January 2, 2016 15:02 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@odan
odan / xampp_php7_xdebug.md
Last active April 17, 2024 05:36
Installing Xdebug for XAMPP
@stollcri
stollcri / chrome_HSTS_clear.md
Last active January 4, 2024 05:09
Clear 307 HSTS redirects in Google Chrome

To clear 307 HSTS redirects in Google Chrome (if you experimenting with SSL -- you probably wouldn't want to do this for a site that you do not opperate, since it is there to protect you), go to the following URL and delete the site.

chrome://net-internals/#hsts