Skip to content

Instantly share code, notes, and snippets.

View atamrawi's full-sized avatar

Ahmed Tamrawi atamrawi

View GitHub Profile
@farr
farr / latexbuild.yml
Created October 2, 2020 18:32
GitHub Action for auto-building your LaTeX paper
name: latex-build
on: [push]
jobs:
build-latex:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install TeXlive
run: sudo apt-get install texlive texlive-publishers texlive-science latexmk
#include <stdio.h>
#include <stdlib.h>
int main()
{
int con;
con = 0;
int account_balance = 1100;
while(con == 0){
printf("Welcome to the Store App V1.0\n");
@benjholla
benjholla / Quine.java
Created January 27, 2016 02:25
A simple quine program implementation in Java
public class Quine {
public static void main(String[] args) {
char quote = 34;
String[] code = {
"public class Quine {",
" public static void main(String[] args) {",
" char quote = 34;",
" String[] code = {",
" };",
" for(int i=0; i<4; i++){",
@dpryden
dpryden / ClassLoaderLeakExample.java
Created October 20, 2014 00:01
Example of a ClassLoader leak in Java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,
@pbssubhash
pbssubhash / Google XSS challenge solutions..
Last active August 2, 2023 03:38
Solutions of the Google XSS Challenge..
Hey All,
I am P.B.Surya.Subhash, a 17 Year coder,hacker and a student.
Recently I happen to see so many posts regarding this " Google XSS Challenge " and i was fortunate enough to complete them..
These are the solutions for the challenges ;)
##############################################################################
Level 1: Hello, world of XSS
https://xss-game.appspot.com/level1/frame
query=<script>alert('xss')</script>
export ROOT="${HOME}/wii-linux"
export BUILDDIR="${PWD}"
export LFS_TGT=powerpc-linux
export PATH="${PATH}:${BUILDDIR}/tools/bin:${ROOT}/bin"
(
wget -c 'http://www.linuxfromscratch.org/patches/lfs/7.2/binutils-2.22-build_fix-1.patch'
wget -c 'http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.gz'
wget -c 'http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.1.tar.xz'
wget -c 'http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.xz'