- 必ず順番通りにdpkg -iすること
- i386の方
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
// ==UserScript== | |
// @name Hide tweets liked by others | |
// @namespace https://github.com/ssov | |
// @version 0.1 | |
// @description This script hides tweets liked by others | |
// @author ssov | |
// @match https://twitter.com/home | |
// @include https://twitter.com/i/lists/* | |
// @grant none | |
// ==/UserScript== |
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/sh -e | |
ID='username' | |
PW='password' | |
IP='PR500KI_IP_ADDR' | |
SESSION_ID=1 | |
dig +short myip.opendns.com @resolver1.opendns.com | |
TOKEN=$(curl -s -c /tmp/cookie "http://${ID}:${PW}@${IP}/ntt/basic/v4pppoe" \ | |
| awk 'match($0, /[0-9a-f]{32}/) { print substr($0, RSTART, RLENGTH) }') |
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
hogehoge |
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
require 'stringio' | |
require 'csv' | |
str = StringIO.new(IO.read("SIKS*********.csv")).read.gsub(/\r/, '') | |
parse = CSV.parse(str) | |
parse.shift | |
sum = 0.0 | |
a = 0.0 | |
parse.each do |row| |
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
cd ~/ | |
touch test-test-test |
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
test https://gist.github.com/ssov/8143926/raw/2be6ba545db7552985d998fd98c5fc22ad5763db/recipe-test |
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
n, d = gets.chomp.split(" ").map{|i| i.to_i} | |
values = [] | |
n.times{ values << gets.chomp.to_i } | |
combinations = values.combination(2).to_a.map{|i| i.inject(:+)} | |
d.times{ | |
i = gets.chomp.to_i | |
m = combinations.select{|j| (i-j) >= 0}.max | |
puts m.nil? ? 0 : m | |
} |
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
# coding: utf-8 | |
landscape = Dir.glob("#{File.expand_path("~")}/dotfiles/background/landscape/*.jpg") | |
portrait = Dir.glob("#{File.expand_path("~")}/dotfiles/background/portrait/*.jpg") | |
puts "feh --bg-fill #{landscape.shuffle.first} #{portrait.shuffle.first}" |
NewerOlder