This file contains hidden or 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
metaxploit = include_lib("/lib/metaxploit.so") | |
if not metaxploit then metaxploit = include_lib(current_path + "/metaxploit.so") | |
c_red = "<color=#ff0000>" | |
c_green = "<color=#00ff00>" | |
c_blue = "<color=#0000ff>" | |
c_grey = "<color=#999999>" | |
c_reset = "</color>" | |
vbt = get_shell.host_computer.File(current_path + "/vbt") |
This file contains hidden or 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 { useQuery as useQueryReal } from '@apollo/client'; | |
import _ from 'lodash'; | |
import { | |
useEffect, | |
useCallback, | |
useRef, | |
} from 'react'; | |
export const useQuery = (query, { | |
skip = false, |
This file contains hidden or 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 | |
set ARG=%1 | |
set next=1 | |
FOR /F "USEBACKQ delims=" %%F in (`adb shell "for i in $(pm list packages | awk -F':' '{print $2}' | grep -F '%ARG%'); do pm path $i | awk -F':' '{print $2}'; done | xargs echo"`) do ( | |
set OUTPUT=%%F | |
) | |
echo "%OUTPUT%" | |
goto :main | |
:loop |
This file contains hidden or 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
const shouldStripNvar = (value) => !/[^\u0000-\u00ff]/.test(value); | |
const ss = require("sequelize/lib/sql-string"); | |
const dataTypes = require('sequelize/lib/data-types'); | |
const { logger } = require('sequelize/lib/utils/logger'); | |
function arrayToList(array, timeZone, dialect, format) { | |
return array.reduce((sql, val, i) => { | |
if (i !== 0) { |
This file contains hidden or 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
# pulseaudio defaults to only detecting Astro A50 voice and microphone, not game | |
# this is what i had to do to fix it, hopefully it saves someone some time | |
# index:subdevice may be different for you | |
# resources: | |
# https://wiki.archlinux.org/index.php/PulseAudio/Examples at "module-alsa-sink" | |
# https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index6h3 | |
.nofail | |
load-module module-alsa-sink device=hw:3,0 sink_name=voice |
This file contains hidden or 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
static void Decrypt(string backup_file) | |
{ | |
RijndaelManaged aesEncryption = new RijndaelManaged(); | |
using (System.IO.FileStream f = System.IO.File.OpenRead(backup_file)) | |
{ | |
if ("ANDROID BACKUP" != readString(f)) | |
return; | |
Console.WriteLine("Version:" + readString(f)); |
This file contains hidden or 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
def get_lfm_artist_gids(a_user) | |
response = Net::HTTP.get_response("ws.audioscrobbler.com", "/2.0/?method=user.gettopartists&user=#{get_user(a_user)}&limit=1&api_key=#{$api_key}&format=json") | |
jresponse = JSON.parse(response.body) | |
puts jresponse.inspect | |
page = 1 | |
gids = [] | |
until page > jresponse['topartists']['@attr']['totalPages'].to_i do | |
response = Net::HTTP.get_response("ws.audioscrobbler.com", "/2.0/?method=user.gettopartists&user=#{get_user(a_user)}&limit=1000&page=#{page}&api_key=#{$api_key}&format=json") | |
jresponse = JSON.parse(response.body) | |
jresponse['topartists']['artist'].each do |artist| |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'cinch' | |
require 'sqlite3' | |
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'ud' | |
require 'date' | |
:TitsMagoo |
NewerOlder