Skip to content

Instantly share code, notes, and snippets.

View kkiyama117's full-sized avatar
🎒
reseach at University

kkiyama117 kkiyama117

🎒
reseach at University
View GitHub Profile
@sts10
sts10 / rust-command-line-utilities.markdown
Last active September 25, 2024 05:11
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@rbtnn
rbtnn / ddc_and_pum.vim
Last active August 2, 2024 03:15
ddc.vimとpum.vimを試す最小限の設定
call plug#('Shougo/pum.vim')
call plug#('Shougo/ddc.vim')
call plug#('Shougo/ddc-around')
call plug#('Shougo/ddc-matcher_head')
call plug#('Shougo/ddc-sorter_rank')
call plug#('Shougo/ddc-converter_remove_overlap')
call plug#('vim-denops/denops.vim')
call ddc#custom#patch_global('completionMenu', 'pum.vim')
call ddc#custom#patch_global('sources', ['around'])
@kuuote
kuuote / injector.ts
Last active April 30, 2021 00:48
Deno cache injector
import { createHash } from "https://deno.land/std@0.95.0/hash/mod.ts";
import { ensureDirSync } from "https://deno.land/std@0.95.0/fs/ensure_dir.ts";
import { walkSync } from "https://deno.land/std@0.95.0/fs/walk.ts";
/*
* Deno cache injector
* cache algorithm is referenced from Deno source
* https://github.com/denoland/deno/blob/main/cli/disk_cache.rs
* https://github.com/denoland/deno/blob/main/cli/deno_dir.rs
*
@voluntas
voluntas / webrtc_turn.rst
Last active September 23, 2024 23:49
WebRTC で利用されいる TURN プロトコルの解説

WebRTC で利用されいる TURN プロトコルの解説

日時:2021-01-29
作:@voluntas
バージョン:2021.2
url:https://voluntas.github.io/

@mizchi
mizchi / predict-frontend.md
Last active May 12, 2023 03:43
React のユーザーから見た今後のフロントエンドの予想

この記事は議論のたたき台で、ポジショントークや、偏見にまみれています。

今のフロントエンドの分類

  • 古典的なサーバーサイド WAF への +α の味付け
  • 大規模なクライアントアプリケーション管理のための SPA
  • SEO / SSR を考慮した Node ヘヴィーな環境

他、提唱されてるパターン

@261shimizu
261shimizu / GUIでのリモート接続.md
Last active September 20, 2024 03:44
リモート接続周りの話(SSH,リモートデスクトップ等)

GUIのリモート接続

VNCとリモートデスクトップ


SSHではGUIが使えない
GUIのリモート接続を実現するには、VNCやRDPを使う

※リモート接続でなく、ローカルでのCUI⇔GUIは、「runlevel変更.md」を参照のこと

VNCとRDP比較

@marcomd
marcomd / gist:3129118
Created July 17, 2012 12:18
Authenticate your API with devise, token by header
#Session controller provides a token
#/controllers/api/sessions_controller.rb
class Api::SessionsController < Devise::SessionsController
before_filter :authenticate_user!, :except => [:create]
before_filter :ensure_params_exist, :except => [:destroy]
respond_to :json
def create
resource = User.find_for_database_authentication(:email => params[:user_login][:email])
return invalid_login_attempt unless resource