Skip to content

Instantly share code, notes, and snippets.

daymeter:accounts-todoist: updating npm dependencies -- todoist...
/home/kevin/.meteor/packages/meteor-tool/.2.5.0.1wy4v7o.yrnhl++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:218
throw error;
^
Error: ENOENT: no such file or directory, rename '/home/kevin/code/meteor/apps/daymeter/app/packages/daymeter_accounts-todoist/.npm/package-new-1qxl97s.31js' -> '/home/kevin/code/meteor/apps/daymeter/app/packages/daymeter:accounts-todoist/.npm/package'
at Object.renameSync (fs.js:797:3)
at /home/kevin/.meteor/packages/meteor-tool/.2.5.0.1wy4v7o.yrnhl++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/fs/tools/fs/files.ts:1641:23
at attempt (/home/kevin/.meteor/packages/meteor-tool/.2.5.0.1wy4v7o.yrnhl++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/fs/tools/fs/files.ts:1726:9)
at Promise.catch.cp_r.preserveSymlinks (/home/kevin/
#!/bin/sh
SSH_ASKPASS='/usr/lib/seahorse/ssh-askpass'
export SSH_ASKPASS
# Might need to wrap this in a DESKTOP_SESSION check, but this should be OK...
eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
prefix=$1
filename=$2
target_dir_name=custom-import-"$prefix"
target_dir="$DIR"/../../"$target_dir_name"
print_usage() {
echo "Usage: ddev import <prefix> <path to .sql or .sq.gz file>"
}
@wizonesolutions
wizonesolutions / .tmux.conf
Created August 20, 2019 13:04
tmux configuration
#set -g default-terminal screen-256color
set -g history-limit 999999999
set -ga update-environment ' SSH_AUTH_SOCK SSH_ASKPASS DESKTOP_SESSION EDITOR'
#set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock
#set-environment -g 'SSH_AUTH_SOCK' /run/user/1000/keyring/ssh
#set-option -g default-command "reattach-to-user-namespace -l fish"
# # run bash first cuz fish is mean
@wizonesolutions
wizonesolutions / README.md
Created July 2, 2019 11:17
dkms.conf for backport-iwlwifi

To use this, first ensure you can build the kernel modules as detailed on https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/core_release

git checkout release/core46 # or whatever release you're using; this documentation will assume core46.

A make command, a sed command, and another make command. DON'T INSTALL YET (we'll do that with DKMS).

Now, make sure your cloned repo is located at /usr/src/iwlwifi-release-core46. Then:

sudo dkms add -m iwlwifi -v release-core46
Program received signal SIGFPE, Arithmetic exception.
0x00007fffee8f3068 in zend_inference_calc_range (
op_array=op_array@entry=0x7fffdde9cdc8, ssa=ssa@entry=0x7fffddeb3270,
var=var@entry=8, widening=widening@entry=0, narrowing=narrowing@entry=1,
tmp=tmp@entry=0x7fffffffb590)
at /build/php7.1-B6kC12/php7.1-7.1.0/ext/opcache/Optimizer/zend_inference.c:728
728 /build/php7.1-B6kC12/php7.1-7.1.0/ext/opcache/Optimizer/zend_inference.c: No such file or directory.
(gdb) bt
#0 0x00007fffee8f3068 in zend_inference_calc_range (
op_array=op_array@entry=0x7fffdde9cdc8, ssa=ssa@entry=0x7fffddeb3270,
#drupalironcamp OR @drupalironcamp OR "Drupal Iron Camp" OR "Iron Camp" OR "IronCamp" OR "Drupal IronCamp" OR "DrupalIronCamp" OR from:@drupalironcamp
@wizonesolutions
wizonesolutions / HelloWorldPrinter.php
Created November 12, 2016 17:15
DrupalCamp Oslo 2016
// Copyright (c) 2016 Eirik Morland http://i.giphy.com/3o7TKHyJHIFAXODsmQ.gif
<?php
function print_hello_world() {
print "Hello world!";
}
print_hello_world(); // Prints "Hello world!"
<?php
namespace Long\String\With\Backslashes;
<td class="views-field views-field-title"[^>]*>\s*<a href="/node/({id}.+?)">({summary}.+?)</a>
@wizonesolutions
wizonesolutions / vhost.conf
Created April 27, 2015 09:29
Apache PHP config
<Directory /home/example/public_html>
# Set PHP-FPM directory options
Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
allow from all
AllowOverride All
</Directory>
RewriteEngine on
# Configure PHP-FPM to handle PHP
RemoveHandler .php