Fork your own copy of the DrupalConsole repository to your account
Get a copy of your recently cloned version of console in your machine.
$ git clone [email protected]:[your-git-user-here]/DrupalConsole.git
#!/bin/bash | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.node.pkg.bom \ | |
| while read i; do | |
sudo rm /usr/local/${i} | |
done | |
sudo rm -rf /usr/local/lib/node \ | |
/usr/local/lib/node_modules \ | |
/var/db/receipts/org.nodejs.* |
Fork your own copy of the DrupalConsole repository to your account
Get a copy of your recently cloned version of console in your machine.
$ git clone [email protected]:[your-git-user-here]/DrupalConsole.git
下载 https://openvpn.net/index.php/access-server/download-openvpn-as-sw.html, http://swupdate.openvpn.org/as/openvpn-as-2.1.4-Ubuntu14.amd_64.deb
安装 sudo dpkg -i openvpn-as-2.1.4-Ubuntu14.amd_64.deb
设置密码:sudo passwd openvpn
访问网页 https://xxx:943/admin 修改端口(/admin/server_network_settings),允许自动登录(admin/user_permissions),重启(1 停止,2 启动)服务(/admin/status_overview),账号密码为 openvpn,[上一步设置的密码]
UPDATE: https://github.com/tassoevan/pdo-oci-extension
Special thanks to:
#!/bin/bash -e | |
# | |
# Easy VirtualBox VM handling from the command line | |
BASE_TEMPLATE="<uid-of-template-vm>" | |
function show_help() { | |
echo "Usage: $0 [cmd]" | |
echo "Valid commands:" | |
echo " list List available virtual machines" |
Code snippet tested.
$storage = \Drupal::entityManager()->getStorage("node");
$query = \Drupal::entityQuery('node');
$query->condition("type", $bundle);
$result = $query->execute();
foreach ($result as $nid) {
$node = $storage->load($nid);
$node->changed = REQUEST_TIME;
If you are in a location that allows SSH but doesn't allow access to GitHub (I'm looking at you India), here's an easy way to get around it.
nc
http://nc110.sourceforge.net/ds ev '$uuid_service=\Drupal::service("uuid");$uuid=$uuid_service->generate();echo "$uuid\n";'