Skip to content

Instantly share code, notes, and snippets.

View nerdalertdk's full-sized avatar

nerdalertdk nerdalertdk

View GitHub Profile

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

@PurpleBooth
PurpleBooth / README-Template.md
Last active April 18, 2025 02:49
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@jinie
jinie / gist:712d397cfa37bcb836b5
Created July 17, 2015 12:12
EdgeOS GeoIP blocking
#!/usr/bin/env python
import os
import urllib2
countries={'DK':'denmark'}
os.system("/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper begin")
for country in countries.keys():
@adamwathan
adamwathan / v-cloak.md
Last active November 6, 2024 14:28
Useful CSS utilities for Vue.js cloaking

Handy helpers for controlling visibility of elements until Vue has compiled.

Use like:

<div v-cloak>
  <h1>
    <span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
    <span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->
 
anonymous
anonymous / rblcheck.pl
Created February 11, 2015 22:53
rblcheck.pl - This script queries DNS Blacklists for listings. Based on Ruby script rbl.check (https://github.com/jjmartres/Zabbix/tree/master/zbx-scripts/rbl.check)
#!/usr/bin/perl
use warnings;
use strict;
use Getopt::Std;
use YAML::XS;
use Net::DNSBL::Client;
my %runOptions=();
getopts("q:", \%runOptions);
@voku
voku / no_cache_for_css.php
Created June 4, 2014 10:25
make stylesheet not cache: Use this script to make the stylesheet load every time and not cache. - From http://snippetlib.com/css/make_stylesheet_not_cache
<link href="css/stylesheet.css?t=<?php echo time(); ?>" rel="stylesheet" type="text/css"/>
/* Browser specific (not valid) styles to make preformatted text wrap */
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
@hitsumabushi
hitsumabushi / default
Last active September 8, 2020 13:32
PXE install
# pxelinux.cfg/default file
default debian/7.4/amd64/boot-screens/vesamenu.c32
prompt 1
timeout 300
menu title - Boop Options Menu -
label Debian-7.4
menu label ^0 Debian 7.4
#include debian/7.4/amd64/boot-screens/menu.cfg
kernel debian/7.4/amd64/linux
@IT07
IT07 / Server_WelcomeCredits
Last active July 6, 2016 18:32
[GitHub] DayZ Server Credits by IT07
// FILENAME: server_WelcomeCredits.sqf
// =====
// SCRIPT NAME: Server Intro Credits Script by IT07
// SCRIPT VERSION: v1.3.7 BETA
// Credits for original script: Bohemia Interactive http://bistudio.com
// ========== SCRIPT CONFIG ============
_onScreenTime = 6; //how long one role should stay on screen. Use value from 0 to 10 where 0 is almost instant transition to next role
//NOTE: Above value is not in seconds. It is percentage. Default: 6
@nitinhayaran
nitinhayaran / osx.sh
Last active March 7, 2020 05:19
OSX configurations
echo "Expanding the save panel by default"
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
echo "Why is this not default anymore?! Enabling full keyboard access for all controls (e.g. enable Tab in modal dialogs)"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
echo "I'm in yer computer, hax0ring yr passwords!"
echo "Requiring password immediately after sleep or screen saver begins"
defaults write com.apple.screensaver askForPassword -int 1