**As a developer you have complete control over the signup and signin functionality...** | |
```shell | |
$ surreal sql --conn http://localhost:8000 --user root --pass root --ns test --db test | |
``` | |
```sql | |
-- optional : this is the default see --ns test --db test start server flags | |
-- USE NS test DB test; |
#!/bin/bash | |
# | |
# Usage: runperf ./my-benchmark-binary | |
# | |
# Script to run a benchmark / performance test in decent conditions. Based on: | |
# - https://www.llvm.org/docs/Benchmarking.html | |
# - "Performance Analysis and Tuning on Modern CPU" by Denis Bakhvalov, Appendix A. | |
# - https://github.com/andikleen/pmu-tools | |
# | |
# Note that this doesn't do any actual benchmarking, your binary must be able to do that all by itself. |
check current python linkage
% otool -L /Applications/Synalyze\ It\!\ Pro.app/Contents/MacOS/Synalyze\ It\!\ Pro | grep Python
/System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.16)
Download and install Python2.7.16 for macOS. By default this lands in /Library/Frameworks/Python.framework/Versions/2.7
Make a copy of the Synalize It! Pro app bundle, e.g. to your desktop.
cp -R /Applications/Synalyze\ It\!\ Pro.app ~/Desktop
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
We will tackle this process in 10 steps listed below.
I didn't want to repeat some sections well explained in the UEFI Process. You can refer there and follow due process.
Namely;
- Connecting to WiFi.
Attempting mysql -u root
fails with Access denied for user 'root'@'localhost
immediately after doing brew install mariadb
and starting mariadb with brew services start mariadb
.
To fix it (with MariaDB still running):
sudo mysql
then enter your Mac user passwordALTER USER 'root'@'localhost' IDENTIFIED BY 'newrootpassword';
replacingnewrootpassword
with the password you wish to use for the MariaDB root user.- Ctrl-C to exit mysql.
You should then be able to connect to MariaDB with mysql -u root -p
, then entering the root password when prompted.
from telethon.sync import TelegramClient | |
from telethon.tl.functions.messages import GetDialogsRequest | |
from telethon.tl.types import InputPeerEmpty | |
# Go to https://my.telegram.org/apps, sign in, go to API development tools, create an app, copy and paste below: | |
api_id = 111111 | |
api_hash = '2o23o13k1o3131' | |
phone = '+123456789' | |
client = TelegramClient(phone, api_id, api_hash) | |
client.connect() |
from telethon import TelegramClient | |
from telethon.errors.rpc_errors_401 import SessionPasswordNeededError | |
# (1) Use your own values here | |
api_id = 17349 | |
api_hash = '344583e45741c457fe1862106095a5eb' | |
phone = 'YOUR_NUMBER_HERE' | |
username = 'username' |
[I'm an inline-style link](https://www.somewebsite.com) | |
[I'm an inline-style link with title](https://www.somewebsite.com "somewebsite's Homepage") | |
[I'm a reference-style link][Arbitrary case-insensitive reference text] | |
[I'm a relative reference to a repository file](../blob/master/LICENSE) | |
[You can use numbers for reference-style link definitions][1] |