$ microk8s enable registry
# or if you want to specify the amount of storage to be added. E.g., to use 40Gi:
$ microk8s enable registry:size=40Gi
Discover gists
#define エスティーディー std | |
#define アイオーストリーム <iostream> | |
#define ユージング using | |
#define イフ if | |
#define インクルード #include | |
#define イント int | |
#define シーアウト cout | |
#define シーイン cin | |
#define ネームスペース namespace | |
#define ブール bool |
#!/bin/bash | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz | |
sudo tar xvzf postman-linux-x64.tar.gz -C /opt | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
cat << EOF > ~/.local/share/applications/postman2.desktop | |
[Desktop Entry] | |
Name=Postman | |
GenericName=API Client |
-
Click on the project you want to rename in the "Project navigator" in the left panel of the Xcode window.
-
In the right panel, select the "File inspector", and the name of your project should be found under "Identity and Type". Change it to your new name.
-
When the dialog asks whether to rename or not rename the project's content items, click "Rename". Say yes to any warning about uncommitted changes.
import java.util.*; | |
class Solution{ | |
public static void main(String []argh) | |
{ | |
Scanner sc = new Scanner(System.in); | |
while (sc.hasNext()) { | |
String input= sc.next(); | |
System.out.println(checkIfBalanced(input,'{', '}')&&checkIfBalanced(input,'[', ']')&&checkIfBalanced(input,'(', ')')); | |
} |
This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple
) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic
module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple
driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.
In the default configuration of Active Directory, it is possible to remotely take over Workstations (Windows 7/10/11) and possibly servers (if Desktop Experience is installed) when their WebClient service is running. This is accomplished in short by;
- Triggering machine authentication over HTTP via either MS-RPRN or MS-EFSRPC (as demonstrated by @tifkin_). This requires a set of credentials for the RPC call.
- Relaying that machine authentication to LDAPS for configuring RBCD
- RBCD takeover
The caveat to this is that the WebClient service does not automatically start at boot. However, if the WebClient service has been triggered to start on a workstation (for example, via some SharePoint interactions), you can remotely take over that system. In addition, there are several ways to coerce the WebClient service to start remotely which I cover in a section below.
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated December 2021 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |
# Basic script for using the OpenAI Whisper model to transcribe a video file. You can uncomment whichever model you want to use. | |
# Author: ThioJoe ( https://github.com/ThioJoe ) | |
# Required third party packages: whisper | |
# See instructions for setup here: https://github.com/openai/whisper#setup | |
# - You can use the below command to pull the repo and install dependencies, then just put this script in the repo directory: | |
# pip install git+https://github.com/openai/whisper.git | |
import whisper | |
import io |