Skip to content

Instantly share code, notes, and snippets.

Avatar
🏗️
Developing...

Safi myuseringithub

🏗️
Developing...
View GitHub Profile
View - Network Google Cloud Firewall
Network Google Cloud Firewall rules:
tcp:8080
udp:8080
tcp:8081
tcp:8082
tcp:8083
tcp:8084
tcp:8085
tcp:8086
tcp:8087
View Firebase Backups
https://intense-heat-1283.firebaseio.com/.json?format=export&auth=6f1iIOoYc5pFnZ0vgly5DYYwWWX3BZ5a1KDSCBFK
View - Docker Composer
# DOCKER-COMPOSER
#installation
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-14-04
# https://docs.docker.com/compose/reference/overview/
docker-compose build -f X
docker-compose -f app.dockercompose.yaml build
# Build and run all services/containers in the docker-compose file.
docker-compose up
View - Commands
# set path to use in command line
set PATH=%PATH%;”C:\Program Files\Git\usr\bin"
set PATH=%PATH%;”C:\Program Files\Oracle\VirtualBox;"
View Nodejs
# Node.js
# versions
node -v
node -p 'process.versions.v8'
# Install nodejs
# Using Debian, as root
sudo curl -sL https://deb.nodesource.com/setup_5.x | bash -
sudo apt-get update
View - Commands
echo "# webapp-radioscanner" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/myuseringithub/webapp-radioscanner.git
git push -u origin master
# keep forked repo up to date
https://gist.github.com/CristinaSolana/1885435
View Delete all pipeline build history
# Delete all build history of specific job pipeline.
# http://codeketchup.blogspot.co.il/2016/05/how-to-clean-and-reset-jenkins-build.html
def jobName = "education-webapp"
def job = Jenkins.instance.getItem(jobName)
job.getBuilds().each { it.delete() }
job.nextBuildNumber = 1
job.save()
View Patterns
// Check if defined and value;
const compiledToES5 = !!(optimizeOptions.js && optimizeOptions.js.compile);
You can’t perform that action at this time.