Skip to content

Instantly share code, notes, and snippets.

Alex Vie silvercircle

Block or report user

Report or block silvercircle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@silvercircle
silvercircle / tlb.sh
Created Sep 10, 2019
revert the BIOS fix that disables L3 caching on AMD processors with the TLB cache coherency bug (early Phenoms of B1 and B2 stepping, long obsolete, kept for historical reasons)
View tlb.sh
#!/bin/bash
MSR1=0xC0010015
MSR2=0xC0011023
# revert the BIOS fix that disables L3 caching on AMD processors
# with the TLB cache coherency bug (early Phenoms before the B3 stepping)
# needs msr-tools package
@silvercircle
silvercircle / componentwhacker.d
Last active Aug 23, 2019
remove all components for an installer package from the registry.
View componentwhacker.d
module main;
/++
+ whack all compontents for an installed package
+ quick and dirty
+
+ dub build --build=release --compiler=dmd --arch=x86_64
+/
import std.stdio, std.string: indexOf;
View .emacs
"
This is my emacs configuration file. It's optimized to be used with emacs in
daemon mode, but should work without.
Tested and compatible with Emacs 25.3 and Emacs 26 on FreeBSD and several Linux
flavors. Note that display-line-numbers-mode REQUIRES Emacs 26+.
required elpa modules:
treemacs
@silvercircle
silvercircle / e.sh
Created Apr 10, 2018
Start emacsclient and only create a new frame if none exists. Otherwise reuse frame. Pass -nw to force console-emacs
View e.sh
#!/bin/bash -e
if [[ "$DISPLAY" ]]; then
frame=`emacsclient -a '' -e "(member \"$DISPLAY\" (mapcar 'terminal-name (frames-on-display-list)))" 2>/dev/null`
[[ "$frame" == "nil" ]] && opts='-c' # if there is no frame open create one
[[ "${@/#-nw/}" == "$@" ]] && opts="$opts -n" # don't wait unless we've asked to run in a terminal
else
opts='-nw'
fi
@silvercircle
silvercircle / arcdark.conf
Created Apr 4, 2018
Geany theme to match Arc-Dark
View arcdark.conf
# No explicit license available
#
# Based on Monokai
# Indicated author and assumed copyright holder is:
# Wimer Hazenberg <monokai.nl>
#
# Originally ported to Geany and tweaked by Thanh Tran
# <trongthanh(at)gmail(dot)com>
#
# Slightly modified to match the Arc color scheme by
View tmux-cheatsheet.markdown

Tmux shortcuts & cheatsheet

Start new:

    tmux

Start a new session and name it:

    tmux new -s myname
@silvercircle
silvercircle / vsconfig.json
Last active Sep 2, 2017
My Visual Studio Code config
View vsconfig.json
{
"editor.fontFamily": "'Iosevka', Consolas, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.minimap.renderCharacters": false,
"editor.cursorStyle": "block",
"editor.cursorBlinking": "phase",
"editor.showFoldingControls": "always",
"editor.minimap.showSlider": "always",
"window.restoreWindows": "all",
"explorer.openEditors.visible": 0,
View Firefox UserChrome.css
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
* {
font-size: 8pt !important;
font-family: "Verdana" !important;
}
.newtab-cell {
margin-bottom: 0px !important;
margin-top: 0 !important;
View .vimrc
" .vimrc
"
" vim: fdm=indent:
" Only tested with vim 8.0 or later on Windows (native + Cygwin) and FreeBSD
"
" The following plugins are required (if any of them is not installed, errors on
" startup may occur)
" * pathogen (plugin manager)
" * neoComplete
@silvercircle
silvercircle / userContent.css
Last active Apr 3, 2017
My userContent for Thunderbird
View userContent.css
/*
* Get rid of right quoting bar and unnecessary paddings.
*
* note: works best with the following settings in prefs.js or (preferrably)
* user.js
*
* user_pref("mail.quoted_graphical", false);
* user_pref("mail.quoteasblock", false);
*/
You can’t perform that action at this time.