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
#!/bin/bash | |
function help { | |
echo "Add collaborators to one or more repositories on github" | |
echo "" | |
echo "Syntax: $0 -u user [-l] [-D] -r repo1,repo2 <collaborator id>" | |
echo "" | |
echo " -u OAuth token to access github" | |
echo " -l list collaborators" | |
echo " -r repositories, list as owner/repo[,owner/repo,...]" |
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
00:00 | |
sudo npm install -g credstash-cli expo-cli00:49 | |
Exit code: 1 | |
#!/bin/bash -eo pipefail | |
sudo npm install -g credstash-cli expo-cli | |
[..................] / rollbackFailedOptional: verb npm-session d7e19e1c1bacc66 | |
[..................] / rollbackFailedOptional: verb npm-session d7e19e1c1bacc66 | |
[..................] \ rollbackFailedOptional: verb npm-session d7e19e1c1bacc66 |
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
pragma solidity ^0.4.23; | |
contract Box { | |
address public owner; | |
uint public pricePerDay; // in wei? | |
int public lat; // lattitude multiplied by 10 000? | |
int public long; // longitude multiplied by 10 000? | |
string dimentions; // L*W*H in cm | |
address public productContract; | |
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
## | |
# Instalation | |
# download the file | |
# source it | |
## | |
DOWNLOADS_DIR="/sdcard/Download" | |
PROFILE_FILE="/sdcard/.profile" | |
howto-root-firetvstick-1() { |
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
## | |
# Shorthand Stuff | |
## | |
alias qfind="find . -name " | |
alias pg='ps aux | grep' #requires an argument | |
alias openports='netstat -nape --inet' | |
alias ll="ls -l" | |
alias show_hidden="defaults write com.apple.finder AppleShowAllFiles YES" | |
alias hide_hidden="defaults write com.apple.finder AppleShowAllFiles NO" |
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
# docker-compose.yml | |
... | |
command: npm run debug | |
ports: | |
- "3000:3000" | |
- "9229:9229" | |
... | |
-------------------------------------------------------- |
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
version: '3' | |
services: | |
web: | |
image: 'gitlab/gitlab-ce:latest' | |
restart: always | |
hostname: 'gitlab.example.com' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://gitlab.example.com' | |
nginx['listen_port'] = 80 |
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 node | |
const path = require('path'); | |
const fs = require('fs'); | |
const _ = require('lodash'); | |
let p = (...args) => path.join.apply(this, [__dirname, '..', ...args]); | |
const NODE_MODULES_DIR = p('node_modules'); | |
const NODE_MODULES_COMPARE_DIR = p('node_modules.bk'); | |
const MANIFEST = require(p('package.json')); |
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
FROM java:7 | |
RUN mkdir /opt/aem/ | |
WORKDIR /opt/aem/ | |
EXPOSE 4502 | |
ADD ./AEM_6.1_Quickstart.jar /opt/aem/AEM_6.1_Quickstart.jar | |
ADD ./license.properties /opt/aem/license.properties | |
RUN java -jar AEM_6.1_Quickstart.jar -unpack -v |
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
function traverseReplace(find, replace, object, dest) { | |
Object.keys(opts).forEach(function (key) { | |
var copy = object[key]; | |
key = key.replace(find, replace); | |
if (typeof copy === 'object') { | |
dest[key] = {}; | |
return traverseReplace(find, replace, copy, dest[key]); | |
} | |
if (typeof copy === 'string') { | |
dest[key] = copy.replace(find, replace); |
NewerOlder