Skip to content

Instantly share code, notes, and snippets.

@eeve
eeve / beautiful.rest.api.docs.in.markdown.md
Created August 11, 2023 09:45 — forked from azagniotov/beautiful.rest.api.docs.in.markdown.md
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@eeve
eeve / build.sh
Last active December 1, 2020 09:18 — forked from piscisaureus/build.sh
deno icons
#!/bin/sh
# This script generates multi-size .ico files from the highly stylized "simple"
# Deno logos, designed by HashRock.
# The complication stems from the fact the the dimensions of the original .png
# files is 252x252 pixels. Naively rescaling these images to 256x256 or any
# other power of 2 produces ugly artifacts.
# Note that the output of the black-and-white logo transformation isn't

先可以查看下磁盘情况

df -h

移除掉因依赖关系而自动安装的套件

sudo apt-get clean
sudo apt-get autoremove --purge
@eeve
eeve / wlan0.md
Last active March 14, 2020 01:53
树莓派3B执行软件升级后内置wifi无法使用的解决办法 Raspberry Pi 3 WiFi Driver Not Working

一直正常使用的树莓派3B在执行以下软件更新命令后,wlan0网卡不见了,wifi无法正常工作

sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y dist-upgrade

系统版本

@eeve
eeve / install_spark_centos7.sh
Created February 24, 2018 02:49 — forked from darcyliu/install_spark_centos7.sh
Install Spark on CentOS 7
#!/bin/bash
# Install Spark on CentOS 7
yum install java -y
java -version
yum install wget -y
wget http://downloads.typesafe.com/scala/2.11.7/scala-2.11.7.tgz
tar xvf scala-2.11.7.tgz
sudo mv scala-2.11.7 /usr/lib
sudo ln -s /usr/lib/scala-2.11.7 /usr/lib/scala
# Install Scala 2.11.6 on CentOS 7
export SCALA_VERSION=scala-2.11.6
export SCALA_HOME=/opt/scala
echo "SCALA_HOME=${SCALA_HOME}" > /etc/profile.d/scala.sh
echo "export SCALA_HOME" >> /etc/profile.d/scala.sh
mkdir -p ${SCALA_HOME} && cd ${SCALA_HOME}
@eeve
eeve / 1) Install
Created January 29, 2018 04:55 — forked from nghuuphuoc/1) Install
Install Redis on Centos 6
// --- Compiling ---
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install
// --- or using yum ---
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm