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
| @echo off | |
| chcp 65001 >nul 2>&1 | |
| setlocal EnableDelayedExpansion | |
| REM --------------------------------------------------------------------------- | |
| REM Gamesture -- Codex CLI Setup (Windows) | |
| REM | |
| REM Instaluje wszystko co potrzebne: | |
| REM 1. Git for Windows | |
| REM 2. Codex CLI |
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/env bash | |
| # Wymuszaj bash nawet gdy uruchomiony przez zsh (np. zsh /tmp/gs-codex-install.sh) | |
| if [ -z "${BASH_VERSION:-}" ]; then | |
| exec bash "$0" "$@" | |
| fi | |
| # Cały skrypt w subshell — exit zamyka tylko subshell, nigdy terminal użytkownika | |
| ( | |
| set -euo pipefail | |
| _exit() { 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
| #!/bin/sh | |
| # build.sh | |
| GLOBAL_OUTDIR="`pwd`/dependencies" | |
| LOCAL_OUTDIR="./outdir" | |
| LEPTON_LIB="`pwd`/leptonica-1.68" | |
| TESSERACT_LIB="`pwd`/tesseract-3.01" | |
| IOS_BASE_SDK="5.1" | |
| IOS_DEPLOY_TGT="4.3" |
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
| du -s * | sort -nr | cut -f2- | xargs -I {} du -hs {} |
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
| rm $(ls * | grep -v 'EditorBuildSettings.asset\|InputManager.asset\|ProjectSettings.asset\|QualitySettings.asset\|TagManager.asset\|TimeManager.asset\|AudioManager.asset\|DynamicsManager.asset\|NetworkManager.asset') |
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
| @interface UIView (FindUIViewController) | |
| - (UIViewController *) firstAvailableUIViewController; | |
| - (id) traverseResponderChainForUIViewController; | |
| @end | |
| @implementation UIView (FindUIViewController) | |
| - (UIViewController *) firstAvailableUIViewController |
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 log --pretty=format:'%C(yellow)%h%Cred%d%Creset - %C(cyan)%an %Creset: %s %Cgreen(%cr)' |
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
| KEYWORDS="TODO.*:|FIXME.*:|\?\?\?.*:|\!\!\!.*:" | |
| find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.mm" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$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
| #!/bin/sh | |
| projectfile=`find -d . -name 'project.pbxproj'` | |
| projectdir=`echo *.xcodeproj` | |
| projectfile="${projectdir}/project.pbxproj" | |
| tempfile="${projectdir}/project.pbxproj.out" | |
| savefile="${projectdir}/project.pbxproj.mergesave" | |
| cat $projectfile | grep -v "<<<<<<< HEAD" | grep -v "=======" | grep -v "^>>>>>>> " > $tempfile | |
| cp $projectfile $savefile |
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 | |
| if [ "$#" != "1" ] | |
| then | |
| echo wrong number of arguments | |
| echo Usage: $0 \<filename\> | |
| echo filename - file with build output | |
| exit 1 | |
| else | |
| cat $1 | grep "warning:" | sort | uniq -c | sort -nr | awk '{print $0}{total+=1}END{print "Total number of warnings:\n"total}' |
NewerOlder