Skip to content

Instantly share code, notes, and snippets.

@ssreekanth
ssreekanth / adguard-custom-rules.txt
Last active January 17, 2025 05:15
AdGuard Home - Custom Rules
########################################################
####### unblock this for openwrt ddns to work
########################################################
@@||myden.ddns.net^
########################################################
####### unblock Twitter URL shorteners
########################################################
@ssreekanth
ssreekanth / gtest.rb
Last active November 20, 2019 21:35 — forked from Kronuz/gtest.rb
Homebrew Formula for Google Test
# Homebrew Formula for Google Test
# Usage: brew install --HEAD https://gist.githubusercontent.com/ssreekanth/4ffaf013d0311b03f430b0f1f30a3420/raw/1705e778bbad9089dc81b2aae7c7e639d14f78fb/gtest.rb
require 'formula'
class Gtest < Formula
desc "Google Test"
homepage "https://github.com/google/googletest"
head "git://github.com/google/googletest.git", :using => :git
@ssreekanth
ssreekanth / ssh-exec
Created October 8, 2016 01:56
wrapper script to run remote command over ssh
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# @author Sreekanth S
# -----------------------------------------------------------------------------
#
function binary_exists() {
which ${1} &> /dev/null
}
@ssreekanth
ssreekanth / app.js
Last active May 27, 2016 00:03
electron-connect working example - with '--enable-logging' args passed to electron-connect's start() and restart() calls in gulpfile.js. Refer Quramy/electron-connect#42
'use strict';
const electron = require('electron');
const {app} = electron;
const {BrowserWindow} = electron;
const {client} = require('electron-connect');
let mainWindow;
app.on('window-all-closed', function () {
@ssreekanth
ssreekanth / brew_config_output.txt
Last active October 8, 2016 01:53
issue with 'brew install wget' on snow leopard
➜ ~ cd /usr/local
➜ local git:(master) git status
On branch master
nothing to commit, working directory clean
➜ local git:(master) git diff origin/master
➜ local git:(master) brew config
HOMEBREW_VERSION: 0.9.5