Skip to content

Instantly share code, notes, and snippets.

View zaporylie's full-sized avatar
💭
I may be slow to respond.

Jakub Piasecki zaporylie

💭
I may be slow to respond.
View GitHub Profile
@zaporylie
zaporylie / native+docker+volume
Created September 20, 2017 12:26
Drupal on Docker Mac performance test
This is ApacheBench, Version 2.3 <$Revision: 1757674 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests

Keybase proof

I hereby claim:

  • I am zaporylie on github.
  • I am zaporylie (https://keybase.io/zaporylie) on keybase.
  • I have a public key ASABwOebnU0g_uYA-djX90uUlTTaeMk1kTB0pZoKbCr0Wgo

To claim this, I am signing this object:

@zaporylie
zaporylie / gist:60c8b4373c32740ba9007eedab8ce43f
Created April 13, 2017 08:58
Missing software on Ubuntu
# Install openvpn
sudo apt install network-manager-openvpn-gnome
# Install curl & git
sudo apt install git curl
@zaporylie
zaporylie / Ubuntu
Last active April 12, 2017 21:28
Getting start with fish
# install fish
sudo apt-add-repository ppa:fish-shell/release-2
sudo apt-get update
sudo apt-get install fish
# make fish the default shell
chsh -s /usr/bin/fish
# install fisher
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher
@zaporylie
zaporylie / README.md
Created January 25, 2017 19:22
Setting up C.H.I.P

Prerequisites

plug in to mac and connect via screen

$ screen /dev/tty.usbmodem....

login

chip / chip

Commands:

shutdown

@zaporylie
zaporylie / field-instances.php
Last active January 20, 2016 11:22
Exporting/importing fields/groups
<?php
/**
* Get field/instance
*/
function get_field_install($field_name) {
$field = field_info_field($field_name);
unset($field['columns']);
unset($field['id']);
unset($field['indexes']);
unset($field['foreign keys']);
$view = new view();
$view->name = 'FAQ';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'FAQ';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
@zaporylie
zaporylie / 2239073-google-script-5.gs
Last active August 29, 2015 13:59
Mentors list generator
function generateHtmlList() {
var offset = 2;
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var range = sheet.getRange(1,1,(sheet.getLastColumn() - offset),3);
var data = range.getValues();
var stringToDisplay = '';
for (var i = offset; i < data.length; i++) {
stringToDisplay += data[i][1] + ' (';