Skip to content

Instantly share code, notes, and snippets.

Anh Trinh ptgamr

Block or report user

Report or block ptgamr

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 comments-box-initial-template.hbs
<div class="ui comments">
<h3 class="ui dividing header">Comments</h3>
<div class="comment">
<a class="avatar">
<img src="https://api.adorable.io/avatars/100/oldmonk@adorable.png">
</a>
<div class="content">
<a class="author">Matt</a>
<div class="metadata">
<span class="date">Today at 5:42PM</span>
View installation notes.md
3290  sudo sh ~/Downloads/cuda_10.0.130_410.48_linux.run              
3291  tail -f /var/log/nvidia-installer.log                              
3292  lsmod | grep nouveau                       
3293  tail -f /var/log/nvidia-installer.log                                              
3294  nvidia-detector            
3295  lsmod | grep nouveau                                       
3296  sudo sh ~/Downloads/cuda_10.0.130_410.48_linux.run


View Reddit thread.md

https://www.reddit.com/r/vim/comments/7fqpny/slow_vim_scrolling_and_cursor_moving_in_iterm_and/

i guys, I'm desperate :c Just bought my new MacBook pro 2017 and was very happy with it for a while until I decided to configure my vim. On Linux vim works just fine, scrolling is always ok even with a much faster cursor speed than I have now on mac. But lately I spent a WHOLE day trying to figure out what's wrong with scrolling speed on mac. It drives me insane. Both terminal and iterm are extremely slow at rendering and even moving the cursor around without scrolling at all is laggy!

I think I tried almost all the possible suggestions including

setting ttyfast and lazyredraw

speeding up my key repeat to 1(scroll is faster but even more laggy)
@ptgamr
ptgamr / clean-up-boot-partition-ubuntu.md
Created Sep 18, 2018 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64
View clean-up-boot-partition-ubuntu.md

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
View import-lodash-from-console.js
fetch('https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js')
.then(response => response.text())
.then(text => eval(text))
@ptgamr
ptgamr / concat.sh
Last active Sep 3, 2018
concat audio add delay (install http://macappstore.org/sox/)
View concat.sh
#! /bin/bash
sox -n -r 22050 -c 1 /tmp/silence.wav trim 0.0 15
sox /tmp/silence.wav -C 48.01 /tmp/silence.mp3
sox $(for f in `ls *.mp3 | sort -V`; do echo -n "$f /tmp/silence.mp3 "; done) output.mp3
@ptgamr
ptgamr / alacritty.yml
Created Aug 13, 2018 — forked from travisfw/alacritty.yml
~/.config/alacritty/alacritty.yml
View alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
env:
# TERM env customization. Default is xterm-256color
# Note: the default TERM value `xterm-256color` does not
# specify all features alacritty supports. This does pose
View coursera-stylus.css
body {
background-color: #333;
color: #ddd;
border-color: white !important;
}
body * {
border-color: #444 !important;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am ptgamr on github.
  • I am ptgamr (https://keybase.io/ptgamr) on keybase.
  • I have a public key ASC4NF7gpcHQqMZm8ep9eQlRPlRXZfx8fgMSlrUAN5SwFwo

To claim this, I am signing this object:

@ptgamr
ptgamr / Ubuntu-Compass-ruby[16.04]
Created Mar 24, 2018 — forked from AungMyoKyaw/Ubuntu-Compass-ruby[16.04]
Compass installation for ubuntu 16.04
View Ubuntu-Compass-ruby[16.04]
[https://gist.github.com/stephou0104/233b5c99884f1d8c8b8b#file-ubuntu-compass-ruby]
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
You can’t perform that action at this time.