Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
Discover gists
#!/usr/bin/env node | |
/* | |
If you run the script on an encoded file it will output a decoded file and | |
vise versa, because the action used to encode/decode is identical. The save | |
file format when decoded is plaintext JSON, which you can edit with your | |
favorite text editor. | |
You can find the save file at the following path. Please make a backup of the |
This is a mini-tutorial of sorts for getting started with gdb on the Switch, with the target audience being people who want to mod and/or reverse games, with no prerequisite knowledge of gdb. The goal will be to walk you through some of the basic workflows needed to use a debugger on the Switch, while being brief enough for skimming for when you forget things.
If some part is unclear, your OS doesn't have install instructions, or you feel part of your workflow should be added here, feel free to comment any additions.
(If you only need a quick reference Jump to the Appendix)
First off you'll need a version of GDB compatible with aarch64. This can be obtained via either a distribution of
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
import pandas as pd | |
import pandas.io.sql as sqlio | |
import psycopg2 | |
conn = psycopg2.connect("host='{}' port={} dbname='{}' user={} password={}".format(host, port, dbname, username, pwd)) | |
sql = "select count(*) from table;" | |
dat = sqlio.read_sql_query(sql, conn) | |
conn = None |
BitLocker encryption has become a common alternative for securing personal files and is nowadays natively supported by Linux, at least within GNOME. Some additional steps, however, are still required to ensure full MacOS compatibility. This guide describes the necessary steps to achieve it.
We require three packages: macFUSE, ntfs-3g (and brew), and dislocker.
// save to windows-user directory | |
linters: with_defaults(object_name_linter = NULL, | |
object_length_linter(50), | |
commented_code_linter = NULL, | |
object_usage_linter = NULL, | |
line_length_linter(120), | |
cyclocomp_linter = cyclocomp_linter(50)) |
#!/usr/bin/env bash | |
# Copyright (c) 2017 Brian 'redbeard' Harrington <redbeard@dead-city.org> | |
# | |
# dumpcerts.sh - A simple utility to explode a Traefik acme.json file into a | |
# directory of certificates and a private key | |
# | |
# Usage - dumpcerts.sh /etc/traefik/acme.json /etc/ssl/ | |
# | |
# Dependencies - | |
# util-linux |
%Categorias | |
categoria(fantasia). | |
categoria(novela). | |
categoria(ciencia_ficcion). | |
categoria(misterio). | |
categoria(poemas). | |
categoria(historia). | |
categoria(autoayuda). | |
categoria(romance). | |
categoria(aventura). |
Author: Chris
Date: 2017-02-17
線上MarkDown編輯器