This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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). | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# pushes all dotfiles and scripts to gist | |
# uses https://github.com/defunkt/gist | |
#TODO: add parameters 'n stuff | |
# check if gist is installed | |
if ! type "gist" > /dev/null; then | |
echo "Gist isn't installed! https://github.com/defunkt/gist" | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
OlderNewer