Skip to content

Instantly share code, notes, and snippets.

View pazthor's full-sized avatar
🎯
Focusing "el dominio"

Julio Cesar pazthor

🎯
Focusing "el dominio"
View GitHub Profile
@pazthor
pazthor / carl_hewitt_actor_model.md
Created November 10, 2016 05:12 — forked from rbishop/carl_hewitt_actor_model.md
Notes from Carl Hewitt on the Actor Model

Carl Hewitt on Actors

Actor - Fundamental unit of computation, a computation model - not just a form of concurrency

An Actor has three essential elements:

  • 1 - Processing - you have to get something done
  • 2 - Storage - you have to be able to remember things
  • 3 - Communication
@pazthor
pazthor / linux_fun.md
Created January 12, 2017 22:26 — forked from marianposaceanu/linux_fun.md
How to have some fun using the terminal.

Linux fun-o-matic

How to have some fun using the terminal.

  1. Install cowsay [0] via : sudo apt-get install cowsay
  2. Install fortune [1] via : sudo apt-get install fortune
  3. Make sure you have Ruby installed via : ruby -v
  4. Install the lolcat [2] via : gem gem install lolcat
  5. Profit!
@pazthor
pazthor / DockerTips.md
Last active March 26, 2017 05:10
Comandos de docker para borrar los contenedores

#We first stop and remove all containers from your host#

docker container stop $(docker container ls -aq)
docker container rm $(docker container ls -aq)

con f pa' forzar docker container rm -f $(docker container ls -aq)

@pazthor
pazthor / texto-escondido.sh
Last active May 7, 2017 05:04
Buscar texto excondido usando grep
grep -Ril '.' -e 'texto-escondido'
@pazthor
pazthor / keybase.md
Last active June 7, 2019 02:25
keybase.md

Keybase proof

I hereby claim:

  • I am pazthor on github.
  • I am pazthor (https://keybase.io/pazthor) on keybase.
  • I have a public key ASAVmbCJBBpDDQ_YeoXbypXVfieoFN0ML-S0pgNYAoPhkgo

To claim this, I am signing this object:

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@pazthor
pazthor / randomJs.js
Created May 1, 2019 04:56
Fragmento de código de Javascript
<div class="pull-left">
<button onclick="futuresAppointments()" class="btn btn-primary ladda-button">
<i class="fa fa-c"></i>Ver citas a partir de mañana
</button>
</div>
<script>
function futuresAppointments(){
console.log("click");
let start = moment().add(1, 'days');
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master

How to download your Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}
export const FetchPost = async (url = "", data = {}, sessionToken = "") => {
const errorFetchCode = 2;
const errorServerCode = 1;
const notErros = 0;
const POST = "POST";
const errorFetch = "TypeError: Failed to fetch";
const rawResponse = await fetch(url, {
method: POST,
headers: {