Skip to content

Instantly share code, notes, and snippets.

@VesperDev
VesperDev / RouterApp.js
Last active November 10, 2023 05:17
Sider menu + ant-design + react-router-dom
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import { Layout, Menu, Icon } from 'antd';
import Dashboard from './containers/Dashboard/Dashboard';
import Meseros from './containers/Meseros/Meseros';
const { Header, Content, Footer, Sider } = Layout;
const SubMenu = Menu.SubMenu;
@alswl
alswl / luna_pinyin.emoji.apple.dict.yaml
Last active January 11, 2020 03:03
(deprecated) emoji pinyin mapping for Rime input. data from MacOS(鼠须管、小狼毫、中州韵配置,将 MacOS 数据导入)PS:sierra 之后的数据格式发生变化,未更新,比如没有培根 🥓。新版 Emoji(支持到 Emoji 12.0)可以见更完整的 Rime 配置 https://github.com/alswl/Rime
# luna_pinyin.emoji.apple.dict.yaml by alswl
# encoding: utf-8
---
name: luna_pinyin.emoji.apple
version: "2016.12.28"
sort: by_weight
use_preset_vocabulary: true
...
You can ssh into the VM by finding the IP (from kubectl config view) and using username "docker" password "tcuser":
ssh docker@192.168.XX.XX
@nooges
nooges / Zen and the Art of IT Backup.md
Last active April 25, 2024 00:41
Zen and the Art of IT Backup

Zen and the Art of IT Backup

Principle 1 - Scope

Excited, the new apprentice jumped right into his Master’s training server.

The apprentice asked, “Master what files should I backup?”

The Master replied, “Does not the mother bird care for all her fledglings? Will not the shepherd watch over his entire flock? Therefore, one must backup all files in one’s care, no matter how small or insignificant we consider them to be. Each file has its importance and must not be overlooked.”

@wacko
wacko / gist:5577187
Last active January 6, 2024 07:31
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0

@entaroadun
entaroadun / gist:1653794
Created January 21, 2012 20:10
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation: