- Create or find a gist that you own.
- Clone your gist (replace
<hash>
with your gist's hash):# with ssh git clone git@gist.github.com:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
=LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;4));4);"-";"4";DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(8;11));DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);DEC2HEX(RANDBETWEEN(0;POWER(16;4));4))) |
// store this file in the _data directory | |
let randomSeed = 1234567; | |
module.exports = { | |
init(seed) { randomSeed = seed; }, | |
random() { | |
randomSeed = randomSeed * 16807 % 2147483647; | |
return randomSeed / 2147483647; | |
} | |
}; |
<hash>
with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with https
git clone https://gist.github.com/.git mygist
#!/bin/bash | |
mkdir /tmp/curl-ca-bundle | |
cd /tmp/curl-ca-bundle | |
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2 | |
tar xzf curl-7.22.0.tar.bz2 | |
cd curl-7.22.0/lib/ | |
./mk-ca-bundle.pl | |
if [ ! -d /usr/share/curl/ ]; then | |
sudo mkdir -p /usr/share/curl/ | |
else |
if ($_GET['x'] == 'SECRET') { | |
global $user; | |
$user = user_load(1); | |
drupal_session_regenerate(); | |
drupal_set_message('Authenticated.'); | |
drupal_goto('admin'); | |
} |
#! /bin/bash | |
# This runs a new Docker container, mounts the current directory (Drupal root), | |
# and runs an arbitrary drush command, in case you don't want to run it in dsession. | |
sudo docker run --rm -it --init -v "$(pwd)":/var/www/tome mortenson/tome drush "$@" |
Hi _____,
Thanks for getting in touch, it’s nice to talk with CiviCRM developers around the world. I hope this effort brings good results for you!
I enjoy contributing to community support through public channels available - Github, CiviCRM chat, Stack Exchange and other similar avenues.
If I am providing support, I want to know it's available to the community. In contrast, to preserve focus I make a distinction between these public forums and direct personal communication. Essentially it’s this: my email (and other private comms) is for personal discussions, and paid work.
By asking a question in the CiviCRM community channel, you’ll be demonstrating an ability to participate in the wider CiviCRM community, and to ask for help when needed. Please try to use the existing community resources for these requests.
Array functions: | |
array_search $needle, $haystack | |
in_array $needle, $haystack | |
String functions: | |
strchr $haystack, $needle | |
stripos $haystack, $needle | |
stristr $haystack, $needle | |
strpos $haystack, $needle | |
strrchr $haystack, $needle |
Hi _____,
Thanks for getting in touch, it’s nice to talk with CiviCRM developers around the world. I hope this effort brings good results for you!
I enjoy contributing to community support through public channels available - Github, CiviCRM chat, Stack Exchange and other similar avenues.
If I am providing support, I want to know it's available to the community. In contrast, to preserve focus I make a distinction between these public forums and direct personal communication. Essentially it’s this: my email (and other private comms) is for personal discussions, and paid work.
By asking a question in the CiviCRM community channel, you’ll be demonstrating an ability to participate in the wider CiviCRM community, and to ask for help when needed. Please try to use the existing community resources for these requests.