» sudo systemctl daemon-reload
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
==============================================
Edit*
- Open
/etc/wsl.conf
with any editor:
import { Request, Response } from "express"; | |
import { createCanvas } from "canvas"; | |
import GifEncoder from "gifencoder"; | |
export async function generateImage(label: string): Promise<Buffer> { | |
const width = 955; | |
const height = 500; | |
const canvas = createCanvas(width, height); | |
const ctx = canvas.getContext("2d"); |
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.4; | |
import "hardhat/console.sol"; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "./RewardToken.sol"; | |
contract StakingManager is Ownable{ |
» sudo systemctl daemon-reload
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
==============================================
Edit*
/etc/wsl.conf
with any editor:The credentials are stored in the "credentials.yml.enc" file, encrypted. | |
To decrypt the credentials file, you need a master key that is set on either: | |
* config/master.key file (for local development) | |
* ENV["RAILS_MASTER_KEY"] (for deployed environments) | |
What should you commit? | |
* The file config/master.key should be ignored in gitignore (you should not commit the master key) | |
* The file credentials.yml.enc should be commited along with the codebase (but don't worry, only those who have the master key can decrypt it) |
/*/////////////////// | |
CSS | |
Build a simple product visualiser with Gravity Forms Color Picker | |
Full article at https://jetsloth.com/labs/build-a-simple-product-visualiser-with-gravity-forms-color-picker/ | |
////////////////////*/ | |
/* Outter form wrapper */ | |
.gform_body { | |
background:#f6f6f6; | |
border-radius:10px; |
This cheatsheet includes most of the byebug commands organized by related commands (e.g. breakpoint related commands are together).
To see official help...
Command | Aliases | Example | Comments |
---|---|---|---|
help |
h |
h |
list top level of all commands |
help cmd |
h cmd-alias |
h n |
list the details of a command (example shows requesting details for the next command) (this works for all commands) |
Feel free to copy and paste this list into a README, issue or elsewhere in your project.
#Resume Phrase Matcher code | |
#importing all required libraries | |
import PyPDF2 | |
import os | |
from os import listdir | |
from os.path import isfile, join | |
from io import StringIO |