Skip to content

Instantly share code, notes, and snippets.

View vietlubu's full-sized avatar
:octocat:

Vietlubu vietlubu

:octocat:
View GitHub Profile
@vietlubu
vietlubu / chat.css
Last active November 13, 2023 09:07 — forked from clngn/chat.css
YouTubeチャット用のカスタムCSS(based on https://chatv2.septapus.com/ )
@import url("https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c:700,900");
body {
overflow: hidden;
background-color: rgba(0, 0, 0, 0);
}
yt-live-chat-item-list-renderer #items {
overflow: hidden !important;
}
@vietlubu
vietlubu / annepro2.json
Last active June 10, 2023 16:57
Anne pro 2 Karabiner mapping to transform right_shift to up_arrow. Download and copy to `~/.config/karabiner/assets/complex_modifications/`
{
"title": "Anne pro 2",
"rules": [
{
"description": "left_command + right_shift = left_command + up",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_shift",
@vietlubu
vietlubu / convert-script_commands-to-json.md
Last active June 20, 2019 07:13
Convert script_commands.txt to JSON data

Convert script_commands.txt to JSON data.

  • It a quick and simple PHP script convert text fix to JSON data for easy handle data
  • That all
#EXTM3U
#EXTINF:-1,MTV
http://42.117.13.32:4022/udp/225.1.1.245:30120
#EXTINF:-1,Animal Planet
http://42.117.13.32:4022/udp/225.1.1.231:30120
#EXTINF:-1,Arirang
http://42.117.13.32:4022/udp/225.1.1.201:30120
#EXTINF:-1,Asian Food Channel HD
http://42.117.13.32:4022/udp/225.1.1.198:30120
#EXTINF:-1,Asian Food Channel HD
char * get_anchorid(char anchorname[])
{
// anchorid = anchorname;
int i, j;
for (i = 0, j = 0; anchorname[i] != 0; i++) {
anchorname[i] = tolower(anchorname[i]);
// Check space
if (anchorname[i] == 32) {
anchorname[i] = 45; // Change space to hyphen

First 200 lines

--- /Users/vietphamb./Documents/BackupDB/itemDESC-old.csv	Thu Mar  8 08:53:45 2018
+++ /Users/vietphamb./Documents/BackupDB/itemDESC-new.csv	Thu Mar  8 08:53:34 2018
@@ -20,12 +20,12 @@
 2722,"A medal rewarded to honorable warriors.<br />------------------------<br />MaxHP +600<br />ATK +5%<br />MATK +5%<br />MDEF +6<br />------------------------<br />Randomly inflicts <font color=\"#663399\">Silence</font> status on target when dealing physical attack.<br />------------------------<br />Armor:<font color=\"#6666CC\"> Accessory</font><br />Defense:<font color=\"#0000FF\"> 1</font><br />Weight:<font color=\"#006600\"> 0</font><br />Level Requirement:<font color=\"#006600\"> 70</font><br />Jobs:<font color=\"#6666CC\"> Acolyte</font><br />"
 2721,"A medal rewarded to honorable warriors.<br />------------------------<br />MaxHP +300<br />MaxSP +80<br />ATK +5%<br />MATK +5%<br />FLEE +10<br />------------------------<br />Randomly inflicts <font color=\"#663399\">Poison</font> status on t
@vietlubu
vietlubu / _config.yml
Created February 28, 2018 01:14 — forked from ravasthi/_config.yml
Multiple authors on Jekyll
authors:
hanzou:
name: Hanzou Hattori
display_name: Hanzou
gravatar: c66919cb194f96c696c1da0c47354a6a
email: hanzou@company.com
web: http://company.com
twitter: company
github: hhattori
jorgen:
<?php
$servername = "localhost";
$username = "root";
$password = "root";
$database = "rathena";
try {
$conn = new PDO("mysql:host=$servername;dbname=$database", $username, $password);
// set the PDO error mode to exception
@vietlubu
vietlubu / config.txt
Created January 16, 2018 04:26
Basic config
# Please Read the Users Manual
# The Manual is located at http://wiki.openkore.com/index.php?title=Manual
######## Login options and server-specific options ########
master International - iRO: Ymir/Yggdrasil/Valkyrie
server 1
username
password
loginPinCode
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->