Skip to content

Instantly share code, notes, and snippets.

@naniwaKun
naniwaKun / Dockerfile
Created November 25, 2020 19:44
jdim 8d40d336d97168733a77dc28e97356f111ffb572 ブランチのテスト
From ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y install build-essential automake autoconf-archive git libtool
RUN apt-get -y install libgtkmm-3.0-dev libmigemo1 libasound2-data libltdl-dev libasound2-dev libgnutls28-dev
## gcc-6 g++-6
RUN apt-get install gcc-6 g++-6 -y
pkgname=jd-gtk3
pkgver=r2365.21c84419
pkgrel=1
pkgdesc="A 2channel browser written in C++ using gtkmm (patched)"
arch=('i686' 'x86_64')
url="https://github.com/ma8ma/JD/tree/gtk3-idea"
license=('GPL2')
makedepends=('git')
depends=('gnutls' 'libsm' 'gtkmm3' 'autoconf-archive')
conflicts=('jd' 'jd-svn' 'jd-costom')
@naniwaKun
naniwaKun / PKGBUILD
Last active October 2, 2017 08:03
nikoniko-obs
# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Benjamin Klettbach <[email protected]>
pkgname=obs-studio
pkgver=20.0.1
pkgrel=2
pkgdesc="Free, open source software for live streaming and recording"
arch=('i686' 'x86_64')
url="https://obsproject.com"
license=('GPL2')
@naniwaKun
naniwaKun / Install.sh
Last active September 21, 2017 14:05
Install.sh
sudo apt update
sudo apt upgrade
sudo apt install gcc make python2.7 nodejs npm git
git clone git://github.com/c9/core.git c9sdk
cd c9sdk
scripts/install-sdk.sh
cd ~
sudo mv c9sdk /opt/
mkdir workspace
echo " /usr/bin/node /opt/c9sdk/server.js -l 127.0.0.1 -w $home/workspace" > cloud9
##バックアップは真面目に取る
##特にデータベースとファイルは絶対取る
sudo su
##何もでなかったらスルー。
dpkg --get-selections | grep 'hold$'
##何もでなかったらスルー。
dpkg -l | awk '/^rc/ { print $2 }'
@naniwaKun
naniwaKun / block.rb
Last active August 23, 2017 08:39
大量にフォロバしてしまったアラブ人をブロックしてブロック解除する。 ref: http://qiita.com/naniwaKun/items/5c2582f32c7116ae89c9
require "twitter"
require 'json'
USERNAME = "********"
client = Twitter::REST::Client.new do |config|
config.consumer_key = "********"
config.consumer_secret = "********"
config.access_token = "********"
config.access_token_secret = "********"
@naniwaKun
naniwaKun / bot.rb
Last active August 23, 2017 08:39
ツイッターボットでアラブ人を自動フォロバしない。 ref: http://qiita.com/naniwaKun/items/f159d1e80f1fd4fb2fba
require "twitter"
require 'json'
USERNAME = "********"
client = Twitter::REST::Client.new do |config|
config.consumer_key = "********"
config.consumer_secret = "********"
config.access_token = "********"
config.access_token_secret = "********"
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'tw/version'
Gem::Specification.new do |gem|
gem.name = "tw"
gem.version = Tw::VERSION
gem.authors = ["Sho Hashimoto"]
gem.email = ["[email protected]"]
gem.description = %q{CUI Twitter Client.}
@naniwaKun
naniwaKun / tw_client_stream.rb
Last active August 20, 2017 03:59
tw クライアントのソース変更の提案 ref.https://twitter.com/naniwa_stg/status/881834161757081601
module Tw
class Client::Stream
def initialize(user=nil)
user = Tw::Auth.get_or_regist_user user
@client = Twitter::Streaming::Client.new do |config|
config.consumer_key = Conf['consumer_key']
config.consumer_secret = Conf['consumer_secret']
config.access_token = user['access_token']
config.access_token_secret = user['access_secret']
@naniwaKun
naniwaKun / archsetup.sh
Last active April 19, 2019 17:41 — forked from kunst1080/archsetup.sh
server instal by archlinux iso image on stickpc
NEWHOSTNAME=$1
ROOTPASSWD=$2
# Keymap
loadkeys jp106
# Setup HDD
sudo parted /dev/mmcblk1 mklabel gpt
parted /dev/mmcblk1 mkpart ESP fat32 1MiB 551MiB
parted /dev/mmcblk1 mkpart primary ext4 551MiB 100%