Skip to content

Instantly share code, notes, and snippets.

View palaniraja's full-sized avatar

palaniraja palaniraja

View GitHub Profile
@palaniraja
palaniraja / .jazzy.yaml
Created July 3, 2019 15:58
output of "jazzy --help config" from jazzy version: 0.9.6
By default, jazzy looks for a file named ".jazzy.yaml" in the source
directory and its ancestors. You can override the config file location
with --config.
(The source directory is the current working directory by default.
You can override that with --source-directory.)
The config file can be in YAML or JSON format. Available options are:
@palaniraja
palaniraja / xcode-buildconfig-delete.sh
Created June 26, 2019 03:29
script to delete unwanted buildconfig from xcodeproj file
#!/bin/bash
# get these ids by "grep -B 2 buildConfigurations project.pbxproj"
targets=("040030D22004301100C4B676" "0420B3DA1FD1E91B00F66B8C" "042171FE1F7EB27500B3578D" "0421731D1F7EB3EC00B3578D" "04CD5F511FD0D1650053BE87" "3461E09E1A7BF77600B666A1" "3461E0C21A7BF77600B666A1" "A0D180071F46067500E00C0C")
# get these xcodebuild -project YOURPROJ.xcodeproj -list
configsToSkip=("us-debug" "us-debug-free" "us-release" "us-release-free" )
@palaniraja
palaniraja / pdf2png.wflow
Created June 24, 2019 20:58
PDF to PNG - OSX Automator - Finder workflow
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AMApplicationBuild</key>
<string>444.42</string>
<key>AMApplicationVersion</key>
<string>2.9</string>
<key>AMDocumentVersion</key>
<string>2</string>
@palaniraja
palaniraja / out.html
Last active March 12, 2019 22:20
Find all the files changed between two commits and cumulated commit messages per file
<html><head><style>td{white-space: pre;}</style></head><body><table border=1>
<tr>
<td>File: (file1.txt)</td>
<td>
5755793 commit from master (correct this time)
322afb2 file 1 modified, and to be tagged as v1
</td></tr>
<tr>
<td>File: (file2.txt)</td>
@palaniraja
palaniraja / alias.sh
Created November 12, 2018 09:22
alias - alias from my work machine to refer later (ohmyzsh + few custom)
-='cd -'
...=../..
....=../../..
.....=../../../..
......=../../../../..
1='cd -'
2='cd -2'
3='cd -3'
4='cd -4'
5='cd -5'
@palaniraja
palaniraja / app.js
Last active November 1, 2018 09:40
React native - webview wrapper - keyboard issue
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {StyleSheet, WebView, View, Text, SafeAreaView, KeyboardAvoidingView} from 'react-native';
@palaniraja
palaniraja / main.dart
Last active October 15, 2018 04:55
Flutter - Asynchronous programming snippet
import 'dart:convert';
import 'dart:async';
import 'dart:html';
void main(){
_getIPAddress() {
final url = 'https://httpbin.org/ip';
Future<HttpRequest> request = HttpRequest.request(url);
request.then((value) {
print(json.decode(value.responseText)['origin']);
@palaniraja
palaniraja / Default.idekeybindings
Last active August 20, 2018 16:35
xcode - behaviour keybindings from `~/Library/Developer/Xcode/UserData/KeyBindings`
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Menu Key Bindings</key>
<dict>
<key>Key Bindings</key>
<array>
<dict>
<key>Action</key>
@palaniraja
palaniraja / twitter.md
Created August 17, 2018 16:47
Twitter data size analysis

twitter.txt is output of df -ah twitter exported data. Removed each ./tweet_media file sizes)

Stats on my account

  45 - Followers
 287 - Following
   2 - Listed
9930 - Tweets  
7527 - Favorites
@palaniraja
palaniraja / pilapse.py
Created July 26, 2018 11:46
PiLapse - Python script to take timelapse
#!/usr/bin/python
import os
import time
import subprocess
from time import sleep
import random
# Configuration