- Images sources at: http://cdimage.debian.org/cdimage/archive/
- Using jigdo: https://help.ubuntu.com/community/JigdoDownloadHowto
- Downloaded from the 'jigdo-dlbd/' dir
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
# http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/ | |
@@echo off | |
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x64 | |
set QTDIR=C:\Qt\5.2.1 | |
set PATH=%QTDIR%\bin;C:\Qt\qt-creator-opensource-src-3.0.1\bin;C:\Qt\jom;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin;%PATH% | |
set QMAKESPEC=win32-msvc2010 | |
cd C:\Qt\5.2.1 | |
cmd | |
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
:: Fix based on http://qt-project.org/forums/viewthread/13963 | |
C:\Qt\Qt5.2.1\5.2.1\msvc2012_64_opengl\bin\dumpcpp.exe "C:\Program Files\SolidWorks Corp\SolidWorks\sldworks.tlb" -n SWK -o sldworks | |
C:\Qt\Qt5.2.1\5.2.1\msvc2012_64_opengl\bin\dumpcpp.exe "C:\Program Files\SolidWorks Corp\SolidWorks\swconst.tlb" -n SWK -o sldconst |
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
;; Configure emacs | |
;; Set font | |
;; http://askubuntu.com/questions/23603/how-to-change-font-size-in-emacs | |
(set-face-attribute 'default nil :height 120) | |
;; disable splash screen | |
(load "~/elisp/autoloads" 'install) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. |
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
# See http://webcheatsheet.com/SQL/mysql_backup_restore.php | |
# Backup | |
mysqldump -u user -pMyPassword databasename > databasename.sql | |
# Restore | |
# http://www.thegeekstuff.com/2008/09/backup-and-restore-mysql-database-using-mysqldump/ | |
# Drop the existing table | |
# Create the table |
Force downgrade to rubygems 1.8
rvm rubygems latest-1.8 --force
Setup the MySQL database and user
Start the server:
./script/app start
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
git stash list | awk '{b= gensub(" ", "_", "g", $0); system("git stash show -p " substr($1, 0, length($1)-1) " > ~/Desktop/" b ".diff")}' |
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
# Count the number of rows in csv files not counting the header row | |
# (assuming the header has a column named "header_col") | |
cat *.csv | grep -w "header_col" -c -v | |
# recursive | |
find `pwd` | xargs cat | grep -w "user_id" -c -v | |
# also listing files in order | |
ls -lR --group-directories-first |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#! /usr/bin/ruby | |
require 'socket' | |
# use printer IP address here | |
sock = TCPSocket.new('000.000.000.000', '9100') | |
# Start | |
sock.write "\u{001B}%-12345X@PJL\n" | |
# commands |