def test_transitive_editables_build(self):
c = TestClient()
libb = textwrap.dedent("""\
from conan import ConanFile
class LibB(ConanFile):
name = "libb"
version = "0.1"
Bundle npm package for browser
- Include the packages you want to bundle for browser
npm install --save pretty
- Edit
index.js
to export the functions you want to use
- Run
df -h
to see if you have the volume/vmfs/volumes/datastore1
ordatastore1
- Create the file
/vmfs/volumes/datastore1/backup.sh
to test it calling/vmfs/volumes/datastore1/backup.sh
to know this script is compatible with yoursh
version - Before testing, check if your
/etc/rc.local
shell bang is#! /bin/sh
, and update it here if not - Check if your WMware is running on UTC or in your local time zone with
date
command - Create the backup file with
cp -v /etc/vmware/esx.conf /vmfs/volumes/datastore1/esx.conf
- Put files backup files on
/vmfs/volumes/xxx
because else where vmware will delete them after reboot - Run
chmod +x /vmfs/volumes/datastore1/backup.sh
- Edit
/etc/rc.local.d/local.sh
and add the line/vmfs/volumes/datastore1/backup.sh
- Edit
/vmfs/volumes/datastore1
to your correct data volume
- Put files backup files on
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
#! /usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import timeit | |
import datetime | |
import argparse | |
import tempfile | |
import pathlib |
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
/build |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import timeit | |
import datetime | |
import argparse | |
import pathlib | |
from pathlib import Path |
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
# Generated from JSON.g4 by ANTLR 4.7.1 | |
# encoding: utf-8 | |
from __future__ import print_function | |
from antlr4 import * | |
from io import StringIO | |
import sys | |
def serializedATN(): | |
with StringIO() as buf: |
Using git subtree to export a directory (with its history) from one git repository to another:
git subtree add --prefix=local_directory https://github.com/account_name/other_project_to_commits master
git subtree pull --prefix=local_directory https://github.com/account_name/other_project_to_commits develop
git subtree push --prefix=local_directory https://github.com/account_name/other_project_to_commits develop
If you prefer to avoid repeating the repository URL, then you can add it as a remote:
git remote add -f -t master --no-tags remote_name https://github.com/account_name/other_project_to_commits.git
Examples of remote name and local .git
directory:
git subtree add --squash --prefix=local_directory file:///D:/other_project_to_commits/.git master
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
#!/bin/bash | |
set -x | |
set -eu -o pipefail | |
function printerror | |
{ | |
set +x | |
printf '\n' | |
printf 'Usage\n' | |
printf ' %s "key name" "key password" "servidor ip" "server name (i.e., $HOSTNAME)"\n' "$0" |
Copy and move constructor example, rule of 5: https://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming)
Output example:
>test.exe
1 ''
2 'var'
3 'var2'
4 'var23'
5 'var24'
NewerOlder