- This is quick and dirty and not terribly maintainable. But it's very useful for creating quick cards from the terminal. Requires familiarity with Trello and a basic understanding of bash.
- Log-in to Trello.
- Go to: https://trello.com/1/appKey/generate
- Make note of your key. Replace any mention of
YourTrelloKey
with this hash. - Create a token. Go to https://trello.com/1/authorize?key=YourTrelloKey&name=SimpleBASHScript&expiration=never&response_type=token&scope=read,write in your browser and follow directions.
- Make note of the token. Replace any mention of
YourTrelloToken
with this looong hash. - Pick a reasonable number of the most popular boards you use. Grab the URLs of those boards. At the same time, think of short, one-word, easy-to-remember names for each board (e.g., work, homeprojects, wedding).
- Grab the board IDs of the boards you chose. It'll be the ~8 character hash-like string in the URL. E.g., for https://trello.com/b/aWsGTrsD/work the ID is aWsGTrsD
- One by one, plug thos
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
// Since .woff has almost perfect support all the way back to IE9 except for Opera Mini, | |
// I removed the calls to .eot, .ttf and .svg. to streamline the mixin -- http://caniuse.com/#search=woff | |
// Note: IE8, IE7, IE6, old Safari in Android and iOS will gracefuly degrade to system fonts. | |
@mixin fontFace($font-family, $file-path) { | |
@font-face { | |
font: { | |
family: $font-family; | |
weight: normal; | |
style: normal; | |
} |
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
<?php | |
/** | |
* @file | |
* Default theme implementation to display a block. | |
* | |
* Available variables: | |
* - $block->subject: Block title. | |
* - $content: Block content. | |
* - $block->module: Module that generated the block. |
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
<?php | |
require('../library/Solarium/Autoloader.php'); | |
Solarium_Autoloader::register(); | |
$client = new Solarium_Client(); | |
$client->setHost('192.168.1.2'); | |
$client->setCore('geonames'); | |
$query = new Solarium_Query_Select; |
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
<?php | |
$order_type = "default"; | |
$store_id = 1; | |
$uid = 0; | |
$entity_type_manager = \Drupal::service('entity_type.manager'); | |
$order_storage = $entity_type_manager->getStorage('commerce_order'); | |
$new_order = $orderStorage->create([ | |
'type' => $order_type, | |
'store_id' => $store_id, |
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/python3.6 | |
"""AutoDelete | |
This script auto deletes messages from your gmail inbox. | |
The perfect usecase is deleting the OTP messages received from banks after certain time period. | |
or deleting the messages received from certain services which doesn't have unsubscribe option. | |
Many parts of this script are copied from EZGmail by Al Sweigart (https://github.com/asweigart/ezgmail) | |
""" |
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
<?php | |
// The drupal_set_message() function is being deprecated! | |
// @see https://api.drupal.org/api/drupal/core%21includes%21bootstrap.inc/function/drupal_set_message/8.5.x | |
// > Deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. | |
// > Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead. | |
// In some custom code. | |
\Drupal::messenger()->addMessage('Say something else'); |
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 bash | |
### | |
# | |
# install_mysql.sh | |
# | |
# This script assumes your Vagrantfile has been configured to map the root of | |
# your application to /vagrant and that your web root is the "public" folder | |
# (Laravel standard). Standard and error output is sent to | |
# /vagrant/vm_build.log during provisioning. |
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
# -*- coding: utf-8 -*- | |
# requires python-ldap (usually pip install python-ldap) | |
# But this package requires OpenLDAP libraries, so it is a pain to install it on Windows. | |
# So, if you're on Windows, I recomment to use pre-compiled binaries with this command (virtualenv supported): | |
# pip install https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/python_ldap-3.1.0-cp37-cp37m-win_amd64.whl | |
import ldap | |
from ldap.controls import SimplePagedResultsControl |
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
curl -X PUT -T ./{file.dat} -H "x-ms-date: $(date -u)" -H "x-ms-blob-type: BlockBlob" "https://{storageaccount}.blob.core.windows.net/backups/{file.dat}?{sas-token}" |
OlderNewer