Skip to content

Instantly share code, notes, and snippets.

💭
🤔

techno-tanoC techno-tanoC

💭
🤔
Block or report user

Report or block techno-tanoC

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 phoenix_live_reload_frame.html
<html><body>
<script>
// priv/static/phoenix.js
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Phoenix=t():e.Phoenix=t()}(this,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esM
@techno-tanoC
techno-tanoC / kube.sh
Last active May 23, 2019
install minikube on ubuntu on virtualbox
View kube.sh
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt install docker-ce
sudo usermod -aG docker $USER
sudo systemctl enable docker.service
sudo systemctl start docker.service
View crx_mouse.json
{
"cfgver": 4.1,
"cursor": {
"img": null,
"scale": 1
},
"drag": {
"ddirect": true,
"ddirectcolor": "778899",
"ddirectopa": 0.9,
View HimeHina.sh
#!/bin/sh
youtube-dl -i --playlist-reverse -o '%(autonumber)s-%(title)s-%(id)s.%(ext)s' https://www.youtube.com/channel/UCFv2z4iM5vHrS8bZPq4fHQQ
View hspec-hpack.hsfiles
{-# START_FILE package.yaml #-}
name: {{name}}
version: 0.1.0.0
#synopsis:
#description:
homepage: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}#readme
license: BSD3
author: {{author-name}}{{^author-name}}Author name here{{/author-name}}
maintainer: {{author-email}}{{^author-email}}example@example.com{{/author-email}}
copyright: {{year}}{{^year}}2017{{/year}} {{author-name}}{{^author-name}}Author name here{{/author-name}}
View house.sh
PRE_IFS=$IFS
IFS=$'\n'
path=$1
directories=$(find "$path" -maxdepth 1 -mindepth 1 -type d)
files=$(find "$path" -maxdepth 1 -mindepth 1 -type f)
for f in $files; do
fn=$(basename "$f")
for d in $directories; do
View sort_out.rb
require 'fileutils'
def blobs(path)
Dir.glob(path)
end
def files(files)
files.select {|f| File.file?(f) }
end
View fix_steam_on_ubuntu
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1
@techno-tanoC
techno-tanoC / encode.rb
Last active Mar 8, 2018
faststart付きでエンコード
View encode.rb
names = Dir.entries("source") - [".", ".."]
names.each do |name|
base = File.basename(name, ".*")
p `ffmpeg -i "source/#{name}" -strict -2 -movflags +faststart "output/#{base}.mp4"`
end
View leads.rb
module RSpecHelper
def leads
if block_given?
subject
expect(yield)
else
expect { subject }
end
end
end
You can’t perform that action at this time.