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 python3 | |
# TwitterPurge is a simplified python script to perform operations on twitter archives. | |
# I wrote this in a single day while reading an API doc for the first time. | |
# | |
# Any tips you can spare will go to fund alt social media and tools | |
# BTC: bc1qe0el876trjjuuu3zr729n3w3zp4t2k92smklkz | |
# | |
# Setup python | |
# ========================================================== | |
# Download and install python3 from https://www.python.org/downloads/ |
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
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index d8a0283..dde9c43 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -34,4 +34,7 @@ target_sources(img2ktx PRIVATE | |
add_subdirectory(third_party) | |
# This line should be in third_party/CMakeLists.txt, but would require CMake 3.13 (see CMP0079 for details) | |
target_link_libraries(img2ktx PRIVATE Compressonator) | |
+if(${UNIX}) | |
+ target_link_libraries(img2ktx PRIVATE pthread) |
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
function KaBuild.VersionHeader(self) | |
return KaBuild.SourcePath(self, 'KaVersionBuildId.h') | |
end | |
-- ... | |
prebuildcommands { | |
'echo "#pragma once" > ' .. build:VersionHeader(), | |
'echo -n "#define ENGINE_BUILD_SRC 0x" >> ' .. build:VersionHeader(), | |
'git describe --always >> ' .. build:VersionHeader(), |
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
import re | |
import sublime | |
import sublime_plugin | |
import webbrowser | |
REG_RENAME = re.compile("\.(py)$") | |
EXT = re.compile(".*\.(py)$") | |
COMMAND = "pyflakes3 " |
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
# Install xdotool first | |
#sudo apt install xdotool | |
# Now you can force ungrab mouse | |
setxkbmap -option grab:break_actions | |
xdotool key XF86Ungrab |
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 This blender script finds all meshes without UVs and unwraps them. | |
# @author Terry Hendrix II github/thendrix | |
import bpy | |
# Unselect objects | |
for obj in bpy.context.selected_objects: | |
obj.select = False | |
# Find and process meshes without UVs |
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
%YAML 1.2 | |
# Reference: https://www.sublimetext.com/docs/3/syntax.html | |
# A systemd syntax highlight file for Sublime Text 3 | |
# Fix comment support, fix heading, add boolean, add string, switch source type -- thendrix | |
--- | |
name: Systemd | |
file_extensions: [service] | |
scope: source.service | |
contexts: |
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
# This was written to fix a long standing bug with gitlab LFS and some repos that were migrated over a year ago. | |
# | |
# @todo Pull in shell commands to 100% python if I ever need this again | |
# | |
# I make no fitness for any purpose claims | |
# I wrote this at 0300 after a concert... it worked for me at the time. | |
# Let me know if you fork this or have comments. | |
# | |
# Consider this MIT licensed | |
# |
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
extern "C" { | |
// '-Wl,-wrap,tempnam' | |
char *__wrap_tempnam( const char *dir, const char *pfx ) | |
{ | |
// You'll have to rewrite this part for your filesystem layer. | |
static unsigned int i = 0; | |
const unsigned int len = 512; | |
char path[ len ]; | |
KaFilePathToCachePathf( path, len, "%s%s-%d.tmp", |