Skip to content

Instantly share code, notes, and snippets.

View KenDB3's full-sized avatar

Kenny DiBattista KenDB3

  • Rhode Island, USA
View GitHub Profile
@palmerj
palmerj / xbox_button_names.md
Last active February 22, 2024 14:43
Xbox Controller Button Names and Layout

Buttons

  • RSB == Right Stick Button
  • LSB == Left Stick Button
  • RB == Right Bumper
  • RT == Right Trigger
  • LB == Left Bumper
  • LT == Left Trigger
  • Y == Y Button (Top)
  • A == A Button (Bottom)
@mlocati
mlocati / win10colors.cmd
Last active January 19, 2024 14:18
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
@tracker1
tracker1 / README.md
Last active May 11, 2019 14:37
Web.config file for synchronet on IIS

You'll need windows server, or windows pro for this, so that you have IIS. I'm running Windows 10 Pro.

Move your BBS's Web settings to bind on port 8000 (or any internal port you choose).

Install Application Request Routing (ARR)

Add your BBS's web/root directory to a new website in IIS, you must specify a host name, you can add additional host names under bindings.

My web.config file below, this file should also go into your web/root. You'll need to replace localhost:8000 with the appropriate port you are using. You sould also replace the www\.roughneckbbs\.com and www.roughneckbbs.com references with your host name.

@jult
jult / blockpeers.sh
Last active March 5, 2024 07:33
blocking p2p peer snoopers and evil corp (for Tixati IP filter and such)
#!/bin/sh
# This script runs every other night at 04:56 CET on a webserver I maintain
# Results are always at: https://jult.net/block.txt ( or https://jult.net/block.txt.gz )
# And much smaller, stripped of BS; https://jult.net/bloc.txt
# For use in Tixati IP filter: https://jult.net/bloc.txt.gz !!!
# And finally a txt file with just the bold IP-ranges: https://jult.net/bl.txt (or https://jult.net/bl.txt.gz )
# Download open block-lists, unpack, filter:
curl -s https://www.iblocklist.com/lists.php | grep -A 2 Bluetack | xargs wget -qO - --limit-rate=500k | gunzip -f | egrep -v '^#' > /tmp/xbp
@puhitaku
puhitaku / image-to-ansi.py
Last active January 19, 2019 21:46 — forked from klange/image-to-ansi.py
Convert images to ANSI escape sequences
#! /usr/bin/env python
"""This is an improved image_to_ansi.py.
It's 7x faster than original version.
WTFPL is preserved for saying thank you to original developer, Mr. Elliott.
"""
__author__ = 'Micah Elliott http://MicahElliott.com; Kevin Lange <k@dakko.us>; Takumi Sueda <puhitaku@gmail.com>'
__version__ = '0.1'
@chrisveness
chrisveness / utf8-regex.js
Last active May 25, 2023 01:53
Utf8 string encode/decode using regular expressions
/**
* Encodes multi-byte Unicode string into utf-8 multiple single-byte characters
* (BMP / basic multilingual plane only).
*
* Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars.
*
* Can be achieved in JavaScript by unescape(encodeURIComponent(str)),
* but this approach may be useful in other languages.
*
* @param {string} unicodeString - Unicode string to be encoded as UTF-8.
@zikes
zikes / index.html
Created December 13, 2012 19:38
Exponential Regression Line Using numbers.js & d3.js
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Exponential Regression Line Using numbers.js & d3.js</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="numbers.js"></script>
<style>
body {font: 10px sans-serif;}
@klange
klange / image-to-ansi.py
Created January 27, 2012 06:29 — forked from MicahElliott/colortrans.py
Convert images to ANSI escape sequences
#! /usr/bin/env python
""" Convert an image (argv[1]) to an ANSI text string (xterm-256color)
Original readme from colortrans.py follows:
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources: