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 | |
# this command finds all the `node_modules` folders under your current path and will prune them | |
find . | grep /node_modules$ | grep -v /node_modules/ | xargs rm -fR |
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
const PREFIX = 'synaptic' | |
const NpmRegExp = /^@?[a-z0-9\-]*([a-z0-9\-])?$/ | |
export default function requireByKind ( kind, given ) { | |
// Avoid access to specific files by restricting the `given` | |
if ( given.match( NpmRegExp ) ) { | |
throw new Error( `only alphanumeric names are valid` ) | |
} |
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 | |
# place this file at: /etc/hotplug.d/iface/99-login-fon | |
# Configurations | |
FON_USERNAME=email%40domain.com | |
FON_PASSWORD=123456 | |
FON_DELAY_UP=3 | |
COOKIE_JAR_PATH=/tmp/nos-fon-cookie-jar.$INTERFACE | |
. /lib/functions.sh |
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 | |
sudo docker stop $(sudo docker ps -q); | |
sudo docker rm $(sudo docker ps -a -q); | |
sudo rm -fR /var/lib/rancher/ |
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 | |
set -ex | |
# This scripts allows you to upload a binary to the iTunes Connect Store and do it for a specific app_id | |
# Because when you have multiple apps in status for download, xcodebuild upload will complain that multiple apps are in wait status | |
# Requires application loader to be installed | |
# See https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html | |
# Itunes Connect username & password | |
USER=changeme |