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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
#!/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
<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
# 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
private class DebugModeTapListener implements View.OnClickListener { | |
private int tapCount = 0; | |
private long lastTap = SystemClock.elapsedRealtime(); | |
@Override | |
public void onClick(final View v) { | |
final Context context = getApplicationContext(); | |
long currentTap = SystemClock.elapsedRealtime(); | |
if (currentTap - lastTap < 500) { |
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
/* | |
~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more closely | |
match default behavior on Windows systems. | |
You must log out and back in to see these changes. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers |
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 | |
TOKEN="Get token from https://cloud.digitalocean.com/settings/applications" | |
DOMAIN=example.com | |
RECORD_ID=12345 | |
IP=`curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'` | |
# to get record id: | |
# curl -X GET -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN" "https://api.digitalocean.com/v2/domains/$DOMAIN/records" |
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/sh | |
echo "Formatting code..." | |
./gradlew googleJavaFormat formatKotlin --daemon | |
status=$? | |
if [ "$status" = 0 ]; then | |
echo "Formatting complete - adding files to Git" | |
git add . | |
exit 0 |
NewerOlder