Skip to content

Instantly share code, notes, and snippets.

View uetchy's full-sized avatar
🍵
Recovering

uetchy uetchy

🍵
Recovering
View GitHub Profile
@uetchy
uetchy / filter.txt
Last active August 20, 2021 04:55
Social Detox Filter
[Adblock Plus 2.0]
! Title: Social Detox Filter
! Homepage: https://gist.github.com/uetchy/c6b774ea8e0221d71d1fe87720223c72/
!Twitter - Remove Counters
twitter.com##div[data-testid="reply"] > div > div:nth-child(2)
twitter.com##div[data-testid="like"] > div > div:nth-child(2)
twitter.com##div[data-testid="unlike"] > div > div:nth-child(2)
twitter.com##div[data-testid="retweet"] > div > div:nth-child(2)
twitter.com##div[data-testid="unretweet"] > div > div:nth-child(2)
@uetchy
uetchy / mac-battery-inspector.py
Last active August 20, 2018 05:49
Inspect your MacBook's battery.
#!/usr/bin/env python
from __future__ import print_function
import subprocess
import re
def getIOReg():
cmd = "ioreg -l | grep Capacity"
response = subprocess.check_output(cmd, shell=True)
@uetchy
uetchy / bezier_curve.ipynb
Created May 14, 2018 02:43
Bezier curve from scratch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am uetchy on github.
  • I am uechi (https://keybase.io/uechi) on keybase.
  • I have a public key ASB3p7n7ezpVina06FyMi_9hgeqEwjCiEbRp4TpBw8d7TQo

To claim this, I am signing this object:

@uetchy
uetchy / cc_analysis.ipynb
Last active June 21, 2017 12:34
cc_analysis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uetchy
uetchy / 01_install_cuda_cudnn.sh
Last active June 14, 2017 06:13
CUDA on macOS
# install CUDA 8.0
brew cask install cuda
## add alias for libcuda.dylib to suppress the issue related to TensorFlow - https://github.com/tensorflow/tensorflow/issues/3263
sudo ln -s /usr/local/cuda/lib/libcuda.dylib /usr/local/cuda/lib/libcuda.1.dylib
# install cuDNN 5.1
# get cuDNN from https://developer.nvidia.com/rdp/cudnn-download
tar xzf cudnn-8.0-osx-x64-v5.1.tgz
sudo cp cuda/include/cudnn.h /Developer/NVIDIA/CUDA-8.0/include
@uetchy
uetchy / install.sh
Last active June 15, 2016 09:09
nv Install Script
#!/bin/bash
set -eu
GOOWNER=uetchy
GONAME=nv
GOTAG=v2.0.0
if [[ `uname -s` =~ ([Dd]arwin|mac os x) ]]; then
GOOS="darwin"
@uetchy
uetchy / install_chainer.sh
Created January 14, 2016 12:34
Install chainer
#!/bin/bash
export PATH=/usr/local/cuda/bin:$PATH
export CPATH=/opt/cudnn/include
export LIBRARY_PATH=/usr/local/cuda/lib:/opt/cudnn/lib
export LD_LIBRARY_PATH=$LIBRARY_PATH
export DYLD_LIBRARY_PATH=$LIBRARY_PATH
LDFLAGS="-F/Library/Frameworks -framework CUDA" pip install --no-cache-dir chainer
@uetchy
uetchy / setup_tex.sh
Last active January 13, 2016 23:15
TeX for OS X
#!/bin/bash
brew cask install basictex
export PATH="/Library/TeX/texbin:$PATH"
sudo tlmgr update --self --all
sudo tlmgr install collection-langjapanese draftcopy
# tlmgr search —global foobar
@uetchy
uetchy / platformio.rb
Last active February 27, 2016 11:21
Platform.IO Homebrew Formula
class Platformio < Formula
desc "An open source ecosystem for IoT development"
homepage "http://platformio.org"
url "https://pypi.python.org/packages/source/p/platformio/platformio-2.8.4.tar.gz"
sha256 "5728bee3281a10e33f4727da0cdb3f7b1f333fd415fdbbde6ad1591a963344b5"
depends_on :python if MacOS.version <= :snow_leopard
resource "bottle" do
url "https://pypi.python.org/packages/source/b/bottle/bottle-0.12.9.tar.gz"