Skip to content

Instantly share code, notes, and snippets.

View aperture147's full-sized avatar

Vũ Quang Hải aperture147

View GitHub Profile
@aperture147
aperture147 / sysctl.conf
Created January 9, 2024 18:30 — forked from maprangzth/sysctl.conf
ubuntu sysctl performance tuning
# Kernel sysctl configuration file for Linux
#
# Version 1.12 - 2015-09-30
# Michiel Klaver - IT Professional
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant
#
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
@aperture147
aperture147 / ffmpeg.go
Last active November 13, 2024 16:30
fix make buffer
package main
import (
"bytes"
"io/ioutil"
"log"
"os"
"os/exec"
)
@aperture147
aperture147 / ddclient.conf
Last active August 3, 2020 00:31
ddclient config file for cloudflare
protocol=cloudflare,
#Tell ddclient to get real ip address
use=web, web=checkip.dyndns.org
#Credentials for Cloudflare api
ssl=yes
login=#some email
password=#global API Key
zone=haivq.com
@aperture147
aperture147 / keybase.md
Created September 11, 2019 15:55
Keybase

Keybase proof

I hereby claim:

  • I am aperture147 on github.
  • I am aperture147 (https://keybase.io/aperture147) on keybase.
  • I have a public key ASBd6WY1IzBYC5Zy4QVnfILfp8SmybQ2VmhHke5DNp9B3Ao

To claim this, I am signing this object:

@aperture147
aperture147 / Scanner3.java
Created December 18, 2017 19:35
Scanner3
import java.util.Scanner;
public class MainApp {
public static void main(String[] args) {
String ten;
int tuoi = 0;
String diachi;
Scanner input = new Scanner(System.in);
import java.util.Scanner;
public class MainApp {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Nhap do dai mang: ");
int n = input.nextInt();
int[] array = new int[n];
@aperture147
aperture147 / Example.java
Created December 18, 2017 10:26
Scanner Example
import java.util.Scanner;
public class MainApp {
public static void main(String[] args) {
String ten;
int tuoi = 0;
String diachi;
Scanner input = new Scanner(System.in);