See also: https://danieldk.eu/Posts/2020-08-31-MKL-Zen.html
Compile this:
int mkl_serv_intel_cpu_true() {
return 1;
}into a shared library: gcc -shared -fPIC -o libfakeintel.so fakeintel.c
| ########################### | |
| # | |
| # Version: 1.8.5 | |
| # | |
| # If you edit this file, do not forget to uncomment any lines | |
| # that you change. | |
| # The pound(#) symbol may be used anywhere for comments. | |
| # | |
| # To specify a key, you can use 'xbindkeys --key' or | |
| # 'xbindkeys --multikey' and put one of the two lines in this file. |
| #!/usr/bin/python | |
| # encoding: utf-8 | |
| # Copyright: (c) 2012, Matt Wright <matt@nobien.net> | |
| # Copyright: (c) 2013, Alexander Saltanov <asd@mokote.com> | |
| # Copyright: (c) 2014, Rutger Spiertz <rutger@kumina.nl> | |
| # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
| from __future__ import absolute_import, division, print_function |
| import socket, struct | |
| def ip_addr_to_bin_str(ip): | |
| # To support IPv6, play with socket.inet_pton. | |
| return format(struct.unpack('!I', socket.inet_aton(ip))[0], 'b') | |
| def ip_in_cidr_net(ip_address, cidr_network): | |
| ip_bin = ip_addr_to_bin_str(ip_address) | |
| # Extract the "base" IP from the network address |
| #!/usr/bin/env python | |
| # | |
| # Install selenium with 'pip install selenium' and the related | |
| # geckodriver for the Firefox browser. | |
| # Extracts all chapters of the given manga url, but downloads only the given | |
| # chapter and the following ones, to avoid fetch already downloaded chapters. | |
| # | |
| # The trick is to use a small piece of js code to trigger the download, | |
| # which will auto-download since we load Firefox with a profile that | |
| # never asks to download mangaeden images. |
| <script> | |
| document.addEventListener('scroll', function(){ | |
| var h = document.documentElement, | |
| b = document.body, | |
| st = 'scrollTop', | |
| sh = 'scrollHeight'; | |
| var percent = parseInt ( (h[st]||b[st]) / ((h[sh]||b[sh]) - h.clientHeight) * 100); | |
See also: https://danieldk.eu/Posts/2020-08-31-MKL-Zen.html
Compile this:
int mkl_serv_intel_cpu_true() {
return 1;
}into a shared library: gcc -shared -fPIC -o libfakeintel.so fakeintel.c
| #!/usr/bin/env python3 | |
| import argparse | |
| import getpass | |
| import logging | |
| import os | |
| # Check for values inside the environment variables and, if any, set them in the 'default' | |
| # parameter of argparse, so that we don't duplicate code. Just make sure not to use '%(default)s' | |
| # inside the help method, or it would print the env var and not the actual default, if an env var |
Richiedere l'accesso per pubblicare pagine richiede alcuni semplici step:
nome.cognome va benissimo) e una passwordSviluppatore software (A), un motivo qualunque per essersi iscritti, ad es. Voglio imparare git (B), indicare che si usera' Gitlab come singolo (C) e infine scegliere di Unirsi ad un progetto esistente (D)
Welcome to GitLab, che significa che non si e' stati ancora aggiunti al progetto/repository che contiene| --- | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: gophish | |
| labels: | |
| app: gophish | |
| spec: | |
| replicas: 1 | |
| strategy: |