alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
# THIS DOESNT WORK YET: xcbuild openIDEConsole # … then switch to Xcode ➡️
xcbuild showSpecs
xcbuild build <foo.pif> [—target <target>]
DJANGO_API_URL=https://127.0.0.1 | |
DJANGO_WS_URL=wss://127.0.0.1 | |
DJANGO_ALLOWED_HOSTS="*" | |
DJANGO_JWT_SECRET_KEY=mysecretkey | |
DJANGO_DEBUG=False | |
DB_NAME=mydb | |
POSTGRES_DB=mydb | |
DB_USER=myuser | |
POSTGRES_USER=myuser | |
DB_PASSWORD=mypassword |
#!/bin/bash | |
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
class "Apple-Intel-Netboot" { | |
# Limit this class to only Intel Apple machines | |
match if substring (option vendor-class-identifier, 0, 14) = "AAPLBSDPC/i386"; | |
option dhcp-parameter-request-list 1,3,17,43,60; # Send these options to the client (possibly forcing it, if the client didn't request it) | |
# From: http://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xml | |
# 1 - Subnet Mask | |
# 3 - Router | |
# 17 - Root Path | |
# 43 - Vendor Specific | |
# 60 - Class ID |
#!/bin/sh | |
# This shell script is made by SyneArt <[email protected]> | |
####################################### | |
# BUILD WIRESHARK ON UBUNTU OR DEBIAN # | |
####################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |------------------------------------------------------| | |
# | OS | Wireshark | Test | Last test | | |
# |----------------|----------------|------|-------------| |
#ifndef __LIST_H | |
#define __LIST_H | |
/* This file is from Linux Kernel (include/linux/list.h) | |
* and modified by simply removing hardware prefetching of list items. | |
* Here by copyright, credits attributed to wherever they belong. | |
* Kulesh Shanmugasundaram (kulesh [squiggly] isis.poly.edu) | |
*/ | |
/* |
This helped fix a helm upgrade from 9.14.1 to 10.3.2 corrresponding to traefik 2.4.2 to 2.5.1
Traefik 2.4 to 2.5 includes CRD updates and are mentioned in the migration notes
In case of updates check https://github.com/traefik/traefik/tree/v2.5/docs/content/reference/dynamic-configuration
This file contained references to required CRDs
This guide will explain how to set up a [VirtualBox][] VM running [Ubuntu 20.04][] and, using the new [autoinstall][] tool and cloud-init, install OpenSSH server, add a group and a user, who can then connect to the machine via SSH. This was done on a 2016 MacBook Pro running macOS 10.15 "Catalina" and VirtualBox 6.1.6 (with the VirtualBox Guest Additions installed).
You will also need a group name, a username, a password hash and an SSH key pair.
#!/usr/bin/bash -xe | |
cat <<EOF > "${HOME}/.config/systemd/user/zoom.slice" | |
[Slice] | |
AllowedCPUs=0-4 | |
MemoryHigh=6G | |
EOF | |
cat /usr/share/applications/Zoom.desktop | sed -E 's#^(Exec=).*$#Exec=/usr/bin/systemd-run --user --slice=zoom.slice /opt/zoom/ZoomLauncher#' > "${HOME}/.local/share/applications/Zoom.desktop" |
Custom format for displaying bytes as kb
, mb
, gb
or tb
.
Response to a few places on the internet: https://productforums.google.com/forum/#!topic/docs/x_T_N-yRUYg And here: https://stackoverflow.com/questions/1533811/how-can-i-format-bytes-a-cell-in-excel-as-kb-mb-gb-etc
Here is one that I have been using:
[<1000000]0.00," KB";[<1000000000]0.00,," MB";0.00,,," GB"