This file contains 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 | |
# Instructions: https://gist.github.com/jepio/39bd91d63ee7f02851b5253694f07908 | |
# This Script: https://github.com/Hinara/linux-vm-tools/blob/ubuntu20-04/ubuntu/22.04/install.sh | |
# | |
# This script is for Ubuntu 22.04 Jammy Jellyfish to download and install XRDP+XORGXRDP via | |
# source. | |
# | |
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips. |
This file contains 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
<option name="LOGCAT_V2_LEVEL_ASSERT"> | |
<value> | |
<option name="FOREGROUND" value="ffffff" /> | |
<option name="BACKGROUND" value="9876aa" /> | |
</value> | |
</option> | |
<option name="LOGCAT_V2_LEVEL_DEBUG"> | |
<value> | |
<option name="FOREGROUND" value="0" /> | |
<option name="BACKGROUND" value="aaaaaa" /> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Deeplink Test</title> | |
</head> | |
<body> | |
<h3>Enter Link URL</h3> | |
<form action="links.php" method="post"> | |
<input name="deeplink" value="https://"/> | |
<input type="submit" value="Submit"/> |
This file contains 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
class SemanticVersionComparator: Comparator<String> { | |
private val nonDigits: Regex = Regex("[^\\d.]") | |
private val onPeriods: Regex = Regex("\\.") | |
override fun compare(currentVersion: String, otherVersion: String): Int { | |
// remove everything after the "+" character, sanitize non-digits, then split on the periods | |
val semVerCurrent: MutableList<String> = currentVersion | |
.substringBefore("+") |
This file contains 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
<scheme name="BanasiakCat" version="142" parent_scheme="Darcula"> | |
<metaInfo> | |
<property name="created">2021-11-04T15:11:45</property> | |
<property name="ide">AndroidStudio</property> | |
<property name="ideVersion">2020.3.1.24</property> | |
<property name="modified">2021-11-04T15:11:52</property> | |
<property name="originalScheme">BanasiakCat</property> | |
</metaInfo> | |
<attributes> | |
<option name="LOGCAT_ASSERT_OUTPUT"> |
This file contains 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
public class MyApplication extends MultiDexApplication { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
if(BuildConfig.DEBUG) { | |
final Thread.UncaughtExceptionHandler handler = Thread.getDefaultUncaughtExceptionHandler(); | |
Thread.setDefaultUncaughtExceptionHandler( | |
(t, e) -> { | |
Timber.wtf(e); | |
handler.uncaughtException(t, e); |
This file contains 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 java.io.BufferedReader | |
import java.io.InputStreamReader | |
import java.io.PrintWriter | |
import java.net.ServerSocket | |
import kotlin.concurrent.thread | |
const val SERVER_PORT = 1337 | |
fun main(args: Array<String>) { |
This file contains 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
# curl https://get.pimoroni.com/blinkt | bash | |
import blinkt | |
import requests | |
from collections import deque | |
from requests.adapters import HTTPAdapter | |
from requests.exceptions import ConnectionError | |
from sys import exit | |
from time import sleep |
This file contains 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
# pip3 install RPI.GPIO | |
# pip3 install adafruit-circuitpython-ads1x15 | |
import board | |
import busio | |
import adafruit_ads1x15.ads1115 as ADS | |
import RPi.GPIO as GPIO | |
from adafruit_ads1x15.analog_in import AnalogIn | |
from board import SCL, SDA | |
from math import floor |
This file contains 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 | |
echo Create Backup copies of the original notepad.exe | |
copy C:\Windows\notepad.exe C:\Windows\notepad.exe.bak | |
copy C:\Windows\System32\notepad.exe C:\Windows\System32\notepad.exe.bak | |
copy C:\Windows\SysWOW64\notepad.exe C:\Windows\SysWOW64\notepad.exe.bak | |
echo Take Ownership of the files | |
takeown /F C:\Windows\notepad.exe /A | |
takeown /F C:\Windows\System32\notepad.exe /A | |
takeown /F C:\Windows\SysWOW64\notepad.exe /A |
NewerOlder