Skip to content

Instantly share code, notes, and snippets.

View ieschalier's full-sized avatar
🌱
_

Igor ESCHALIER ieschalier

🌱
_
View GitHub Profile
@Lane
Lane / surge-teardown.sh
Last active September 24, 2020 07:29
script to remove any surge subdomains you have deployed based on a provided pattern
#!/bin/bash
# Removes all surge domains that match a provided pattern
#
# Example usage:
# ./surge-teardown.sh test-site
#
# Output:
# Success - test-site-alpha.surge.sh has been removed.
# Success - beta-test-site.surge.sh has been removed.
@reillysiemens
reillysiemens / signing-vbox-kernel-modules.md
Last active November 17, 2024 02:20
Signing VirtualBox Kernel Modules

Signing VirtualBox Kernel Modules

These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].

  1. Install the VirtualBox package (this might be different for your platform).
    src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
@johngrimes
johngrimes / nginx.conf
Created February 14, 2018 22:23
Ideal Nginx configuration for JavaScript single-page app
server {
listen 80;
root /usr/share/nginx/html;
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_comp_level 9;
etag on;
location / {
try_files $uri $uri/ /index.html;
}
@bvaughn
bvaughn / react-lifecycle-cheatsheet.md
Last active October 8, 2024 15:46
React lifecycle cheatsheet

React lifecycle cheatsheet

Method Side effects1 State updates2 Example uses
Mounting
componentWillMount Constructor equivalent for createClass
render Create and return element(s)
componentDidMount DOM manipulations, network requests, etc.
Updating
componentWillReceiveProps Update state based on changed props