Skip to content

Instantly share code, notes, and snippets.

@p3t3r67x0
p3t3r67x0 / rewe_discounter_details.json
Created Mar 31, 2021
List of probably all german listed REWE discounters with address data as well as contact data.
View rewe_discounter_details.json
This file has been truncated, but you can view the full file.
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active Mar 16, 2021
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.
View pseudo_elements.md

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@p3t3r67x0
p3t3r67x0 / prefixed-office-properties.md
Last active Nov 30, 2020
MS Office prefixed style properties can be used for older versions of MS Excel, MS PowerPoint or MS Word when you want to save a document, presentation, workbook, or worksheet as a web document, or even in older versions for MS Outlook.
View prefixed-office-properties.md

MS Office prefixed style properties

mso-ansi-font-size

Note: Office only

mso-ansi-font-size: large | larger | <length> | medium | <percentage> | small | smaller | x-large | x-small | xx-large | xx-small
@p3t3r67x0
p3t3r67x0 / openssl_commands.md
Last active Nov 9, 2020
Some list of openssl commands for check and verify your keys
View openssl_commands.md

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@p3t3r67x0
p3t3r67x0 / prefixed-properties.md
Last active Oct 31, 2020
Be aware that every rendering engine has its own implementation of prefixed properties. As extensions are made part of the standard, the unprefixed identifier is then substituted.
View prefixed-properties.md

Prefixed style properties

-ms-accelerator

The -ms-accelerator property sets or retrieves a string that indicates whether the object represents a keyboard shortcut.

-ms-accelerator: false | true
@p3t3r67x0
p3t3r67x0 / vue_tailwindcss_candar.vue
Created Oct 13, 2020
Simple Vue Tailwindcss Calendar with Modal
View vue_tailwindcss_candar.vue
<template>
<div>
<div class="bg-white rounded shadow overflow-hidden">
<div class="flex items-center justify-between py-2 px-6">
<div>
<span class="text-lg font-bold text-gray-800">{{ monthNames[month] }}</span>
<span class="ml-1 text-lg text-gray-600 font-normal">{{ year }}</span>
</div>
<div class="border rounded-lg px-1" style="padding-top: 2px;">
<button type="button" class="leading-none rounded-lg transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 items-center" :class="{'cursor-not-allowed opacity-25': month == 0 }"
@p3t3r67x0
p3t3r67x0 / fulltext_idx.json
Last active Sep 18, 2020
curl -u admin:password -XPUT http://127.0.0.1:8094/api/index/fulltext_idx -H 'cache-control: no-cache' -H 'content-type: application/json' -d "$(cat fulltext_idx.json)"
View fulltext_idx.json
{
"type": "fulltext-index",
"name": "fulltext_idx",
"sourceType": "couchbase",
"sourceName": "leakz",
"planParams": {
"maxPartitionsPerPIndex": 171,
"indexPartitions": 6
},
"params": {
View create_index_cuchbase.sql
CREATE INDEX `md5_idx` ON `leakz`(`md5`);
CREATE INDEX `sha1_idx` ON `leakz`(`sha1`);
CREATE INDEX `sha224_idx` ON `leakz`(`sha224`);
CREATE INDEX `sha256_idx` ON `leakz`(`sha256`);
CREATE INDEX `sha384_idx` ON `leakz`(`sha384`);
CREATE INDEX `sha512_idx` ON `leakz`(`sha512`);
CREATE PRIMARY INDEX `primary_idx` ON `leakz`;
@p3t3r67x0
p3t3r67x0 / tensorflow2.3_build_error.md
Last active Sep 13, 2020
A short story how I did build Tensorflow 2.3 from source on Ubuntu 20.4.1 LTS with CUDA 11.0.207
View tensorflow2.3_build_error.md

Building Tensorflow 2.3 from source on Ubuntu 20.4.1 LTS

GPU

ASUS ROG Strix GeForce GTX 1070 Ti 8GB

System