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 torch | |
import os | |
import folder_paths | |
from transformers import AutoModel, AutoTokenizer | |
class InternLMXComposer2: | |
def __init__(self): | |
self.device = "cuda" if torch.cuda.is_available() else "cpu" | |
self.model = None | |
self.tokenizer = None |
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
#!/bin/bash | |
## Russian Roulette | |
## By marduk191 | |
## email: [email protected] | |
#comment these out if you use an external list below | |
#live[0]="You live bitch!" | |
#live[1]="You haven't died YET!" | |
#live[2]="Still alive asshole!..." |
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
Hastebin CLI | |
#Add to ~/.bashrc | |
haste() { a=$(cat); curl -X POST -s -d "$a" http://hastebin.com/documents | awk -F '"' '{print "http://hastebin.com/"$4}'; } | |
alias copy="xclip -selection c" | |
##Usage: |
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
[Nemo Action] | |
Name=bash2bin | |
Comment=Convert "%N" to binary | |
Exec=gnome-terminal --working-directory=%P -e "shc -f %F -o binary_out -r" | |
Icon-Name=gtk-execute | |
Selection=notnone | |
Extensions=sh;bash; | |
Quote=double |
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
#!/bin/bash | |
## Termbin installer | |
## By marduk191 | |
## email: [email protected] | |
printf "%s\n" "Checking dependencies" | |
if ! dpkg-query -W netcat | grep . | |
then printf "%s\n" "netcat isn't installed. Setting up netcat." | |
gksudo apt-get install netcat |
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
#!/bin/bash | |
## Kodi Repo tool frontend | |
## By marduk191 | |
## email: [email protected] | |
while getopts ":sf" flags; | |
do | |
case $flags in | |
s) | |
git add . | |
git commit -a |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<addon id="repository.yourname" name="Your Addons" version="0.1.2" provider-name="You"> | |
<extension point="xbmc.addon.repository" name="Your addons"> | |
<info compressed="false">https://raw.githubusercontent.com/you/your_repo_folder/master/addons.xml</info> | |
<checksum>https://raw.githubusercontent.com/you/your_repo_folder/master/addons.xml.md5</checksum> | |
<datadir zip="true">https://raw.githubusercontent.com/you/your_repo_folder/master/</datadir> | |
</extension> | |
<extension point="xbmc.addon.metadata"> | |
<summary lang="en_GB">Your Kodi Addons</summary> | |
<description lang="en_GB">Your Kodi repository description.</description> |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<!--See http://kodi.wiki/view/Addon.xml for more information --> | |
<addon | |
id="plugin.video.id" | |
name="your cool addon" | |
version="1.2.3" | |
provider-name="Your name or organization"> | |
<!--include all libraries that your plugin will require below. This will tell Kodi what to pull for you --> | |
<!-- http://kodi.wiki/view/Addon.xml#.3Crequires.3E --> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<project name="marduk191/android_device_pantech_presto" path="device/pantech/presto" remote="github" revision="du4.4" /> | |
<project name="PantechDevTeam/android_device_pantech_msm8x60-common" path="device/pantech/msm8x60-common" remote="github" revision="cm-11.0" /> | |
<project name="PantechDevTeam/android_device_pantech_msm8660-common" path="device/pantech/msm8660-common" remote="github" revision="cm-11.0" /> | |
<project name="PantechDevTeam/android_kernel_pantech_msm8660-common" path="kernel/pantech/msm8660-common" remote="github" revision="cm-11.0" /> | |
<project name="PantechDevTeam/android_vendor_pantech_msm8x60-common" path="vendor/pantech/msm8x60-common" remote="github" revision="cm-11.0" /> | |
<project name="PantechDevTeam/android_vendor_pantech_presto" path="vendor/pantech/presto" remote="github" revision="cm-11.0" /> | |
<remove-project name="android_bootable_recovery" /> | |
<remove-project name="frameworks_base" /> |
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
#Acer | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666" | |
#ASUS | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666" | |
#Dell | |
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666" | |
#Foxconn |
NewerOlder