Skip to content

Instantly share code, notes, and snippets.

good good study, day day up


good good study, day day up
View GitHub Profile
biezhi /
Last active Jul 10, 2020
Go 的信号处理和优雅退出

每个平台的信号定义或许有些不同。下面列出了POSIX中定义的信号。 Linux 使用34-64信号用作实时系统中。 命令man 7 signal提供了官方的信号介绍。


rudolfratusinski /
Last active Jun 5, 2020
Parallels Tools fix for Ubuntu 18.04 and other Linux distributions with Kernel version >= 4.15


  • In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"

  • A "Parallels Tools" CD will popup on your Ubuntu desktop.

  • Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"

  • Open terminal, change directory to parallels_fixed (cd ~/Desktop/parallels_fixed)

  • Make command line installer executable (chmod +x install)

  • Change directory to "installer" (cd installer)

  • Make few other scripts executable: chmod +x installer.* *.sh prl_*

480 / gist:3b41f449686a089f34edb45d00672f28
Last active Jul 7, 2020
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings
View gist:3b41f449686a089f34edb45d00672f28

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

sh -c "$(curl -fsSL"
View gist:08bfc2e3592bed1e931ec40b8d2ab6f5
minikube start --kubernetes-version=v1.7.0 --extra-config=apiserver.Authorization.Mode=RBAC
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
minikube dashboard
View gist:9c622404fb41f2343a0db85b3821275d
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
vbelcik / dropdown.directive.ts
Created May 15, 2017
Angular4 dropdown directive for bootstrap - enhanced
View dropdown.directive.ts
import { Directive, HostListener, HostBinding, OnDestroy } from '@angular/core';
selector: '[appDropdown]'
export class DropdownDirective implements OnDestroy {
private timer = null;
private isMouseInside: boolean = false;
@HostBinding('') isOpen: boolean = false;
wesleyegberto / web.xml
Created Mar 7, 2017
web.xml for Servlet 3.1
View web.xml
<web-app xmlns=""
View emoji.go
// (c) 2017 Yami Odymel
// This code is licensed under MIT license.
package main
import (
AlexisLeon / rn.input-numbers.js
Created Jan 15, 2017
TextInput accepts only numbers - React Native
View rn.input-numbers.js
import React, { Component } from 'react';
import { TextInput } from 'react-native';
class Input extends Component {
constructor(props) {
this.state = {
text: ''
wycliffepeart / merge-object.js
Last active Jun 23, 2020
Javascript Object.assign Alternative . The mergeObject() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.
View merge-object.js
function mergeObject(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (source.hasOwnProperty(key)) {
target[key] = source[key];
return target;
You can’t perform that action at this time.