Skip to content

Instantly share code, notes, and snippets.

View jnarvaezp's full-sized avatar
:octocat:
Focusing

Jonathan Narvaez jnarvaezp

:octocat:
Focusing
View GitHub Profile
@jnarvaezp
jnarvaezp / install-latest-compose.sh
Created January 31, 2023 18:42 — forked from deviantony/install-latest-compose.sh
Install latest version of Docker Compose
#!/bin/bash
## THIS IS THE OLD WAY
## Nowadays, simply follow the Compose installation instructions in the official documentation:
## https://docs.docker.com/compose/install/
# get latest docker compose released tag
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
[Unit]
Description=tomcat
After=network.target u01.mount
[Service]
Type=simple
User=root
TimeoutStartSec=0
KillMode=process
ExecStart=/u01/apache-tomcat-8.5.51/bin/startup.sh start
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Editor JavaScript online - www.cubicfactory.com</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
<head>
<script src="functions.js"></script>
</head>
<body>
<h1 style="text-align: center;">REGISTRATION FORM</h1>
<form name="RegForm" action="/submit.php"
onsubmit="return GEEKFORGEEKS()" method="post">
<p>Name: <input type="text"
size="65" name="Name" /></p>
<br />
function GEEKFORGEEKS() {
var name = document.forms["RegForm"]["Name"];
var email = document.forms["RegForm"]["EMail"];
var phone = document.forms["RegForm"]["Telephone"];
var what = document.forms["RegForm"]["Subject"];
var password = document.forms["RegForm"]["Password"];
var address = document.forms["RegForm"]["Address"];
if (name.value == "") {
window.alert("Please enter your name.");
list_cars <- read.csv("https://raw.githubusercontent.com/RodolfoViana/exploratory-data-analysis-dataset-cars/master/cars_multi.csv")
cars_price <- read.csv("https://raw.githubusercontent.com/RodolfoViana/exploratory-data-analysis-dataset-cars/master/cars_price.csv")
summary(list_cars)
cars <- left_join(list_cars, cars_price, by = "ID")
hist(cars$cylinders)
hist(cars$model)
hist(cars$acceleration)
hist(cars$price)
#!/usr/bin/env python3
import sys
from time import process_time
from lib import shape_complement as ssc
from lib import pdbtools
from lib import pdb_resdepth
import warnings
warnings.filterwarnings("ignore")
#!/bin/bash
################################################
#
# Backup all MySQL databases in separate files and compress those.
# The script will also create a folder with the current timestamp for each run
# @author: Per Lasse Baasch
# @Version: 2016-03-02
# NOTES:
# - MySQL and gzip must be installed on the system
# - Requires write permission in the destination folder
@jnarvaezp
jnarvaezp / docker-imetamos-bin
Created October 27, 2017 03:07 — forked from dvera/docker-imetamos-bin
docker-imetamos-bin
ENV SHELL /bin/bash
apt-get update
apt-get install -y \
@jnarvaezp
jnarvaezp / ARMDebianUbuntu.md
Created August 23, 2017 22:00 — forked from Liryna/ARMDebianUbuntu.md
Emulating ARM on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux