Skip to content

Instantly share code, notes, and snippets.

View a1batross's full-sized avatar
🦊
OwO what's dis?

Alibek Omarov a1batross

🦊
OwO what's dis?
View GitHub Profile
@a1batross
a1batross / server.cfg
Created April 22, 2016 19:57
Server.cfg from Counter-Strike Xash3D Server
// Use this file to configure your DEDICATED server.
// This config file is executed on server start.
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// default server name. Change to "Bob's Server", etc.
@a1batross
a1batross / PVSAnalyze.cmake
Created August 24, 2016 16:05
PVS Studio CMake script
#
# Copyright (c) 2016 Alibek Omarov a.k.a. a1batross
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
--- hybris-original/ramdisk/init 2017-10-25 12:21:56.000000000 +0300
+++ hybris/ramdisk/init 2018-01-08 03:04:50.743426680 +0300
@@ -26,7 +26,7 @@
BOOTLOGO=
ALWAYSDEBUG=
-DATA_PARTITION=/dev/mmcblk0p49
+DATA_PARTITION=/dev/mmcblk1p1
DEFAULT_OS=sailfishos
@a1batross
a1batross / gen-steam-bg.sh
Created April 16, 2019 21:57
HL Steam backgrounds generator based on imagemagick
#!/bin/bash
file=$1
width=$(identify -format %W $file)
height=$(identify -format %H $file)
out=BackgroundLayout.txt
mkdir -p background
echo "resolution $width $height" >> $out
@a1batross
a1batross / test.log
Created July 2, 2019 19:39
test.log
$ sudo apt install wine64 -y > test.log
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
cups cups-bsd cups-client cups-common cups-core-drivers cups-daemon
cups-ipp-utils cups-server-common fonts-wine gcc-9-base:i386
gstreamer1.0-plugins-base:i386 libasn1-8-heimdal:i386 libasound2:i386
libasound2-plugins:i386 libasyncns0:i386 libatomic1:i386
libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386
#!/bin/sh
SCOPES='read write follow'
if [ "$#" = "1" ]; then
RESPONSE_APP=$(curl -XPOST -F 'client_name=DoYouSuckDicks' -F "redirect_uris=urn:ietf:wg:oauth:2.0:oob" -F "scopes=$SCOPES" -F 'website=https://example.org' https://$1/api/v1/apps)
CLIENT_ID=$(echo $RESPONSE_APP | jq -r .client_id)
CLIENT_SECRET=$(echo $RESPONSE_APP | jq -r .client_secret)