Skip to content

Instantly share code, notes, and snippets.

@kamynina
kamynina / idea-reset-evaluation.sh
Created February 20, 2017 11:05
reset intellij idea 14 evaluation
#!/bin/bash
echo "removeing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
@kamynina
kamynina / main.go
Created June 12, 2018 13:33
Exercise: Equivalent Binary Trees
package main
import (
"fmt"
"golang.org/x/tour/tree"
"sort"
)
func Walk(t *tree.Tree, ch chan int) {
WalkSub(t, ch)
@kamynina
kamynina / web-crawler.go
Last active June 14, 2018 05:51
Golang tour / Exercise: Web Crawler
package main
import (
"fmt"
"sync"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
@kamynina
kamynina / busybox-extras-install.txt
Last active August 8, 2018 11:46 — forked from ollieparanoid/busybox-extras-install.txt
Alpine Linux: busybox-extras install/uninstall
Related to this pull-request:
https://github.com/alpinelinux/aports/pull/1092
Steps:
1. upgrade busybox to the one, which has busybox-extras
2. telnet does not exist anymore
3. add busybox-extras
4. telnet exists
5. uninstall busybox-extras and re-install busybox
6. telnet does not exist anymore
@kamynina
kamynina / remove-docker-containers.md
Created August 12, 2018 23:12 — forked from ngpestelos/remove-docker-containers.md
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
@kamynina
kamynina / index.html
Created June 23, 2020 08:12
Изменение иконки в поиске
<form action="#" method="POST" class="search-form">
<input class="search-input" type="text" placeholder="Поиск:" />
<label class="search-label">
</label>
</form>
@kamynina
kamynina / index.html
Last active June 23, 2020 08:14
Изменение иконки в поиске
<form action="#" method="POST" class="search-form">
<input class="search-input" type="text" placeholder="Поиск:" />
<label class="search-label">
</label>
</form>