Skip to content

Instantly share code, notes, and snippets.

Raku raku-cat

Block or report user

Report or block raku-cat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View triangle.sh
#!/bin/bash
echo "Script to determine the type of triangle based on side lenghts"
read -p "Enter a side length: " L1
read -p "Enter other side length: " L2
read -p "Enter the hypotenuse: " H
L1=$(echo "$L1*$L1"|bc)
L2=$(echo "$L2*$L2"|bc)
H=$(echo "$H*$H"|bc)
View IRCSock.patch
--- znc/src/IRCSock.cpp.cp 2016-01-24 12:00:05.592063183 -0600
+++ znc/src/IRCSock.cpp 2016-01-24 12:02:00.111098984 -0600
@@ -1206,7 +1206,7 @@
}
m_pNetwork->ClearRawBuffer();
m_pNetwork->ClearMotdBuffer();
-
+/*
CString sPrefix = m_pNetwork->GetUser()->GetStatusPrefix();
for (CChan* pChan : m_pNetwork->GetChans()) {
View cowping.sh
#/bin/bash
if [[ "$1" != "" ]];
then
url="$1"
else
url=google.com
fi
while : ;
do
cowp=$(ping $url | grep -o -m1 time=*.* | sed 's/^[a-z0-9]\+\=//')
View errors
=====================================
______________Xorg.0.log_____________
=====================================
[ 21729.315] (**) Microsoft Microsoft® 2.4GHz Transceiver v7.0: Applying InputClass "libinput keyboard catchall"
[ 21729.315] (II) Using input driver 'libinput' for 'Microsoft Microsoft® 2.4GHz Transceiver v7.0'
[ 21729.315] (**) Microsoft Microsoft® 2.4GHz Transceiver v7.0: always reports core events
[ 21729.315] (**) Option "Device" "/dev/input/event3"
[ 21729.315] (**) Option "_source" "server/udev"
[ 21729.316] (II) input device 'Microsoft Microsoft® 2.4GHz Transceiver v7.0', /dev/input/event3 is tagged by udev as: Keyboard Mouse
View -
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port B)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port D)
00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port F)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB
View -
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 011 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 002: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
View logcat
04-01 14:12:51.952 E/ActivityManager(1480): checkUser: useridlist=null, currentuser=0
04-01 14:12:51.952 E/ActivityManager(1480): checkUser: useridlist=null, currentuser=0
04-01 14:12:51.952 E/ActivityManager(1480): checkUser: useridlist=null, currentuser=0
04-01 14:12:51.952 E/ActivityManager(1480): checkUser: useridlist=null, currentuser=0
04-01 14:12:52.012 E/Zygote (20213): MountEmulatedStorage()
04-01 14:12:52.012 E/Zygote (20213): v2
04-01 14:12:52.032 E/SELinux (20213): [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-01 14:12:52.112 E/Xposed (20213): de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.keyguard.KeyguardViewBase
04-01 14:12:52.112 E/Xposed (20213): at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:55)
04-01 14:12:52.112 E/Xposed (20213): at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:136)
View logcat
04-01 17:54:13.678 E/PowerManagerService(1458): handleSandman : startDreaming, but isDreaming false
04-01 17:54:13.778 E/MotionRecognitionService(1458): handler : SCREEN_OFF end
04-01 17:54:13.818 E/WifiStateMachine(1458): handleScreenStateChanged Exit: false
04-01 17:54:13.838 E/WifiStateMachine(1458): setSuspendOptimizationsNative: 4 true -want true stack:setSuspendOptimizationsNative - access$16800 - processMessage - processMsg
04-01 17:54:13.838 E/WifiStateMachine(1458): setSuspendOptimizationsNative do it 4 true stack:setSuspendOptimizationsNative - access$16800 - processMessage - processMsg
04-01 17:54:13.838 E/native (1458): do suspend true
04-01 17:54:13.968 E/AudioPlayer(673): >>> setAudioEffect Error mAudioFormat : 1, event : 4587583, value : 4390976
04-01 17:54:14.058 W/ResourceType(8683): Invalid package identifier when getting bag for resource number 0x00000303
04-01 17:54:14.078 E/AudioPlayer(673): >>> setAudioEffect Error mAudioFormat : 1, event : 168430090, value : 151652874
04-01 17:54:14.
View dme
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=d8027de9-00ed-4389-8190-92dd5121fe0d ro noapic noapm nodma nomce nolapic nomodeset nosmp
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009dfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007ff5ffff] usable
View debug
12:14:35.157 [DEBUG] [org.gradle.internal.nativeintegration.services.NativeServices] Unable to load from native-platform backed ConsoleDetector. Continuing with fallback. Failure: net.rubygrapefruit.platform.NativeException: Failed to load native library 'libnative-platform-curses.so' for Linux amd64.
caused by: java.lang.UnsatisfiedLinkError: /home/josh/.gradle/native/19/linux-amd64/libnative-platform-curses.so: libncurses.so.5: cannot open shared object file: No such file or directory
12:14:35.880 [INFO] [org.gradle.BuildLogger] Starting Build
12:14:35.884 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /home/josh/.gradle
12:14:35.884 [DEBUG] [org.gradle.BuildLogger] Current dir: /home/josh/AndroidN-ify
12:14:35.885 [DEBUG] [org.gradle.BuildLogger] Settings file: null
12:14:35.886 [DEBUG] [org.gradle.BuildLogger] Build file: null
12:14:35.897 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Starting to build the build sources.
12:14:35.898 [DEBUG] [org.gradle.initialization.buildsrc.BuildS
You can’t perform that action at this time.