Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
VFIO: See gist https://gist.github.com/Kyoji/5926d679817b77000cb557df5e505744
Font rendering: https://github.com/pdeljanov/infinality-remix
Mellowplayer: https://aur.archlinux.org/packages/mellowplayer/
Gnome shell extensions: ~/.local/share/gnome-shell/extensions <folder must match uuid in metadata.json>
Sys tray gnome: https://extensions.gnome.org/extension/615/appindicator-support/
Nvidai-xrun: https://github.com/Witko/nvidia-xrun
@thecooldaniel
thecooldaniel / .nvidia-xinitrc
Last active November 20, 2023 15:13
VFIO Passthrough for Arch
# for use with https://github.com/Witko/nvidia-xrun
if [ $# -gt 0 ]; then
$*
else
# On Antergos this forces an X0rg version of GNOME
export GDK_BACKEND=x11
gnome-session
fi
@thecooldaniel
thecooldaniel / top25tags.js
Last active March 20, 2018 23:32
Infusionsoft Top 25% Tags
// Generates your top 25% used tags in Infusionsoft.
// Must be at a URL which displays tags, and have the number of uses for each tag shown (you must click "show")
function toptf() {
var sum = [];
jQuery("tr.data-td, tr.alt-data-td").each(function(){
var node = {};
node.name = jQuery(this).find("td:nth-child(3)").text();
node.num = parseInt(jQuery(this).find("td:nth-child(5)").text());
sum.push(node);
return sum;
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourceMaps = require('gulp-sourcemaps');
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync').create();
var concat = require('gulp-concat');
var foundation = 'node_modules/foundation-sites/';
autoprefixer({
browsers: ['last 2 versions', 'ie >= 9', 'and_chr >= 2.3']
@thecooldaniel
thecooldaniel / html5 audio create
Created November 8, 2012 22:55
ongoing html5 audio js implamention
function domCreate(obj) {
var ref = document.createElement(obj.tag);
if(obj.att){for (var i = obj.att.length - 1; i >= 0; i--) {
$(ref).attr(obj.att[i].name, obj.att[i].value);
};}
if(obj.children){
for (var i = obj.children.length - 1; i >= 0; i--) {
ref.appendChild(domCreate(obj.children[i]));
};
}
@thecooldaniel
thecooldaniel / domCreate.js
Created November 8, 2012 20:11
Creates a DOM object from a passed object following specific conventions. Uses light jQuery.
$(function(){
var ex = {
'tag':'audio',
'children': [
{
'tag':'source',
'att': [
{'name':'src','value':'../audio/beep.mp3'},
]
},