Skip to content

Instantly share code, notes, and snippets.

View Nanodragon999's full-sized avatar
๐Ÿ 
Searching for a remote work.

Norton Nanodragon999

๐Ÿ 
Searching for a remote work.
  • France
View GitHub Profile
#!/usr/bin/php
<?php
declare(strict_types = 1);
// require_once ('hhb_.inc.php');
hhb_init ();
if ($argc !== 3) {
fprintf ( STDERR, "usage: %s timestamp url\n", $argv [0] );
fprintf ( STDERR, "example: %s 20091012061648 http://www.p4w.se\n", $argv [0] );
die ( 1 );
}
@jacilynh
jacilynh / Keyboard Shortcuts.md
Created October 10, 2017 00:47 — forked from deanrather/Keyboard Shortcuts.md
Keyboard Shortcuts (Sublime, Gmail, Chrome, Bash)

Sublime Text

ctrl+shift          Search for command
    reindent        Reindent Selection
    sort            Sort Lines
    space           Convert indentation to spaces
ctrl+p              Jump to file ( `:<n>` jump to line)
ctrl+;              Jump to keyword in file
ctrl+k,b            Hide/show Sidebar

alt+shift+ Split window into views

@matthewzring
matthewzring / markdown-text-101.md
Last active July 27, 2025 12:41
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

#!/usr/bin/env bash
set -e
main() {
previous_file="$1"
file_to_edit=`select_file $previous_file`
if [ -n "$file_to_edit" ] ; then
"$EDITOR" "$file_to_edit"
main "$file_to_edit"
@mannharleen
mannharleen / spark all file format types and compression codecs.scala
Created September 9, 2017 14:59
Text file, json, csv, sequence, parquet, ORC, Avro, newHadoopAPI
/*
Assume that the following "rdd" exists
val rdd = sc.parallelize(Array((1,1), (0,2), (1,3), (0,4), (1,5), (0,6), (1,7), (0,8), (1,9), (0,10)))
type of rdd -> org.apache.spark.rdd.RDD[(Int, Int)] = MapPartitionsRDD[1]
rdd.collect -> Array[(Int, Int)] = Array((1,1), (0,2), (1,3), (0,4), (1,5), (0,6), (1,7), (0,8), (1,9), (0,10))
*/
import org.apache.spark.{SparkConf,SparkContext}
import org.apache.spark.sql.SQLContext
@asukakenji
asukakenji / 0-go-os-arch.md
Last active July 23, 2025 04:12
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix โœ…
android โœ…
@ohhdemgirls
ohhdemgirls / threaded_httpd.py
Created August 3, 2017 01:54
Multi-threaded python httpd
#!/bin/env python
import SocketServer
import BaseHTTPServer
import SimpleHTTPServer
class ThreadingSimpleServer(SocketServer.ThreadingMixIn,
BaseHTTPServer.HTTPServer):
pass
@NicolasLoew
NicolasLoew / CSGServerDemo.kt
Created June 15, 2017 20:23 — forked from null-dev/CSGServerDemo.kt
1fichier.com direct link generator
package xyz.nulldev.csg
import okhttp3.OkHttpClient
import okhttp3.Request
import org.jetbrains.ktor.http.HttpStatusCode
import org.jetbrains.ktor.netty.embeddedNettyServer
import org.jetbrains.ktor.response.respondRedirect
import org.jetbrains.ktor.response.respondText
import org.jetbrains.ktor.routing.get
import org.jetbrains.ktor.routing.routing
@null-dev
null-dev / CSGServerDemo.kt
Last active May 11, 2025 09:45
1fichier.com direct link generator
package xyz.nulldev.csg
import okhttp3.OkHttpClient
import okhttp3.Request
import org.jetbrains.ktor.http.HttpStatusCode
import org.jetbrains.ktor.netty.embeddedNettyServer
import org.jetbrains.ktor.response.respondRedirect
import org.jetbrains.ktor.response.respondText
import org.jetbrains.ktor.routing.get
import org.jetbrains.ktor.routing.routing
@Konstantinusz
Konstantinusz / save_imagebam
Last active April 28, 2019 09:09
Script to save your photos from imagebam (site will be closed soon). It uses the script imagebam_dl to download the galleries, just put it on the path. It also saves meta informations of galleries into JSON file. You must provide your login and password as arguments in this order.
#!/usr/bin/ruby
require "json"
require "peach" rescue nil
felh=ARGV[0]
jelsz=ARGV[1]
%x{curl 'http://www.imagebam.com/login' -s -c ~/imagebam-cookie.txt -H 'User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36' -H 'Referer: http://www.imagebam.com/login' --data "action=true&nick=#{felh}&pw=#{jelsz}"}
ret=%x{curl 'http://www.imagebam.com/sys/gallerybrowser/getData/' -b ~/imagebam-cookie.txt -H 'Pragma: no-cache' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36 OPR/43.0.2442.806' -H 'Content-Type: text/plain; charset=utf-8' -H 'Accept: */*' -H 'Referer: http://www.imagebam.com/gwt/gallerybrowser/FC785CCD0E5C531F9C9EB53A9C0334E9.cache.html' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' --compressed -L}