This Web Components keeps the year in your copyright notice up-to-date.
export { CopyrightYearElement }
const name = "copyright-year";
class CopyrightYearElement extends HTMLSpanElement {
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
alias k="kubectl" | |
alias v="vim" | |
function ns () { | |
kubectl config set-context --current --namespace=$1 | |
} | |
export drc="--dry-run=client -oyaml" | |
export drs="--dry-run=server -oyaml" |
#!/bin/sh | |
#SparseChunks to image Convertor for motorola images by Erfan Abdi | |
#special thanks to superR for header removal script | |
#make sure you have only one image with sparse chunks (system or oem) | |
echo "Converting all SparseChunks to Raw Image" | |
./simg2img *chunk* system.img.raw | |
echo "Removing Moto Header" | |
offset=$(LANG=C grep -aobP -m1 '\x53\xEF' system.img.raw | head -1 | gawk '{print $1 - 1080}') | |
dd if=system.img.raw of=system_moto.img ibs=$offset skip=1 2>&1 |
/** | |
* Enum com todas as Unidades da Federação do Brasil. Contém o nome da Unidade, a sigla e a capital | |
* da Unidade da Federação. As unidades estão listadas por ordem alfabética no enum. | |
* | |
* @author Ricardo Giaviti | |
* @version 1.1.1 | |
* @since 1.0.0 | |
*/ | |
public enum UnidadeFederacao { |
Go to 'Workers' page
Sign the transaction
from enum import Enum | |
import time | |
TEMP_PATH = "/sys/devices/virtual/thermal/thermal_zone0/temp" | |
FAN_PATH = "/sys/class/thermal/cooling_device0/cur_state" | |
class FanSpeed(Enum): | |
OFF = 0 | |
LOW = 1 |
I want to disable monitor mode for the interal wlan0 card of the pi. If you want to do that too and use wlan1 as mon0 do:
sed -i 's/phy0/phy1/g' /usr/bin/pwnlib
If you want wlan0 and wlan1 in monitor mode and want to use wlan1 as pwnagotchi device, use this ps did didn't work for me but above example
sudo su
rm /etc/network/interfaces.d/wlan1-cfg
Many different applications claim to support regular expressions. But what does that even mean?
Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.
The information here is just copied from: http://regular-expressions.mobi/refflavors.html