Skip to content

Instantly share code, notes, and snippets.

@sam33r
sam33r / youtube-tweaks.css
Last active January 17, 2022 05:23
Remove YouTube subscriptions using stylebot
/* CSS tweaked from this project:
https://github.com/lawrencehook/remove-youtube-suggestions/blob/main/firefox/css/main.css */
html ytd-browse[page-subtype="home"],
html #secondary > div.circle,
html #related,
html .html5-endscreen,
html .ytp-ce-element.ytp-ce-element,
html a:not(#logo)[href="/"],
@sam33r
sam33r / cvimrc
Last active January 10, 2018 06:48
cVim config
set noautofocus
set smoothscroll
set barposition "bottom"
let mapleader = ","
unmap O
map O :open google
@sam33r
sam33r / surfingkeys.js
Last active December 4, 2021 12:11
Surfingkeys Config
// Mappings
// --------
// an example to create a new mapping `ctrl-y`
// mapkey('<Ctrl-y>', 'Show me the money', function() {
// Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
//});
cmap('<Ctrl-j>', '<Tab>');
cmap('<Ctrl-k>', '<Shift-Tab>');

Keybase proof

I hereby claim:

  • I am sam33r on github.
  • I am sam33r (https://keybase.io/sam33r) on keybase.
  • I have a public key ASDElZiUg__-u1BtJI6ZouSkjvdn7Lx0KN0acVZ6EYvfCAo

To claim this, I am signing this object:

@sam33r
sam33r / cvimrc
Last active September 8, 2017 22:58
cVim config
" Settings
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
let hintcharacters = "fdjkstyghbna"
set smoothscroll
set autoupdategist
-- My XMonad Config
import XMonad
import XMonad.Actions.CycleWS
import XMonad.Actions.UpdatePointer
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.FadeInactive
import XMonad.Layout.Accordion
@sam33r
sam33r / gist:10776947
Created April 15, 2014 21:23
iOS wiring to end editing when the user touches anywhere other than the keypad
// Useful for when the keypad is open.
// In the view controller:
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
// Listen for taps to end editing
UITapGestureRecognizer *gestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap:)];
[self.view addGestureRecognizer:gestureRecognizer];
/*
For news.ycombinator.com
*/
td.title {
padding-top: 20px;
color: #f0f0f0;
}
body {
@sam33r
sam33r / MyWikipediaStyle.css
Created September 20, 2010 08:16
Custom styling for Wikipedia, removes everything except the content. Created for stylebot, via stylebot on Chrome. Some declarations will probably be redundant.
#p-logo a {
display: none;
}
#p-logo {
display: none;
}
div.noprint {
display: none;
$ ./configure
Estella:node SA$ ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar