This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- compile-command: "gcc -Wall -Werror -lcap -lseccomp contained.c -o contained" -*- */ | |
#define _GNU_SOURCE | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <grp.h> | |
#include <pwd.h> | |
#include <sched.h> | |
#include <seccomp.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
The following script seemd to help, giving a list of m1 compatible provider versions:
PROVIDER="hashicorp/google"
curl --silent https://registry.terraform.io/v1/providers/${PROVIDER}/versions | jq -r '.versions[] | select(.platforms[] | contains ({"os": "darwin", "arch": "arm64"})) | .version'
To make this work for the right option key, you need to set the key modifier to act as an escape sequence.
First, you need to set your left ⌥ key to act as an escape character.
After that, you can either change the current shortcut for ⌥ ← or create a new one in the profile shortcut keys with the following settings:
Keyboard Shortcut: ⌥←
Action: Send Escape Sequence
Directory | User | Group | Others (world) | who |
---|---|---|---|---|
0 | 420 | 000 | 000 | octal notations |
0 | 110 | 000 | 000 | bits |
d | rwx | rwx | rwx | named permissions |
0 | 6 | 0 | 0 | chmod numeric mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn prime? [x] | |
(def f (fn [i j] | |
(if (zero? (rem i j)) | |
false | |
(if (<= j (quot i j)) | |
(f i (+ j 1)) | |
true | |
)))) | |
(f x 2) | |
) |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_products_dict(products): | |
""" | |
Returns products dict with bundled products included to be used in email templates. | |
NOTE: DO NOT SAVE PRODUCT IN THIS METHOD, AS, WE ARE CHANGING PRICE OF BUNDLED PRODUCTS TO 0 | |
""" | |
lang = get_language()[:2] | |
products_dict = {} | |
try: | |
if products and products[0].get('source') == 'vas': | |
for product in products: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
typedef struct point { | |
int x; | |
int y; | |
} Point; | |
float distance(Point *p1, Point *p2) { | |
return sqrt( |
NewerOlder