Skip to content

Instantly share code, notes, and snippets.

@tos-kamiya
tos-kamiya / py3-venv-activate-on-fish.md
Last active January 11, 2023 08:08
fishでpython3のvenvのactivateをする

fishでpython3のvenvを利用する方法

venv環境を作って入る (パスを設定した新しいシェルを作成する)

python3 -m venv ./venv
begin; set -lx PATH (realpath ./venv)/bin $PATH; fish; end
@mfakane
mfakane / .nanorc
Created March 15, 2017 09:25
これが私の .nanorc
include "/usr/share/nano/*.nanorc"
set autoindent
set const
set cut
set morespace
#set mouse
set multibuffer
set nohelp
set nonewlines
@jatcwang
jatcwang / gist:ae3b7019f219b8cdc6798329108c9aee
Created February 2, 2017 23:44
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@S--Minecraft
S--Minecraft / tweetdeck.css
Last active March 3, 2016 00:33
tweetdeckの♡を☆に戻します
.icon-favorite-color {
color: #fab41e !important;
}
.is-favorite .icon-favorite-toggle {
color: #fab41e !important;
}
.icon-favorite:before {
content: "\f007" !important;
}
@voluntas
voluntas / webrtc.rst
Last active May 16, 2025 00:52
WebRTC コトハジメ
@dck-jp
dck-jp / temp.cs.bat
Last active August 2, 2016 16:20
Execute C# code directly on Windows by double-clicking the source file
@echo off
SET OutputCs="TempCs.cs"
SET OutputExe="TempCs.exe"
if exist %OutputCs% goto ExecuteCs
del %OutputCs%
for /f "usebackq skip=20 delims=|" %%i in (%0) do (echo %%i>>%OutputCs%)
:ExecuteCs
pushd %~dp0
FOR /F "TOKENS=1,2,*" %%I IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework" /v "InstallRoot"') DO IF "%%I"=="InstallRoot" SET FrameworkPath=%%K
SET PATH="%PATH%;%FrameworkPath%v4.0.30319\;%FrameworkPath%v3.5;%FrameworkPath%v3.0;"
@DanielSWolf
DanielSWolf / Program.cs
Last active April 17, 2025 05:36
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);
#!/bin/bash -x
# Description:L2TP/IPsec for CentOS7 64bit
# 2015/05/09 @mix3
(
## setting
cat << _SECRETS_ > /tmp/SECRETS_TMP.txt
#==============================================
# username auth_server password auth_ipaddress
#!/usr/local/bin/ruby
# -*- coding: utf-8 -*-
#
#This script gets LINE Stickers.(for iPhone)
# http://shutingrz.hatenablog.com/entry/2014/08/13/042413
#
# gem install cfpropertylist
#
require 'json'
(๑′ᴗ'๑)プァァァァーーーーン!!!!! (▰˘◡˘▰)。oO( ダメーレチトーン ) ( '◕‿◕)ビチョチョチョチョチョ……
(▰˘◡˘▰)。oO( プネバレチトーン ) ヽ(*゚ω。)ノピロピロピロピロ…… ( ^_^)/□☆□\(^-^ )(タッドドタッド)
(▰˘◡˘▰)ドゥーナバーガアベナチーレチドン ンメスウェドッフローダメラベメサニチ レメテツァマチダンユールネバレチトーン。oO( ( ˘⊖˘)ボボボボボ ( ´◔ ‸◔`)ボンファイア!!! )
(▰˘◡˘▰)ノ゙ッ!!! ドゥーナバーガアベナチーレチドン ンメスウェドッフローダメラベメサニチ レメテツァマチダンユールネバレチトーン。oO( ( ˘⊖˘)ボボボボボ ( ´◔ ‸◔`)ボンファイア!!! )
(*_*)デュー…(チャチャッ チャ) (チャチャッチャ) (*_*)デュー(*_*)デュー…(チャチャッ チャ) (チャチャッチャ)
(*_*)デューデューデケデケデューデューデケデケデューデューデケデケデューデューデケデケ…
(;_;) デッデケデッケデケデケデッデケデッケデケデケデッデケデッケデケデケ!!!
( ˘⊖˘)ボボボボボボボ
_人人人人人人人人人人人人_
> ( ´◔ ‸◔`)ボンファイヤ!!! <