Skip to content

Instantly share code, notes, and snippets.

@Osse
Osse / stdout
Created November 25, 2012 16:13
Terminal transcript
osse@osse-w760:~[master•]$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 5 commits.
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: .gitconfig
# modified: .zfunctions/man
@Osse
Osse / vdwrap
Last active October 18, 2022 18:06
Vimdiff wrapper for use with git difftool --dir-diff
#!/usr/bin/env zsh
# Configuration:
# $ git config --global diff.tool vdwrap
# If you don't put vdwrap somewhere in $PATH then either:
# $ git config --global difftool.vdwrap.cmd '/full/path/vdwrap $LOCAL $REMOTE'
# or:
# $ git config --global difftool.vdwrap.cmd 'vdwrap $LOCAL $REMOTE'
# $ git config --global difftool.vdwrap.path '/full/path'
#
@Osse
Osse / gist:debdb53074b377bf784c
Created September 29, 2014 09:13
qmake variables
message("QMAKE: $$QMAKE")
message("QMAKESPEC: $$QMAKESPEC")
message("QMAKE_AR_CMD: $$QMAKE_AR_CMD")
message("QMAKE_BUNDLE_DATA: $$QMAKE_BUNDLE_DATA")
message("QMAKE_BUNDLE_EXTENSION: $$QMAKE_BUNDLE_EXTENSION")
message("QMAKE_CC: $$QMAKE_CC")
message("QMAKE_CFLAGS_DEBUG: $$QMAKE_CFLAGS_DEBUG")
message("QMAKE_CFLAGS_RELEASE: $$QMAKE_CFLAGS_RELEASE")
message("QMAKE_CFLAGS_SHLIB: $$QMAKE_CFLAGS_SHLIB")
message("QMAKE_CFLAGS_THREAD: $$QMAKE_CFLAGS_THREAD")
function! Comment()
silent s/^/\=escape(b:comment_leader,'\/')
nohlsearch
endfunction
@Osse
Osse / .zshrc
Created January 15, 2013 12:08
Copy the current contents of the ZLE buffer to the clipboard
bindkey '^X' copy-command
function copy-command() {
xsel -ib <<< $BUFFER
}
zle -N copy-command
diff --git a/config.cfg b/config.cfg
index 6e27171..8c42a46 100644
--- a/config.cfg
+++ b/config.cfg
@@ -84,7 +84,7 @@ c_thirdpersonshoulderdist "40.0"
c_thirdpersonshoulderheight "5.0"
c_thirdpersonshoulderoffset "20.0"
cachedvalue_count_partybrowser "1548353036"
-cachedvalue_count_teammates "1548354822"
+cachedvalue_count_teammates "1548357382"
diff --git a/video.txt b/video.txt
index 70667bc..7470f7d 100644
--- a/video.txt
+++ b/video.txt
@@ -1,22 +1,24 @@
-"VideoConfig"
-{
- "setting.cpu_level" "1"
- "setting.gpu_level" "0"
- "setting.mat_antialias" "2"
@Osse
Osse / gist:20adc32dd8d937d06a43dd13d431916c
Created January 24, 2019 18:47
Steam system information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
CPU Family: 0x6
@Osse
Osse / gist:3944504
Created October 24, 2012 07:12
git status error
When running 'git status' I get the following error when my cwd is .../repo/some_subdir
fatal: internal error: work tree has already been set
Current worktree: /full/path/to/repo/
New worktree: /full/path/to/repo/some_subdir
When I am in .../repo and run 'git status' it behaves as expected. There .git is a textfile containing:
gitdir: /some/other/full/path/myrepo
!q::
IfWinExist Arch Linux x64 [Running] - Oracle VM VirtualBox
WinActivate
MouseClick, Left, 200, 200, 2, 10
return
;^!x::ControlSend, Qt5QWindowIcon, {F5}
<^>!x::Send {F5}
; Vim stuff