Skip to content

Instantly share code, notes, and snippets.

View eyecatchup's full-sized avatar

Stephan Schmitz eyecatchup

View GitHub Profile
@eyecatchup
eyecatchup / huawei-ascend-y300-firmware.md
Last active December 10, 2017 14:50
Huawei Ascend Y300 - Official Firmware Image B209

B209 firmware update for Huawei Ascend Y300

B209 was a regional firmware update for Germany & other European countries, officially released by Huawei in July 2014.

It fixed the dangerous Heartbleed bug and brought some other minor optimizations (e.g. improved RAM- and battery usage).

It's official package name is Y300-0100 V100R001C00B209_Firmware_West European_Channel-Others_Android 4.1_EMUI 1.0_05011KYP.

Download

@eyecatchup
eyecatchup / process_responsive_images.sh
Last active April 11, 2016 05:27
A shell script (employing ImageMagick) to generate 1x and 2x image fragments with JPEG quality at 90, 50 and 20. Source: http://www.html5rocks.com/en/mobile/high-dpi/#toc-tech-overview
#!/usr/bin/env bash
QUAL_HI=90
QUAL_MID=50
QUAL_LOW=20
ORIG=hq2x.jpg
# Create 2x version.
convert original.jpg -quality $QUAL_HI hq2x.jpg
# Create 1x version.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE HTML>
<html>
<head>
<title>Online or offline?</title>
<script>
function update(status) {
document.getElementById('status').textContent = !!status ? 'Online' : 'Offline';
}
</script>
</head>
@eyecatchup
eyecatchup / das-rot-von-koelle.md
Last active October 29, 2021 17:53
Auf der Suche nach den "offiziellen" Rot-Farbwerten Kölns.

Dat Rut von Köln (dt.: Das Rot von Köln)

Na, die Farben von Köln? Herrjott,.. RUT UN WIESS! Dat ess doch janz klor!

Oder evve doch nid?

Wiess: #FFF bzw. rgb(255, 255, 255) - haha.

Aber versuch' mal, als interessierter Frontendler/Grafiker, offizielle Definitionen für die Rot-Farbwerte von z.B der Stadt Köln oder des FCs zu kommen. Vergiss es! Mein Name ist Hase, ich weiß von nix.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eyecatchup
eyecatchup / console.noop.js
Last active April 5, 2016 21:38
Avoid `console` errors in browsers that lack a console.
// Avoid `console` errors in browsers that lack a console.
if (!(window.console && console.log)) {
(function() {
var noop = function() {};
var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'markTimeline', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn'];
var length = methods.length;
var console = window.console = {};
while (length--) {
console[methods[length]] = noop;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
index.php: The Main component of CTB-Locker for Websites and contains the encryption and decryption routines as well as the payment page.
allenc.txt: Contains a list of all encrypted files.
test.txt: Contains the path and filenames to two prechosen files that can be decrypted for free.
victims.txt: It contains a list of all files that are to be encrypted. However, the files that are already encrypted will remain in this list.
extensions.txt: - The list of file extensions that should be encrypted.
secret_[site_specific_string]: The secret file used by the Free Decrypt and Chat functions and is located in the same folder as the index.php file.
Via:
http://erdeni.ru/access.php
http://studiogreystar.com/access.php
@eyecatchup
eyecatchup / material-design-breakpoints.css
Last active December 4, 2020 20:08
CSS media queries based on the breakpoint guidance published by the Material Design team. http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoint
/* Material Design Adaptive Breakpoints */
/*
Below you'll find CSS media queries based on the breakpoint guidance
published by the Material Design team. You can choose to use, customise
or remove these breakpoints based on your needs.
http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoints
*/
/* mobile-small */