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
| /* Copyright 1993-2009 NVIDIA Corporation. All rights reserved. | |
| Modified by Mark Zwolinski, December 2009 | |
| Modified by Robert McGibbon, August 2013 | |
| */ | |
| #define CL_TARGET_OPENCL_VERSION 220 | |
| #ifdef __APPLE__ | |
| #include <OpenCL/opencl.h> | |
| #else | |
| #include <CL/cl.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
| These commands are based on a askubuntu answer http://askubuntu.com/a/581497 and https://askubuntu.com/questions/26498/choose-gcc-and-g-version | |
| To install gcc-7 (gcc-7.2.0), I had to do more stuff as shown below. | |
| USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
| ABSOLUTELY NO WARRANTY. | |
| If you are still reading let's carry on with the code. | |
| sudo apt-get update && \ | |
| sudo apt-get install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
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
| Show file in HEX and text view (as old dos navigator, norton commander, etc..) | |
| hexdump -C file.name | |
| Simple local server running on port 8000 within home dir: | |
| python -m SimpleHTTPServer | |
| Check graphic driver info: inxi -Gx | |
| IP addres parsing: /sbin/ifconfig wlp2s0 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://' | |
| Check difference on 2 text files: |
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 zsh | |
| # Currently the script will choke on tilde characters used in either search or | |
| # replace terms | |
| # inspired by | |
| # https://gist.github.com/hlissner/db74d23fc00bed81ff62 | |
| # https://gist.github.com/kates/5915285 | |
| # ag |
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.ac | |
| AM_INIT_AUTOMAKE([foreign subdir-objects] | |
| AC_CONFIG_MACRO_DIR([m4]) | |
| Makefile.am | |
| ACLOCAL_AMFLAGS = -I m4 | |
| mkdir m4 | |
| autoreconf -i |
Script to add all items from quixel
As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)
Note: This script only tested in the latest version of Chrome.
- Copy the script from below (
run.js) - Login into https://quixel.com
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 | |
| # Source and destination files | |
| LOG_FILE="/var/log/nginx/error.log" | |
| DENY_FILE="/etc/nginx/conf.d/deny.block" | |
| # Temporary file to hold the new unique entries | |
| TEMP_FILE=$(mktemp) | |
| # Extract unique IPs from the error log excluding 0.0.0.0 and 185.32.132.29 |
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
| --------- .bashrc в конце файла дописано: | |
| # starting docker | |
| ./start-docker.sh | |
| --------- start-docker.sh | |
| sudo update-alternatives --set iptables /usr/sbin/iptables-legacy | |
| sudo dockerd &> dockerd-logfile & | |
| docker start mysql57 | |
| docker start sftp |
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 | |
| # Ref: https://github.com/HearthSim/UnityPack/issues/74 | |
| import sys | |
| import os | |
| from unitypack.utils import BinaryReader | |
| SIGNATURE = 'UnityWebData1.0' | |
| class DataFile: |
OlderNewer

