npm i -g @nestjs/cli
yarn add class-validator class-transformer
yarn add @nestjs/mapped-types
import hify from './create-element'; | |
import React from 'react'; | |
import { render } from 'react-dom'; | |
const h = hify(React.createElement.bind(React)); | |
class Test extends HTMLElement { | |
static observedAttributes = ['attr'] | |
attributeChangedCallback (name, oldValue, newValue) { | |
this.innerHTML = `Hello, ${this.getAttribute('attr')}!`; |
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.
const tribes = require("ssb-tribes") | |
const Bot = require("scuttle-testbot") | |
const Stack = Bot.use(require("ssb-backlinks")).use(tribes) | |
const bot = Stack() | |
const Stack2 = Bot.use(require("ssb-backlinks")).use(tribes) | |
const bot2 = Stack2() | |
bot.tribes.create({}, (err, data) => { |
=== decoding for LG A/C ====
=== *** ===
#!/bin/bash | |
set -e | |
ARCH=aarch64 | |
DOCKER_VERSION=20.10.9 | |
COMPOSE_VERSION=2.5.1 | |
DOCKER_DIR=/volume1/@docker | |
echo "Downloading docker $DOCKER_VERSION-$ARCH" | |
curl "https://download.docker.com/linux/static/stable/$ARCH/docker-$DOCKER_VERSION.tgz" | tar -xz -C /usr/local/bin --strip-components=1 |
-- AppleScript -- | |
-- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
-- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
-- This method is as good as its JXA counterpart. | |
-- Webkit variants include "Safari", "Webkit", "Orion". | |
-- Specific editions are valid, including "Safari Technology Preview". | |
-- "Safari" Example: | |
tell application "Safari" to return name of front document |
#!/usr/bin/env python2 | |
from twisted.internet import reactor | |
from twisted.names import client, dns, server | |
import ipaddr | |
import socket | |
class SixFourResolver(client.Resolver): | |
def __init__( | |
self, |
// IDC script for identifying functions and such | |
#include <idc.idc> | |
#define RenameFunction(a, b) Message("Found %s at %a\r\n", b, a); MakeName(a, b) | |
#define START_ADDR 0x00400000 | |
static main() { | |
auto addr = BADADDR; | |
auto onMovePacket = FindAoBAndRename("25 0C FE FF FF 05 E8 03", "?OnMovePacket@CMovePath@@QAEXAAVCInPacket@@H@Z"); |
import android.content.Context | |
import com.google.android.gms.location.FusedLocationProviderClient | |
import com.google.android.gms.location.LocationServices | |
import dagger.Module | |
import dagger.Provides | |
import dagger.hilt.InstallIn | |
import dagger.hilt.android.qualifiers.ApplicationContext | |
import dagger.hilt.components.SingletonComponent | |
@InstallIn(SingletonComponent::class) |