Skip to content

Instantly share code, notes, and snippets.

View sercheo87's full-sized avatar
:octocat:

Sergio sercheo87

:octocat:
View GitHub Profile
var zip = new JSZip();
var count = 0;
var zipFilename = "zipFilename.zip";
var urls = [
'http://image-url-1',
'http://image-url-2',
'http://image-url-3'
];
urls.forEach(function(url){
@sercheo87
sercheo87 / Record iOS emulator video
Created May 24, 2020 00:47 — forked from issuran/Record iOS emulator video
How to capture iOS Simulator video
1- First of all, you have to run your app on the simulator.
2- Then, open the terminal
3- Now, you have to run the command you desire:
- Screenshot: xcrun simctl io booted screenshot
- Video: xcrun simctl io booted recordVideo <filename>.<file extension>.
For example: xcrun simctl io booted recordVideo appvideo.mov
4- Press cntrl + c to stop recording the video.
#!/bin/bash
# git-flow make-less installer for *nix systems, by Rick Osborne
# Based on the git-flow core Makefile:
# http://github.com/nvie/gitflow/blob/master/Makefile
# Licensed under the same restrictions as git-flow:
# http://github.com/nvie/gitflow/blob/develop/LICENSE
# Does this need to be smarter for each host OS?
8IOAA9BHZEG5IQG
@sercheo87
sercheo87 / Free O'Reilly Books.md
Created February 1, 2020 18:17 — forked from augbog/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Edited by: Paulo José de Oliveira Salgado
# Email: paulo@technosoftware.com.br
# Find all folders by name target
find . -name 'target' -type d
# Delete all folders by name target
rm -rf `find . -name target -type d`
export JKS_PASS=Passw0rd
export JKS_ALIAS=jbosseap
export NAME_JKS=master
$JAVA_HOME/bin/keytool -genkeypair -alias $NAME_JKS -storetype jks -keyalg RSA -keysize 2048 -keypass $JKS_PASS -keystore /root/jboss/host-domain/domain/configuration/$NAME_JKS.jks -storepass $JKS_PASS -dname "CN=jbosseap,OU=Sales,O=Cobiscorp,L=Raleigh,ST=NC,C=US"
export JKS_PASS=Passw0rd
export JKS_ALIAS=jbosseap
export NAME_JKS=master
$JAVA_HOME/bin/keytool -genkeypair -alias $NAME_JKS -storetype jks -keyalg RSA -keysize 2048 -keypass $JKS_PASS -keystore /root/jboss/host-slave1/domain/configuration/$NAME_JKS.jks -storepass $JKS_PASS -dname "CN=jbosseap,OU=Sales,O=Cobiscorp,L=Raleigh,ST=NC,C=US"
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/
PATH=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin:$PATH