Skip to content

Instantly share code, notes, and snippets.

"name": "yspb",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
@yspb
yspb / prefixes
Last active March 23, 2020 17:19
Australia=AU
Austria=AT
Brazil=BR
Canada=CA
China=CN
Denmark=DK
Finland=FI
France=FR
Germany=DE
Hong Kong=HK
//full color names list
const colors = [
{ name: "absolute zero", hex: '#0048BA', lab: { L: 34, A: 28, B: -65 }, light: false },
{ name: "acajou", hex: '#4C2F27', lab: { L: 23, A: 12, B: 11 }, light: false },
{ name: "acid green", hex: '#B0BF1A', lab: { L: 74, A: -23, B: 71 }, light: true },
{ name: "aero", hex: '#7CB9E8', lab: { L: 73, A: -7, B: -30 }, light: true },
{ name: "aero blue", hex: '#C9FFE5', lab: { L: 96, A: -22, B: 7 }, light: true },
{ name: "african violet", hex: '#B284BE', lab: { L: 61, A: 28, B: -23 }, light: true },
{ name: "air force blue", hex: '#5D8AA8', lab: { L: 55, A: -7, B: -21 }, light: true },
{ name: "air superiority blue", hex: '#72A0C1', lab: { L: 64, A: -7, B: -22 }, light: true },
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
[Unit]
Description=sshfs service script
Requires=network-online.target network.target
After=network-online.service network.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
@yspb
yspb / sockd
Last active January 16, 2020 14:50
#! /bin/sh
### BEGIN INIT INFO
# Provides: sockd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the dante SOCKS server.
# Description: SOCKS (v4 and v5) proxy server daemon (sockd).
# This server allows clients to connect to it and
@yspb
yspb / sockd.conf
Last active January 16, 2020 14:52
logoutput: /var/log/socks.log
internal: eth0 port = 1080
external: eth0
socksmethod: username
user.privileged: root
user.notprivileged: nobody
client pass {
@yspb
yspb / node.sh
Last active August 22, 2021 15:24
#make directories
mkdir /git
mkdir /db
mkdir /db/modules
mkdir /downloads
#update packages, install gcc and redis
add-apt-repository ppa:chris-lea/redis-server -y && \
apt-get update && \
apt-get upgrade -y && \
[Unit]
Description=Redis In-Memory Data Store
After=network.target
[Service]
User=redis
Group=redis
ExecStart=/usr/local/bin/redis-server /db/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown
Restart=always