Skip to content

Instantly share code, notes, and snippets.

Nikita Voloboev nikitavoloboev

Block or report user

Report or block nikitavoloboev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View screencapture (capture images from screen).sh
# Take screenshot & save it to Desktop with current date as name
screencapture -ixoa -t jpg ~/"Desktop/$(date).jpg"
View Scrape all URLs from all tabs in all windows.applescript
set AppleScript's text item delimiters to linefeed
tell application "Safari"
set urlList to (URL of tabs of windows) as text
end tell
return urlList
View docker.sh
# Delete all containers
for i in $(docker ps -a -q); do docker rm $i; done
# List all containers
docker ps -a
# Remove a container after it’s stopped
docker run --rm [...]
@nikitavoloboev
nikitavoloboev / jxa: Return current active line in TaskPaper.js
Created Jun 4, 2019
Used it to copy the task/note into current TODO
View jxa: Return current active line in TaskPaper.js
(() => {
'use strict';
const main = () => {
const tp3Context = (editor, options) => {
const main = () =>
unlines(
concatMap(
View Unresolved promise for debugging.js
// create Promise that never resolves
await new Promise((reject, resolve) => {
// Do nothing
});
// Example: in describe() test
describe('Profile page test', async () => {
it('should render Profile page', async () => {
server.router.get('', (req, res) => {
View My 2Do tasks.md

My 2Do tasks

This is just contents of my never ending lists of tasks I tagged in 2Do with read, watch and check tags.

All lists are sorted by priority. I hope to bring all these lists closer to 0 when I get time. But until then, perhaps you will find something interesting in them.

Here are the lists I share so far.

@nikitavoloboev
nikitavoloboev / config: sVim CSS settings.css
Last active Jul 20, 2019
Only change made was the CSS on sVim-hint to make hints work with Dark Reader (https://darkreader.org/safari/)
View config: sVim CSS settings.css
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
View Karabiner JSON config.json
{
"global" : {
"check_for_updates_on_startup" : true,
"show_in_menu_bar" : true,
"show_profile_name_in_menu_bar" : false
},
"profiles" : [ {
"complex_modifications" : {
"parameters" : {
"basic.simultaneous_threshold_milliseconds" : 50,
You can’t perform that action at this time.