# This is an <h1> tag
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
I wanted to replace the self-signed certificate with one signed by Let's Encrypt, and | |
did not want to perform this action manually. | |
I asked Reolink technical support, but they answered there is no API to manage certificates. | |
So I did some research and found the Reolink doorbell camera and probably other models | |
do support to upload your own certificates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.4.10; | |
contract WETH9 { | |
string public name = "Wrapped Ether"; | |
string public symbol = "WETH"; | |
uint8 public decimals = 18; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Capitalize string | |
// -------------------------------------------------------------------------------- | |
// @param [string] $string | |
// -------------------------------------------------------------------------------- | |
// @return [string] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Tile = number; | |
type TileOrientation = 0 | 90 | 180 | 270; | |
export type TileMapping = Record<number, number>; | |
type Coordinates = [number, number]; | |
enum DirectionKeys { | |
UP = 'UP', | |
DOWN = 'DOWN', | |
LEFT = 'LEFT', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://intuitive-theory.com/notes/onetab-delete-all-saved-tabs-script/ | |
function delete_single() { | |
for (clickable of clickables) { | |
if (!clickable || clickable.innerHTML !== "Delete all") | |
continue; | |
clickable.click(); | |
return true; | |
} | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Bundle Size Comparison' | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gdb | |
import gdb.printing | |
import re | |
# allow to manually reload while developing | |
objfile = gdb.current_objfile() or gdb.objfiles()[0] | |
objfile.pretty_printers = [] | |
class OdinStringPrinter: | |
"Pretty print Odin strings." |
NewerOlder