Skip to content

Instantly share code, notes, and snippets.

View goto-dev-null's full-sized avatar
❣️
:3

Jade goto-dev-null

❣️
:3
View GitHub Profile
@hlorand
hlorand / isup.sh
Created September 23, 2017 22:32
Website UP or DOWN checker
#!/bin/bash
# check every 10 seconds if a website is up or down
WEBSITE=$1
while true; do
#curl downloads only HTTP header in silent mode
#head gets the first line
#grep searches for HTTP 200 OK status code and outputs the number of lines found
@natelandau
natelandau / .bash_profile
Last active November 10, 2024 21:53
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@dciccale
dciccale / README.md
Last active October 22, 2021 21:52
Tiny Cross-browser DOM ready function in 111 bytes of JavaScript

DOM Ready

Tiny Cross-browser DOM ready function in 111 bytes of JavaScript.

@josiahcarlson
josiahcarlson / chunked_server_test.py
Last active November 7, 2024 04:29
Use some standard Python libraries to implement a chunked-transfer encoding web server with partially-working gzip support
'''
chunked_server_test.py
Copyright August 3, 2012
Released into the public domain
This implements a chunked server using Python threads and the built-in
BaseHTTPServer module. Enable gzip compression at your own peril - web
browsers seem to have issues, though wget, curl, Python's urllib2, my own
async_http library, and other command-line tools have no problems.
@caffo
caffo / GORILLA.BAS
Created October 31, 2011 03:24
QBasic Gorillas
' Q B a s i c G o r i l l a s
'
' Copyright (C) IBM Corporation 1991
'
' Your mission is to hit your opponent with the exploding banana