Skip to content

Instantly share code, notes, and snippets.

View toanalien's full-sized avatar
🎯
Focusing

Thiên Toán toanalien

🎯
Focusing
View GitHub Profile
@toanalien
toanalien / DownloadFile.js
Last active April 29, 2023 15:18
Sose.xyz crawl
var fs = require('fs');
var async = require('async');
var request = require('request');
var url = require('url');
var path = require('path');
var filename = 'thichucolinkko.txt';
var concurrency = 10;
function downloadFile(link, cb) {
@toanalien
toanalien / gist:f8dda06fb51169f65d22
Last active October 26, 2022 13:15
present collection
http://forum.vietdesigner.net/threads/lightroom-preset-75-share-free-bo-hon-1000-mau-du-cac-the-loai-nha-ca-nha.90841/
http://forum.vietdesigner.net/threads/holiday-limited-edition-collection-for-lightroom-3-jpeg-40-for-share.6202/
http://forum.vietdesigner.net/threads/share-natural-hdr-lightroom-presets-12.43825/
http://forum.vietdesigner.net/threads/film-lightroom-presets-bw.93786/
http://forum.vietdesigner.net/threads/70-hieu-ung-bokeh-light-leaks-lr-presets.95069/
http://forum.vietdesigner.net/threads/chia-se-lightroom-preset-blend-mau-hieu-ung-instagram.44788/
http://forum.vietdesigner.net/threads/preset-lr-50-premium-lightroom-presets-vol-1.48059/
http://forum.vietdesigner.net/threads/10-share-100-preset-lightroom-wedding-pack-tu-creativemarket.93883/
http://forum.vietdesigner.net/threads/share-20-pinhole-pro-lightroom-presets.106031/
@toanalien
toanalien / dictionary.py
Last active February 28, 2022 14:32
switch/case python
def numbers_to_strings(argument):
switcher = {
0: "zero",
1: "one",
2: "two",
}
return switcher.get(argument, "nothing")
settings:
log_mode: text
log_level: DEBUG
output_mode: cli
update_interval: 300
market_pairs:
- OCN/BTC
# - DOCK/BTC
- ETH/BTC
- EOS/BTC
@toanalien
toanalien / encryption.java
Created June 26, 2016 02:55
debug encryption
/*
* Decompiled with CFR 0_110.
*
* Could not load the following classes:
* android.util.Base64
* java.lang.Exception
* java.lang.Object
* java.lang.String
* java.security.Key
* java.security.spec.AlgorithmParameterSpec
/* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+scss+bash */
/**
* okaidia theme for JavaScript, CSS and HTML
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
* @author ocodia
*/
code[class*="language-"],
pre[class*="language-"] {
color: #f8f8f2;
@toanalien
toanalien / 1434042726.cpp
Last active February 9, 2021 00:24
Tree Search Binary
#include <stdio.h>
#include <stdlib.h>
#define MAX 100
struct SNode
{
int info;
struct SNode *pLeft;
struct SNode *pRight;
};
@toanalien
toanalien / install-tmux.sh
Last active December 19, 2020 15:43 — forked from pokev25/install-tmux.sh
Install tmux 2.8 on centos 7
# Install tmux 2.8 on Centos
# install deps
yum install gcc kernel-devel make ncurses-devel libevent-devel
yum groupinstall "Development Tools"
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar -xf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
// https://sensiblechinese.com/common-chinese-characters/
// paste to Chrome console
cols = jQuery('.column-2')
characters = []
for (i=1; i<cols.length; i++) { // skip table header
characters.append(jQuery(cols[i]).text()));
@toanalien
toanalien / vscode-remove-duplicate-lines.md
Created June 14, 2020 12:41 — forked from marcosvpj/vscode-remove-duplicate-lines.md
How to remove duplicate lines in Visual Studio Code?

If the order of lines is not important##

Sort lines alphabetically, if they aren't already, and perform these steps:
(based on this related question: https://stackoverflow.com/q/1573361/3258851)

  1. Control+F

  2. Toggle "Replace mode"

  3. Toggle "Use Regular Expression" (the icon with the .* symbol)