profile
viewpoint
Siddharth Kannan icyflame @mercari Tokyo, Japan https://www.siddharthkannan.in/ backend engineer・golang, php, linux

BrewCenter/OpenBrews 79

A cross-platform open source app to help you brew beer.

icyflame/awesome-social-science 48

A curated list of adages, psychological syndromes and behaviour explaining aphorisms.

icyflame/bar-horizontal 36

Create beautiful horizontal charts, that fit your terminal.

icyflame/awesome-cli 2

List of awesome command line tools.

icyflame/awesome-talks 1

The talks I loved watching, and think you will too.

icyflame/blog 1

Blog-aware site using Jekyll

icyflame/aam-2016 0

Website of 13th Annual Alumni Meet.

startedmikecrittenden/shortkeys

started time in 2 days

startedpavlov99/docker-gnuplot

started time in 5 days

release icyflame/bar-horizontal

v0.5.1

released time in 15 days

PR merged icyflame/bar-horizontal

Fix invalid width

@icyflame, @jrmykolyn Please review and merge to upstream.

+1 -0

0 comment

1 changed file

nicolaichuk

pr closed time in 15 days

created tagicyflame/bar-horizontal

tagv0.5.1

Create beautiful horizontal charts, that fit your terminal.

created time in 15 days

push eventicyflame/bar-horizontal

nicolaichuk

commit sha 38d7919dc600eca1e7a35fae92f18cce27dfaf4e

fix invalid width

view details

Siddharth Kannan

commit sha 6530787af9d2696a80f874c781e1aee09a0932d4

Merge remote-tracking branch 'nicolaichuk/fix_undefined_width'

view details

Siddharth Kannan

commit sha 75dfa0d23f46c3f024105926cc5f97d2e6128a9a

Add a test case for non-number width

view details

Siddharth Kannan

commit sha 60069857b7ec8d45285724be168d5894f59bded1

0.5.1

view details

push time in 15 days

PullRequestReviewEvent

push eventicyflame/dotfiles

Siddharth Kannan

commit sha f18734ee9c0119980a15b977b567d200c95cca84

emulator: alacritty: Turn off blinking cursors inside terminal

view details

Siddharth Kannan

commit sha 82ab0239ca4cf91ac38746f66a8127b391d318d3

tmux: tmux-yank is not required after tmux version 1.5 > If you have tmux 1.5 or newer and are using iTerm2 version 3 or newer > then the y in copy-mode and mouse selection will work without tmux-yank. > -- https://tmux-plugins.github.io/tmux-yank/

view details

push time in 20 days

push eventicyflame/blog

Siddharth Kannan

commit sha 2b23a40ed2be89e9c77d3fd5480281a040f02950

Initial commit Erase all history before today from the public repository.

view details

push time in 20 days

delete tag icyflame/blog

delete tag : 1.0

delete time in 20 days

delete branch icyflame/blog

delete branch : gh-pages

delete time in 20 days

push eventicyflame/.emacs.d

Siddharth Kannan

commit sha 22d7a14bbe26a34a2444c4c34f773e2c9d4ca8a3

projectile: Switch to another known project using evil exec command

view details

push time in 23 days

delete branch icyflame/go-remove-slowly

delete branch : delete-file-slowly

delete time in 23 days

push eventicyflame/dotfiles

Siddharth Kannan

commit sha efc18df278fe9b59578253269ff11c2ead8a5c79

tmux: Enable nested Tmux sessions that work as expected

view details

push time in 23 days

push eventicyflame/dotfiles

Siddharth Kannan

commit sha 9d61208d1adf30a0a939f8d2795e18037853ecb8

emulator: alacritty: Start testing alacritty on mac OS

view details

push time in 23 days

push eventicyflame/.emacs.d

Siddharth Kannan

commit sha 98c8148d31c3b230f1297ec6d60b536d9088bf1f

snippets: Add a new Go snippet

view details

Siddharth Kannan

commit sha ac30429d6fd6e95fe43cc4bb66762f07dee94377

colors: Switch from Nord to Tomorrow Night Nord and Solarized Dark are both low contrast, and they look faded out on old displays which don't have good contrast. The Tomorrow Night theme, on the other hand, uses high contrast colors which are sharp.

view details

Siddharth Kannan

commit sha 88f9d238adcf1b5dadae47af9b640017946800e9

font: On Mac OS, use Menlo with point size of 14

view details

Siddharth Kannan

commit sha f61433ef64677117f191748cbacfa7928c31974e

Use treemacs in trial mode (to avoid using dired)

view details

push time in 23 days

PR opened elastic-infra/go-remove-slowly

Truncated file size should be file.Truncate's argument

Summary

While using this tool, @ichirin2501 and I realized that the tool was not actually deleting files slowly. I believe that this is due to the behavior of the file.Truncate function. This function accepts the file's final file size as the argument. But this tool's code provides the given size argument to the file.Truncate function directly.

I confirmed the behavior of file.Truncate using this script:

// file-truncate.go
package main

import "os"

func main() {
        fh, _ := os.OpenFile("1G", os.O_RDWR, 0)
        // Truncate to 1MB
        fh.Truncate(1024 * 1024 * 1)
        fh.Close()
}
# Create a 1GB file
$ ls -1sh 1G
1.0G 1G
$ stat 1G
  File: '1G'
  Size: 1073741824      Blocks: 2097152    IO Block: 4096   regular file
Device: ca01h/51713d    Inode: 536974701   Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1665/siddharth)   Gid: ( 1665/siddharth)
Access: 2021-11-09 06:07:28.309855711 +0000
Modify: 2021-11-09 06:07:32.417819862 +0000
Change: 2021-11-09 06:07:32.417819862 +0000
 Birth: -

# Truncate that file using the above script
$ go run file-truncate.go

# Check the file's current size
$ ls -1sh 1G
1.0M 1G
$ stat 1G
  File: '1G'
  Size: 1048576         Blocks: 2048       IO Block: 4096   regular file
Device: ca01h/51713d    Inode: 536974701   Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1665/siddharth)   Gid: ( 1665/siddharth)
Access: 2021-11-09 06:07:28.309855711 +0000
Modify: 2021-11-09 06:07:47.515687244 +0000
Change: 2021-11-09 06:07:47.515687244 +0000
 Birth: -

As can be seen above, the file's size reduced directly from 1GB => 1MB, instead of going from 1GB => 1GB-1MB as expected by this tool's code.

+1 -1

0 comment

1 changed file

pr created time in a month

create barnchicyflame/go-remove-slowly

branch : delete-file-slowly

created branch time in a month

push eventicyflame/blog

Siddharth Kannan

commit sha 23e5372330bda28967b2ee1373fbe87f5660d18d

[add] [post] Recommendations List for Oct 2021

view details

push time in a month

push eventicyflame/blog

Siddharth Kannan

commit sha dddcdc251eb12dbe83aa6168a6b8e217567742db

[add] [post] COP26 and Climate change

view details

push time in a month

push eventicyflame/blog

Siddharth Kannan

commit sha a7992a037e2bbfb00050b6042ed27d2c82bf53a8

[housekeeping] Update stop-serve-dev command

view details

Siddharth Kannan

commit sha 8b308b8569cf119aeeb042ccafd6858c05c93e63

[post] [add] Post about America's unreliableness

view details

Siddharth Kannan

commit sha b5a670b29bf39f071671cf18481310aec137e691

[housekeeping] Build new structure site with both slash at end and without

view details

push time in a month

push eventicyflame/oneliners

Siddharth Kannan

commit sha 8983bbd7c2555686298620c902db67a8c7f89959

pdf: Use qpdf to decrypt PDFs

view details

push time in 2 months

push eventicyflame/oneliners

Siddharth Kannan

commit sha 13bcbcce0ba1be3788a1525a0b15b2caf36eabcc

pdftk: Add more useful commands using pdftk

view details

push time in 2 months

push eventicyflame/.emacs.d

Siddharth Kannan

commit sha 0527609dc43a752f398099137680e3172a0f3d19

org: Add functions to show the link and link to clipboard

view details

Siddharth Kannan

commit sha a740707ea24e0b150ea5d00348961dcd4ac7e9e8

org: Add keyboard shortcuts for working with links

view details

push time in 2 months

push eventicyflame/blog

Siddharth Kannan

commit sha ceb17fd7bc24ec49d756f06577e96577bf428a36

[add] [post] Monthly Recommendations for September 2021

view details

push time in 2 months

push eventicyflame/dotfiles

Siddharth Kannan

commit sha 815ea2ef6b183f51c126dd26c2fdc2299ba3c691

zsh: kubernetes: Include command to print current deployment revisions

view details

push time in 2 months

push eventicyflame/.emacs.d

Siddharth Kannan

commit sha 59a630cfb78f2866c0e3d6f577c371588c11f7dc

[magit] Add function to delete all merged branches through magit

view details

Siddharth Kannan

commit sha 254c3854f1a433c9f845938eabce4356f2aa27ab

[golang] Add function to download all dependencies using gomods

view details

Siddharth Kannan

commit sha 9e0648b0b7f2572e4b0130002e1b310abcccd410

[org-mode] Add function to replace link with link description https://emacs.stackexchange.com/a/10714

view details

Siddharth Kannan

commit sha 3812f6b46dd8e455944e3783f30841fa0116a386

[org-mode] Add function to replace link under cursor with link from clipboard

view details

push time in 2 months

push eventicyflame/blog

Siddharth Kannan

commit sha e937e9307db5faead41db6f32dd8a10ec739ceb3

Get required Gemfile from another revision 1ebff844494b82fdaf275f5a991c0f571103708f

view details

push time in 3 months

delete branch icyflame/blog

delete branch : github-actions-for-jekyll-build

delete time in 3 months

more