Skip to content

Instantly share code, notes, and snippets.

View slendidev's full-sized avatar
👁️
Hello

λxy.x slendidev

👁️
Hello
View GitHub Profile
Dim arr1(200)
Set oShell = WScript.CreateObject ("WScript.Shell")
For i = 0 to 110 Step 1
arr1(i) = CStr(i)
oShell.run "cmd.exe /C Z: & cd Z:/info/Desktop & mkdir " & CStr(i)
Next
Dim objShell, strProgram
Set objShell = CreateObject("Wscript.Shell")
#!/bin/sh
set -e
. ./headers.sh
for PROJECT in $PROJECTS; do
(cd $PROJECT && DESTDIR="$SYSROOT" $MAKE install)
done
@slendidev
slendidev / updated.py
Last active September 12, 2021 14:27
#############
# Imports
#############
from string_with_arrows import *
import string
#############
# Constants
#############
@slendidev
slendidev / main.c
Created May 30, 2019 19:14
i made this hell
#include "yeet.h"
yeet yEet yEEt yEeT yeeet
yeet i yeET n yeET t1 yeetyeet 0 yeET t2 yeetyeet 1 yeET nextTerm YEEt
YEEEEEEET yEEt YeeeeT yEeT YEEt
YEEEEEEEEEEEEET yEEt YeEEEt, &n yEeT YEEt
YEEEEEEET yEEt YEEEet yEeT YEEt
#include <iostream>
#include <fstream>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
using namespace std;
int main() {
#!/usr/bin/env bash
for var in "$@"
do
printf "Generating project $var "
# Generate project
if [[ -d $var ]]
then
printf "[\e[0;49;91mFAILED\e[m]\n"
#!/bin/sh
osname="$(lsb_release -c -s)"
if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
echo "Please switch TTY to something other than 1."
exit
fi
nc -z gnu.org 80
@slendidev
slendidev / adbfe.py
Last active September 22, 2021 12:11
#!/usr/bin/env python
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import *
import os
import os.path as op
import subprocess
from subprocess import check_output as ceout
#!/usr/bin/bash
input -p 'Server path: ' SRV_PATH
input -p 'Version: ' VERSION
apt update
apt upgrade -y
apt install -y curl screen vim
mkdir -p $SRV_PATH/mods
-- Logic
function check_inventory_slots()
local data_saplings = turtle.getItemDetail(1)
local data_torches = turtle.getItemDetail(2)
if not data_saplings then
return 'check_inventory_slots() -> Failed to get saplings information'
else
local sapling_name = data_saplings.name
if not string.find(sapling_name, 'sapling') then