Skip to content

Instantly share code, notes, and snippets.

View imyxh's full-sized avatar
🏳️‍⚧️

imyxh

🏳️‍⚧️
View GitHub Profile
@imyxh
imyxh / kattis-trollhunt.py
Last active January 4, 2017 00:55
null created by imyxh - https://repl.it/FARC/1
from sys import stdin
from math import ceil, floor
f = list(map(int, stdin.readline().split(' ')))
print(ceil((f[0]-1)/floor(f[1]/f[2])))
@imyxh
imyxh / steam-sys-info.txt
Created February 23, 2018 04:56
Steam - System Information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-3537U CPU @ 2.00GHz
CPU Family: 0x6
@imyxh
imyxh / csgo-glxinfo.txt
Created February 23, 2018 05:17
glxinfo for csgo issue
user@host:~$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/imyxh/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="imyxh"
# ls
alias ls='ls --color=auto'
alias l.='ls -d .* --color=auto'
alias lla='ls -alF --group-directories-first --color=always'
alias ll='ls -l --group-directories-first --color=always'
alias la='ls -A --group-directories-first --color=always'
alias l='ls -CF --group-directories-first --color=always'
alias llg='ls -alF --group-directories-first --color=always|grep'
alias llm='ls -alF --group-directories-first --color=always|more'
alias lll='ls -alF --group-directories-first --color=always|more'
#!/bin/bash
#
# This file echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
#
#!/bin/sh -
# Clear SSD's Blender temp folder.
# Could be done by following https://wiki.archlinux.org/index.php/Systemd/User#Temporary_files,
# but that wouldn't work with trash support.
trashdir="/home/imyxh/.local/share/Trash/files"
for i in /mnt/ssd/blender/temp/*
do
mkdir -p $trashdir/blender-temp;
mv "$i" $trashdir/blender-temp;
" load defaults
source /usr/share/vim/vimfiles/archlinux.vim
:filetype plugin on
:syntax on
" Set block cursor on start.
autocmd VimEnter * silent !echo -ne "\e[2 q"
" Set IBeam shape in insert mode, underline shape in replace mode and block shape after exiting insert mode.
RUN_SCRIPT_PATH=$HOME/gimp-git/run
post_install() {
cat > $RUN_SCRIPT_PATH <<-EOF
#!/bin/sh
# update as necessary
DIR_VERSION=2.99
EOF
cat >> $RUN_SCRIPT_PATH <<-'EOF'
# Maintainer: Iru Cai <mytbk920423@gmail.com>
# Maintainer: Alexander Hunziker <alex.hunziker@gmail.com>
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>
# Edited by Ian Huang to install alongside gimp stable
pkgname=gimp-git
epoch=1
pkgver=2.10.2.601.g0ff95b66b7
pkgrel=1