Skip to content

Instantly share code, notes, and snippets.

View palaniraja's full-sized avatar

palaniraja palaniraja

View GitHub Profile
@palaniraja
palaniraja / mindmap.puml
Last active January 13, 2023 19:05
Plantuml mindmap with custom style - leaf nodes without borders
@startmindmap
<style>
node {
LineColor lightgray
}
:depth(2) {
LineColor white
@palaniraja
palaniraja / timezone.txt
Created March 20, 2016 20:04
osx list of timezone - output of command "sudo systemsetup -listtimezones"
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
Africa/Blantyre
@palaniraja
palaniraja / geektool.shell.sh
Last active November 1, 2022 21:29
Geek tool scripts I use with my desktop
# to list todo's from todotxt file - refersh every 900 sec
cat /Users/palaniraja/Dropbox/Personal/orgmode/todo.txt | grep -v ^x\ | cut -c 12- | awk '{print "* " $0}'
# calendar events - next 5 days grouped by date - refresh every 1800 sec
/usr/local/bin/icalbuddy -nc -sd eventsToday+5
# previous month - refersh every 3600 sec
cal `date -v -1m "+%m %Y"`
@palaniraja
palaniraja / Package.resolved.json
Last active September 12, 2022 23:14
Swift package manager `Package.resolved` to dependency list csv via `jq`
{
"object": {
"pins": [
{
"package": "AttributedText",
"repositoryURL": "https://github.com/gonzalezreal/AttributedText",
"state": {
"branch": null,
"revision": "c345033e22d5a1cd0e9fe0ec405cc809a8349586",
"version": "0.3.1"
@palaniraja
palaniraja / spm.sh
Created September 8, 2022 23:12
list all swift package manager dependencies used by project for copying without multiple clicks
/usr/libexec/plistbuddy -c "Print :" ~/Desktop/src/bitbucket/myprojectname.xcodeproj/project.pbxproj | grep XCRemoteSwiftPackageReference -A4
@palaniraja
palaniraja / cyclonedx-cocoapods.sh
Last active September 8, 2022 06:13
swift sbom using spdx-sbom-generator and cyclonedx-cocoapods. Wasted almost 2 days to figure out everything
# convert your SPM dependecies to a valid pod file
# something like
# pod "Charts", :git => "https://github.com/danielgindi/Charts", :commit => "66546404a6739173b8e436ab6bc1f2897cd08594"
pod init
pod install
# if you are in monterey, fix ruby first.
@palaniraja
palaniraja / mozilla+tts.sh
Last active July 18, 2022 19:50
steps I had to take in order to get mozilla released model of TTS working with my mac! https://github.com/mozilla/TTS/
pip install https://github.com/reuben/TTS/releases/download/ljspeech-fwd-attn-pwgan/TTS-0.0.1+92aea2a-py3-none-any.whl
python -m pip install --upgrade pip
pip install Cmake
brew install espeak
brew install libsndfile
python -m TTS.server.server
python --version
python -m TTS.server.server
pip uninstall flask
pip install flask==1.1.1
<?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>DVTConsoleDebuggerInputTextColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>SFMono-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>1 1 1 1</string>
@palaniraja
palaniraja / minbit.java
Created October 1, 2020 06:16
min. bit flip reqd
class Main
{
public static void main(String args[])
{
int[] prbArray = new int[]{ 0,0,0,1,0,1,0,1,1,1 };
Solution prb = new Solution();
System.out.println(prb.solution(prbArray));
}
}
@palaniraja
palaniraja / wwdc-2015-pdf.txt
Created June 16, 2015 10:01
WWDC 2015 - PDF download links
http://devstreaming.apple.com/videos/wwdc/2015/217wu453thu1r1/217/217_adopting_new_trackpad_features.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/2267p2ni281ba/226/226_advanced_nsoperations.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/233l9q8hj9mw/233/233_advanced_touch_input_on_ios.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/224o6pqmtb4ik/224/224_app_extension_best_practices.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/2048w4vdjhe1i1m/204/204_apple_watch_accessibility.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/232f1zopzycv/232/232_best_practices_for_progress_reporting.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/213w6grumlfm0q/213/213_building_apps_with_researchkit.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/234reaz1byqc/234/234_building_document_based_apps.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/2313dt427pmq/231/231_cocoa_touch_best_practices.pdf?dl=1
http://devstreaming.apple.com/videos/wwdc/2015/209c9277tttlt9