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 | |
| # Usage: | |
| # aur depends mingw-w64-ucrt-mcf-x86_64-some_package | tsort | tac | aur debuild | |
| ARGS=( "$@" ) | |
| if [ ! -t 0 ]; then | |
| readarray -t STDIN_LINES < /dev/stdin | |
| PACKAGES=( "${ARGS[@]}" "${STDIN_LINES[@]}" ) | |
| else |
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 | |
| # https://github.com/msys2/MINGW-packages/discussions/28078 | |
| set -e | |
| if [ "$#" -ne 1 ]; then | |
| echo "Error: This script requires exactly 1 argument." >&2 | |
| echo "Usage: $0 <path/to/PKGBUILD>" >&2 | |
| exit 1 | |
| fi |
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
| #include <stdio.h> | |
| #include <allegro.h> | |
| #include <immintrin.h> | |
| /* | |
| MSVC compiler flags used: | |
| /Oy /O2 /Ot /Oi /Ob2 /Gy /arch:AVX /fp:fast | |
| Elapsed time for a5color_original: 88.65 seconds | |
| Elapsed time for a5color_manual: 81.68 seconds |
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
| file | lineno | pos | func | not_us | msgid | |
|---|---|---|---|---|---|---|
| ./tools/hunspell.cxx | 1900 | 44 | gettext | v | \nCopyright (C) 2002-2022 L\303\241szl\303\263 N\303\251meth. License: MPL/GPL/LGPL.\n\nBased on OpenOffice.org's Myspell library.\nMyspell's copyright (C) Kevin Hendricks, 2001-2002, License: BSD.\n\n |
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
| #define WIN32_LEAN_AND_MEAN | |
| #include <winsock2.h> | |
| #include <windows.h> | |
| #define SECURITY_WIN32 | |
| #include <security.h> | |
| #define SCHANNEL_USE_BLACKLISTS | |
| #include <subauth.h> | |
| #include <schnlsp.h> | |
| #include <shlwapi.h> | |
| #include <assert.h> |
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
| // ==UserScript== | |
| // @name Add PlayRun button to LibriVox | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-07-29 | |
| // @description Speed up adding LibriVox books into PlayRun | |
| // @author mlt | |
| // @match https://librivox.org/*/ | |
| // @match https://www.playrun.app/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=librivox.org | |
| // @grant GM_xmlhttpRequest |
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
| # Chain sqitch metadata dump to structure.sql dumping | |
| # | |
| # Structure dump does not include any data | |
| # whilst Sqitch expect its metadata at all times. | |
| # This allows to cache DB schema in a single sql dump to speed up tests | |
| # while allowing continuous deployment of new changes with sqitch. | |
| # | |
| # sqitch deploy ... | |
| # bundle exec rails db:structure:dump RAILS_ENV=test | |
| # bundle exec rails test |
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 python | |
| """ | |
| Split a PostgreSQL plain dump file into files for each of its objects. | |
| This is used to compare two SQL database contents: both contents are dumped to a | |
| plain text file, and they are then processed through this script which generates | |
| a file for each database object, which can then be compared using a directory | |
| diff program. | |
| """ |
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
| # Mix this into an AR class for lookup tables to perform an inquiry. | |
| # For example, if Movie has Genre and genres table has id->genre mapping | |
| # then one could use the_movie.genre.comedy? instead of the_movie.genre.genre == 'comedy' | |
| module LookupTable | |
| def self.included(base) | |
| raise "#{name} can only be included into classes that inherit from ActiveRecord::Base, #{base.name} does not." unless base < ActiveRecord::Base | |
| base.instance_variable_set :@lookup_column, base.name.demodulize.underscore | |
| base.extend(ClassMethods) | |
| end |
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
| /** | |
| JSON editable input. | |
| Internally value stored as {city: "Moscow", street: "Lenina", building: "15"} | |
| Supported editors: | |
| - https://github.com/json-editor/json-editor | |
| - https://github.com/josdejong/jsoneditor | |
| @class json | |
| @extends abstractinput |
NewerOlder