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="">
<div class="content">
<a class="author">Matt</a>
<div class="metadata">
<span class="date">Today at 5:42PM</span>
View installation
3290  sudo sh ~/Downloads/              
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/

View Reddit

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 /
Created Sep 18, 2018 — forked from ipbastola/
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

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


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
.then(response => response.text())
.then(text => eval(text))
ptgamr /
Last active Sep 3, 2018
concat audio add delay (install
#! /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 / alacritty.yml
Created Aug 13, 2018 — forked from travisfw/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.
# 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;

Keybase proof

I hereby claim:

  • I am ptgamr on github.
  • I am ptgamr ( on keybase.
  • I have a public key ASC4NF7gpcHQqMZm8ep9eQlRPlRXZfx8fgMSlrUAN5SwFwo

To claim this, I am signing this object:

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]
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 | bash -s stable
gpg2 --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
You can’t perform that action at this time.