/etc/conf.d/*
: ...
/etc/modprobe.d/i915.conf
:
options i915 enable_guc_loading=1 enable_guc_submission=1 enable_fbc=1 enable_psr=1
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 4.15.7-gentoo-r1 Kernel Configuration | |
# | |
# | |
# Gentoo Linux | |
# | |
CONFIG_GENTOO_LINUX=y | |
CONFIG_GENTOO_LINUX_UDEV=y |
collections.Counter(str(type(obj)) for obj in gc.get_objects()) |
// The MIT License (MIT) | |
// Copyright (c) 2016 David Evans @phosphoer | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR |
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
// MultiError implements the Error interface, can be checked as nil just like normal errors. | |
func MultiError() multiError { | |
var err multiError = nil |
First make a fifo
$ export fifopath=$PWD/chat.fifo
$ mkfifo "$fifopath"
Then start reading from the fifo and looking for the ^G
ding escape code.
" Find the nearest Makefile and run it | |
function! MakeUp() | |
let makefile = findfile("Makefile", ".;") | |
if makefile != "" | |
silent exe "NeomakeSh make -C " . fnamemodify(makefile, ':p:h') | |
endif | |
endfunction | |
autocmd BufWritePost *.scss call MakeUp() |
package main | |
import "sync" | |
type ptrId uint | |
type ptrProxy struct { | |
sync.Mutex | |
count uint | |
lookup map[ptrId]interface{} |
all: scss | |
CSS_OUT = ../static/css/screen.css | |
SCSS_LIBS = ./lib/ | |
$(CSS_OUT): **.scss $(SCSS_LIBS) | |
sassc --style nested $(addprefix -I ,$(SCSS_LIBS)) screen.scss $(CSS_OUT) | |
scss: $(CSS_OUT) |
package tmp | |
import "net" | |
type ServerA struct { | |
Clients map[string]net.Conn | |
} | |
func (srv *ServerA) Accept(conn net.Conn) error { | |
key := conn.RemoteAddr().String() |