Skip to content

Instantly share code, notes, and snippets.

View Suleman-Elahi's full-sized avatar
🏴‍☠️
Working from underground

Suleman Suleman-Elahi

🏴‍☠️
Working from underground
  • Winterhold
View GitHub Profile
@Suleman-Elahi
Suleman-Elahi / SearchMD5HASH.ps1
Last active March 27, 2024 16:03
English Translation of the PowerShell, XAML script to search files in a folder by providing its MD5 hash - Original script by https://github.com/spymobilfon/SearchHashMD5
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
[xml]$XAML = @'
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Search for files by MD5 hash function" Height="350" Width="500" WindowStartupLocation="CenterScreen" Background="White">
<Grid>
<Label Content="Folder or file for search:" HorizontalAlignment="Left" Margin="20,20,0,0" VerticalAlignment="Top"/>
App directory structure:
~/airnotifier/api/tokens.py --> contains a function called delete I want to call --> This function specifically --> https://github.com/airnotifier/airnotifier/blob/master/api/tokens.py#L38
~/airnotifier/pushservices/apns.py --> my modified apns file that wants to call the function above
What I did:
in ~/airnotifier/pushservices/apns.py, I added
from api.tokens import delete as my_delete
The error it gives me is to do with another module and the error goes away when I remove that line
const int button = 2; // switch input
const int motor1Pin = 3; // H-bridge leg 1 (pin 2, 1A)
const int motor2Pin = 4; // H-bridge leg 2 (pin 7, 2A)
const int enablePin = 9; // H-bridge enable pin
void setup() {
// set the switch as an input
pinMode(button, INPUT);
@Suleman-Elahi
Suleman-Elahi / activity_main
Created April 12, 2018 04:34 — forked from hidelkys/activity_main
HelloAndroid
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:background="#303c47">
<ImageView
android:id="@+id/imageView"
@Suleman-Elahi
Suleman-Elahi / style-widget-wp.css
Last active April 12, 2018 04:36 — forked from iamthom/style-widget-wp.css
BG Change # CSS
.widget_recent_entries a {
color: #b3b3b1;
}
.widget_recent_entries a:hover {
color: #b3b3b1 !important;
}
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestStreamHandler;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.amazonaws.services.s3.model.ObjectMetadata;
import com.amazonaws.services.s3.model.PutObjectRequest;
import com.amazonaws.services.s3.model.PutObjectResult;
@Suleman-Elahi
Suleman-Elahi / MainActivity.java
Created April 12, 2018 04:34 — forked from susanas/AndroidManifest.xml
This is my Quiz App project for the Grow With Google Challenge Scholarship: Android Basics Course
package com.example.android.braquizapp;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
@Suleman-Elahi
Suleman-Elahi / Stylefile.yml
Created August 2, 2018 04:17
Customizations for www.freewarefiles.com via StyleURL.
---
version: 1.0
domains:
- www.freewarefiles.com
url_patterns:
- www.freewarefiles.com/*
timestamp: '2018-08-02T04:17:41Z'
id: JJaR
redirect_url: https://www.freewarefiles.com/Manager-Desktop-Edition-_program_112372.html
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome
@Suleman-Elahi
Suleman-Elahi / understanding-word-vectors.ipynb
Created November 13, 2018 05:51 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Suleman-Elahi
Suleman-Elahi / unicode.py
Created December 17, 2018 09:46
A simple python script to generate unicode characters in a specific range
i=int(input("Enter Lrange: "))
j=int(input("\nEnter Rrange: "))
for x in range(i,j,1):
print (chr(x),end=' ')