This file contains hidden or 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 zx | |
| // Parse the output of displayplacer list to a javascript object | |
| async function getCurrentConfig() { | |
| return (await quiet($`displayplacer list`)).stdout | |
| .split('\n\n') | |
| .filter(screen => screen.startsWith('Persistent')) | |
| .map(screen => { | |
| return screen | |
| .split('\n') |
This file contains hidden or 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
| #!/bin/bash | |
| BLUE='\e[0;34m' | |
| WHITE='\e[1;37m' | |
| for ITEM in * | |
| do | |
| GIT_BRANCH=$([ -d $ITEM/.git ] && git --work-tree=$ITEM --git-dir=$ITEM/.git rev-parse --abbrev-ref HEAD || echo ' -') | |
| LS_DIR=$(CLICOLOR_FORCE=1 ls -G $@ -d $ITEM) | |
| printf '%b %s\n' "${LS_DIR}" $GIT_BRANCH; |
This file contains hidden or 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 | |
| class Symfony1TinkerwellDriver extends TinkerwellDriver | |
| { | |
| public function canBootstrap($projectPath) | |
| { | |
| return file_exists($projectPath . '/config/ProjectConfiguration.class.php'); | |
| } |
This file contains hidden or 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 nix-shell | |
| ` | |
| #! nix-shell --packages nodejs_18 -i node | |
| ` | |
| const https = require('https'); | |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const util = require('util'); | |
| const readline = require('readline') |
This file contains hidden or 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
| #! /bin/sh | |
| pushd `dirname $0` > /dev/null | |
| lines=`cat tags.txt`; | |
| allTags=() | |
| while read -r line; do | |
| allTags+=("$line") | |
| done < tags.txt |
This file contains hidden or 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
| # read more here http://tautt.com/best-nginx-configuration-for-security/ | |
| # don't send the nginx version number in error pages and Server header | |
| server_tokens off; | |
| # config to don't allow the browser to render the page inside an frame or iframe | |
| # and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
| # if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri | |
| # https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options | |
| add_header X-Frame-Options SAMEORIGIN; |
This file contains hidden or 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
| <% | |
| Function in_array(element, arr) | |
| in_array = False | |
| dim i | |
| For i=0 To Ubound(arr) | |
| If arr(i) = element Then | |
| in_array = True | |
| Exit Function | |
| End If | |
| Next |
This file contains hidden or 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
| <div id="chat-messages" style="height: 432px;"><div class="message" data-cid="4684278-06eb17f3f0"><i class="icon icon-chat-ambassador"></i><div class="timestamp" style="display: block;">3:05pm</div><span class="from ambassador clickable">Fungus </span><span class="text"> @DJ Nikki J whoa whoa whoa</span></div><div class="message" data-cid="3981366-c391896877"><i class="icon icon-chat-manager"></i><div class="timestamp" style="display: block;">3:05pm</div><span class="from staff clickable">RaptorJeebus </span><span class="text"> work*</span></div><div class="message" data-cid="4684278-b1bc114feb"><i class="icon icon-chat-ambassador"></i><div class="timestamp" style="display: block;">3:05pm</div><span class="from ambassador clickable">Fungus </span><span class="text"> cookies are enough</span></div><div class="message" data-cid="4104660-1acce0ca33"><div class="timestamp" style="display: block;">3:05pm</div><span class="from clickable">DJ Nikki J </span><span class="text"> bahahahaha i am kid |
This file contains hidden or 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
| window.onerror = function (message, filename, lineno, colno, error) { | |
| if (error) { | |
| $.post('https://dps-pub.slack.com/services/hooks/incoming-webhook?token=YOUR TOKEN', {payload: JSON.stringify({ | |
| text: '@ThatTomPerson: \n' + error.stack | |
| })}); | |
| } | |
| }; |
This file contains hidden or 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
| (function (a, b) { | |
| a.keydown(function (e) { | |
| if( e.target.type !== 'text') { | |
| switch (e.which) { | |
| case 37: // left | |
| Search.pagination.prev(); | |
| break; | |
| case 39: // right | |
| Search.pagination.next(); | |
| break; |