Skip to content

Instantly share code, notes, and snippets.

View toropanov's full-sized avatar
👋

Anton Toropanov toropanov

👋
View GitHub Profile
@FradSer
FradSer / iterm2_switch_automatic.md
Last active October 8, 2024 12:39
Switch iTerm2 color preset automatic base on macOS dark mode.

The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.

Vist iTerm2 homepage or use brew install iterm2-beta to download the beta. Thanks @stefanwascoding.


  1. Add switch_automatic.py to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch with:
@listrophy
listrophy / spotlight_ignore_node_modules.sh
Created October 9, 2018 23:08
Tell spotlight to ignore node_modules in a subdirectory
#!/usr/bin/env bash
# Use like:
# spotlight_ignore_node_modules.sh ~
PROGNAME=$(basename $0)
BASE=${1:-$HOME}
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
@Abban
Abban / WordPress Theme Customizer Sample.php
Created June 21, 2012 21:09
WordPress Theme Customizer Sample
<?php
function themename_customize_register($wp_customize){
$wp_customize->add_section('themename_color_scheme', array(
'title' => __('Color Scheme', 'themename'),
'priority' => 120,
));
// =============================
@edwardtoday
edwardtoday / gist:2204864
Created March 26, 2012 12:54
PhoneGap sqlite working example
Hi
I hope this helps you all get started with phonegap and sqlite in your
application
Dean-O
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>