Skip to content

Instantly share code, notes, and snippets.

View dcalixto's full-sized avatar
🎯
Focusing

Daniel dcalixto

🎯
Focusing
View GitHub Profile
@dcalixto
dcalixto / Steps.md
Created February 4, 2022 04:23 — forked from SalahAdDin/Steps.md
Instlling React-Native Android Environment in ArchLinux

First step: Install Android SDK

  1. yaourt -S android-sdk android-sdk-platform-tools android-sdk-build-tools
    Note: Maybe you'll have problems with the lasta package: ncurses5-compat-libs. In order to avoid this problem you have to use this command: gpg --recv-keys F7E48EDB. You can find clarification here.
  2. yaourt -S genymotion
    Note: You'll need install virtual-box and his modules, yaourt will make for you but you need choos between ArchLinux host modules or DKMS host modules.
  3. Enter in super user mode with su - and then do echo -e "vboxdrv\nvboxnetflt\nvboxnetadp\nvboxpci" > /etc/modules-load.d/virtualbox.conf
    Note: You need do this with super user because need super user permissions and with sudo, for us at least, doesn't work.
  4. sudo modprobe vboxdrv vboxnetadp vboxnetflt
    Activate for current session.
  5. sudo chmod -R 777 /opt/android-sdk
@dcalixto
dcalixto / android_on_arch.md
Created April 25, 2020 09:47 — forked from dianjuar/android_on_arch.md
install android SDK on arch linix

Install Android SDK on Arch Linux

1. Download Android SDK on your computer

yaourt android-sdk-platform-tools
yaourt android-udev
yaourt android-sdk

2. Create global variables on system

@dcalixto
dcalixto / ubuntu-hardening.md
Created April 17, 2020 08:31 — forked from lokhman/ubuntu-hardening.md
List of things for hardening Ubuntu

System Updates

http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/

Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get autoclean
@dcalixto
dcalixto / Install and configure Sendmail on Ubuntu.md
Last active January 5, 2025 00:18 — forked from adamstac/gist:7462202
Install and configure Sendmail on Ubuntu

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: 127.0.0.1 localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart
@dcalixto
dcalixto / material-design-shadows.css
Created July 7, 2019 16:24 — forked from serg0x/material-design-shadows.css
Google material design elevation system shadows as css. Based on https://material.io/design/environment/elevation.html#default-elevations Exported with Sketchapp from the Google material design theme editor plugin "Baseline" theme.
/* Shadow 0dp */
box-shadow: none;
/* Shadow 1dp */
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.20);
/* Shadow 2dp */
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.20);
/* Shadow 3dp */
@dcalixto
dcalixto / posts
Created October 23, 2018 22:14
posts
import React, { Component } from "react";
import axios from "axios";
import Comments from "../components/comments";
class PostShow extends Component {
constructor(props) {
@dcalixto
dcalixto / comments
Created October 23, 2018 22:12
comments
import React, { Component } from "react";
import Comment from "./comment";
class Comments extends Component {
constructor(props) {
super(props);
this.state = {
comments: []
};
}
@dcalixto
dcalixto / comment
Created October 23, 2018 22:11
comment
import React, { Component } from "react";
import Comments from "./comments";
class Comment extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
const { comment } = this.props;
@dcalixto
dcalixto / comments
Created October 1, 2018 19:11
comments
import React from "react";
import auth from "../services/auth";
import "../assets/css/CommentBox.css";
//import PropTypes from "prop-types";
import { PropTypes } from 'react'
class CommentBox extends React.Component {
constructor(props) {
super(props);
this.state = {