This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use utf8; | |
use IO::Socket::INET6; | |
my $current_song; | |
if (my $server = IO::Socket::INET6->new(PeerAddr => ($ARGV[0] or 'localhost'), PeerPort => ($ARGV[1] or '6600'), Proto => 'tcp', Timeout => 5)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
base_branch=${1:-master} | |
keep_branches="HEAD\|master\|bugfix\|$base_branch" | |
remote=$(git remote) | |
confirm () { | |
message=${1:-Are you sure?} | |
read -r -p "$message [y/N]" response | |
response=${response,,} # tolower |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
from websocket import create_connection | |
import json | |
import sys | |
import urllib2 | |
rtm = json.loads(urllib2.urlopen('https://api.slack.com/api/rtm.connect?token=' + sys.argv[1]).read()) | |
ws = create_connection(rtm['url']) | |
print(ws.recv()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from websocket import create_connection | |
import json | |
import urllib2 | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"nuxt-ts": "^2.4.5", | |
"typescript": "3.3.1", | |
"webpack": "^4.29.3" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import weechat | |
lorem_ipsum = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam dapibus dolor ultricies malesuada semper. Nulla ac augue orci. Proin iaculis mi ipsum, a dapibus est porta vel. Donec gravida et elit sed iaculis. Praesent id mollis neque. Sed hendrerit rutrum odio, eu eleifend dui interdum ac. Donec nec sollicitudin enim. Aliquam in magna sit amet lectus tincidunt finibus ac a massa. Donec sed nunc tortor. Maecenas egestas facilisis urna, volutpat ultrices orci sagittis nec. Suspendisse aliquam at diam vel malesuada. Morbi a eros sed risus condimentum maximus. Mauris maximus velit in nibh dignissim tempor. Quisque lobortis finibus nunc, nec malesuada quam vehicula in. Integer quis eros nulla.' | |
def change_line_command_cb(data, current_buffer, args): | |
own_lines = weechat.hdata_pointer(weechat.hdata_get('buffer'), buffer, 'own_lines') | |
line_pointer = weechat.hdata_pointer(weechat.hdata_get('lines'), own_lines, 'last_line') | |
data = weechat.hdata_pointer(weechat.hdata_get('lin |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kittens.hints.main import main as hints | |
from kittens.icat.main import main as icat | |
from kitty.utils import screen_size_function | |
import time | |
screen_size = screen_size_function() | |
def main(args): | |
ss = screen_size() | |
hints_result = hints('') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default programs | |
export TERMINAL='kitty -1' | |
export BROWSER='browser' | |
export EDITOR='vim' | |
export PAGER='less -RS' | |
export LESS='FRS' | |
export SYSTEMD_LESS='FRSM' | |
export RIPGREP_CONFIG_PATH=~/.config/ripgrep/config | |
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude .git' | |
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" |