Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Busy.

ashleedawg ashleedawg

🎯
Busy.
View GitHub Profile
@blotus
blotus / log4j_exploitation_attempts_crowdsec.csv
Last active March 20, 2023 19:22
IPs exploiting the log4j2 CVE-2021-44228 detected by the crowdsec community
View log4j_exploitation_attempts_crowdsec.csv
ip status country as_name
193.46.254.155 validated RO Unmanaged Ltd
59.1.226.211 validated KR Korea Telecom
192.99.62.110 validated CA OVH SAS
209.141.50.153 validated US PONYNET
188.68.61.6 validated DE netcup GmbH
85.51.24.68 validated ES Orange Espagne SA
45.95.55.138 validated DE LUMASERV Systems
148.71.35.230 validated PT Vodafone Portugal - Communicacoes Pessoais S.A.
85.51.217.156 validated ES Orange Espagne SA
@miguelmota
miguelmota / external_link_arrow.txt
Last active May 24, 2023 19:54
Unicode UTF-8 external link arrow symbol (closest thing to it)
@rithvikvibhu
rithvikvibhu / README.md
Last active May 28, 2022 02:28
GHLocalApi Update
View README.md

GHLocalApi Update

The Gist

Until recently, the Google Home app used to communicate with the device over port 8008 (HTTP) and did not require any authentication. Everything in the unofficial documentation worked as expected.

A few days (weeks) ago, Google pushed a new update to all GH devices and all endpoints (except /setup/eureka_info) started returning 403 (forbidden) errors. The app had switched over to port 8443 and HTTPS.

@w8r
w8r / liang-barsky.js
Created August 2, 2017 13:19
Liang-Barsky line clipping
View liang-barsky.js
/**
* Liang-Barsky function by Daniel White
*
* @link http://www.skytopia.com/project/articles/compsci/clipping.html
*
* @param {number} x0
* @param {number} y0
* @param {number} x1
* @param {number} y1
* @param {array<number>} bbox
@wlippold
wlippold / font-effects-with-google-web-fonts.markdown
Last active March 28, 2023 08:37
Font Effects with Google Web Fonts
@shashisp
shashisp / gist:8703545
Created January 30, 2014 06:19
textcarousel example
View gist:8703545
<div id="container">
This is the
<div id="caption">
<span>best</span>
<span>ultimate</span>
<span>excellent</span>
<span>fantastic</span>
</div>
website in town.
</div>
@paulferrett
paulferrett / imagick_average_colour.php
Created December 23, 2013 14:40
This function will get the average colour of an image file using PHP and Image Magick using the IMagick extension.
View imagick_average_colour.php
<?php
/**
* Get the average pixel colour from the given file using Image Magick
*
* @param string $filename
* @param bool $as_hex Set to true, the function will return the 6 character HEX value of the colour.
* If false, an array will be returned with r, g, b components.
*/
function get_average_colour($filename, $as_hex_string = true) {
@henriquemoody
henriquemoody / http-status-codes.php
Last active May 23, 2023 11:30
List of HTTP status codes in PHP
View http-status-codes.php
<?php
/**
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
*
* You may also want a list of unofficial codes:
*
* 103 => 'Checkpoint',
* 218 => 'This is fine', // Apache Web Server
* 419 => 'Page Expired', // Laravel Framework
@mjackson
mjackson / color-conversion-algorithms.js
Last active June 1, 2023 01:15
RGB, HSV, and HSL color conversion algorithms in JavaScript
View color-conversion-algorithms.js
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation
@brandonheyer
brandonheyer / rgbToHSL.php
Last active June 12, 2021 06:49
PHP snippet to convert RGB to HSL and HSL to RGB.
View rgbToHSL.php
<?
function rgbToHsl( $r, $g, $b ) {
$oldR = $r;
$oldG = $g;
$oldB = $b;
$r /= 255;
$g /= 255;
$b /= 255;