Skip to content

Instantly share code, notes, and snippets.

@nottux
nottux / vbu.sh
Last active February 22, 2019 23:56
Updates vpnbook password to a file
#/bin/sh
VPNBOOK:
echo vpnbook>/home/utku/vpn/vpnbook/password; wget -qO - https://www.vpnbook.com |grep Password: |tr -d " " |sed 2d |cut -b 22- |rev |cut -b 16- |rev>>/home/utku/vpn/vpnbook/password
echo vpnbook>(desired file here without "(" and ")"); wget -qO - https://www.vpnbook.com |grep Password: |tr -d " " |sed 2d |cut -b 22- |rev |cut -b 16- |rev>>(desired file here without "(" and ")")
FREEVPN:
rm (desired file here without "(" and ")");echo freevpnme>(desired file here without "(" and ")");wget -qO - http://freevpn.me/accounts|tr \< A|tr \> C|tr / B|awk '{gsub(/ABliCAliCAbC/,"\n")}1'|awk '{gsub(/Aspan /,"\n")}1'|grep Password:ABbC|head -1|awk '{gsub(/AliCAbC/,"")}1'|awk '{gsub(/Password:ABbC /,"")}1'|awk '{gsub(/Password:ABbC/,"")}1'|tr -d " ">>(desired file here without "(" and ")")
you can copy and paste to your terminal and run
@nottux
nottux / dmesgout.txt
Created May 6, 2018 16:07
log file for antergos issue
[ 0.000000] microcode: microcode updated early to revision 0x2a, date = 2018-01-18
[ 0.000000] Linux version 4.16.6-1-ARCH (builduser@heftig-20360) (gcc version 7.3.1 20180406 (GCC)) #1 SMP PREEMPT Mon Apr 30 12:30:03 UTC 2018
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=a8762702-f0cf-4ab2-b649-ecef175c1651 rw quiet resume=UUID=aee2417f-46e2-4e07-a19e-546a003c8a23 sysrq_always_enabled=1
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
@nottux
nottux / url.txt
Created September 8, 2018 12:05
termbin url
http://termbin.com/x75i8
http://termbin.com/btvi3
http://termbin.com/zrms
@nottux
nottux / config.blk
Created September 27, 2018 12:55
war thunder config file
forcedLauncher:i=0
renderer2:t="vulkan"
doShowDriversOutdated:b=yes
language:t="English"
use_release_candidate:b=no
releaseChannel:t=""
clientType:t="32bit"
hdClient:b=no
graphicsQuality:t="custom"
use_gamepad_cursor_control:b=no
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD A10-9620P RADEON R5, 10 COMPUTE CORES 4C+6G
CPU Family: 0x15
@nottux
nottux / ahh.cpp
Created March 4, 2019 13:20
visual studio 2010 sucks
#include<stdio.h>
#include<stdlib.h>
//usual stuff
int main(){
int age;
int x;
int y;
scanf("%d", &age);
printf("i freaaking hate microsoft winblows \n");
printf("hop and O");
http://gpuz.techpowerup.com/19/03/05/rx9.png
http://gpuz.techpowerup.com/19/03/05/fcs.png
@nottux
nottux / gist:4f511605f5278b11fcc2e1d90f88874b
Created May 6, 2019 20:01
pop_os! fail when grub installs
[INFO distinst:crates/disks/src/config/disk.rs:163] obtaining disk information from /dev/sda
[INFO distinst:crates/disks/src/serial.rs:16] obtaining serial model from /dev/sda
[INFO distinst:crates/disk-ops/src/parted.rs:28] opening disk at /dev/sda
[INFO distinst:crates/disks/src/config/partitions/mod.rs:109] obtaining partition information from /dev/sda1
[INFO distinst:crates/disks/src/config/partitions/mod.rs:109] obtaining partition information from /dev/sda2
[INFO distinst:crates/disks/src/config/partitions/mod.rs:109] obtaining partition information from /dev/sda3
[INFO distinst:crates/disks/src/config/disk.rs:163] obtaining disk information from /dev/sdb
[INFO distinst:crates/disks/src/serial.rs:16] obtaining serial model from /dev/sdb
[INFO distinst:crates/disk-ops/src/parted.rs:28] opening disk at /dev/sdb
[INFO distinst:crates/disks/src/config/partitions/mod.rs:109] obtaining partition information from /dev/sdb2
@nottux
nottux / dpm_utilities.txt
Last active September 10, 2019 19:58
dpm utilities
{sudo password here} {device number here} {.wav file here} {temperature degree here} {screenshot directory}
To watch temperature:
#old_one:
while true;do a=$(echo {sudo password here}|sudo -S cat /sys/kernel/debug/dri/{device number here}/amdgpu_pm_info|grep Temperature|tr -d ' GPUTmpratueC:');echo $a;cat /sys/class/drm/card{device number here}/device/power_dpm_force_performance_level;if [ $a -gt {temperature degree here} -a $a -ne 511 ];then aplay --device=pulse {.wav file here};else echo cool;fi;sleep 5;done
#New one:
while true;do a=$(echo {sudo password here}|sudo -S cat /sys/kernel/debug/dri/{device number here}/amdgpu_pm_info|grep Temperature|tr -d ' GPUTmpratueC:');echo $a;cat /sys/class/drm/card{device number here}/device/power_dpm_force_performance_level;if [ $a -gt {temperature degree here} -a $a -ne 511 -a $(cat /sys/class/drm/card{device number here}/device/power_dpm_force_performance_level) != auto ];then echo {sudo password here}|sudo -S su -c 'echo auto>/sys/class/drm/card{device number here}/
sh -c 'a=$(mktemp -u).png;b=/home/utku3/Pictures/text_shots/$(date +%Y-%m-%d_%H:%M:%S:%N);scrot -q100 $a&&tesseract $a $b||echo scrot or tesseract failed>>$b.txt;rm $a'
#sh -c 'a=$(mktemp -u).png;b=/home/utku3/Pictures/text_shots/$(date +%Y-%m-%d_%H:%M:%S:%N);scrot -q100 $a 2>$b.txt&&tesseract $a $b 2>$b.txt||echo scrot or tesseract failed>>$b.txt;rm $a'
sh -c 'scrot /home/utku/Resimler/scrot/$(date +%Y-%m-%d_%H:%M:%S:%N).png'
sh -c 'a=$(mktemp -u).png;b=/home/utku3/Pictures/text_shots/$(date +%Y-%m-%d_%H:%M:%S:%N);import $a&&tesseract $a $b||echo scrot or tesseract failed>>$b.txt;rm $a'
eval "sudo su -c 'echo powersave>/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&echo 0|tee /sys/devices/system/cpu/cpu{1..$(($(nproc)-1))}/online'"