Skip to content

Instantly share code, notes, and snippets.

View CSaratakij's full-sized avatar
🎯
Focusing

Chatchai Saratakij CSaratakij

🎯
Focusing
View GitHub Profile
@CSaratakij
CSaratakij / ExLoopFun.cs
Last active April 1, 2016 17:52
My example of printing number.
using System;
using System.Collections.Generic;
namespace ExLoopFun
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter the positive integer number : ");
@CSaratakij
CSaratakij / gist:4ed1e681616a0e87f0ba6daa683277c4
Created April 24, 2016 18:05 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@CSaratakij
CSaratakij / JavaApplication1.java
Last active April 27, 2016 11:54
My Java random pick by index example.
package javaapplication1;
import java.util.*;
public class JavaApplication1 {
public static void main(String[] args) {
Random rand = new Random();
@CSaratakij
CSaratakij / tmux-cheatsheet.markdown
Created July 22, 2016 13:44 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@CSaratakij
CSaratakij / fbterm-hacks.md
Created July 24, 2016 09:00 — forked from zellio/fbterm-hacks.md
fbterm, installation and configuration hacks

fbterm setup and config hacks

Installation and setup

Install fbterm via your favorite package manager

pacman -S fbterm

Most active GitHub users in Thailand

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 29 Jul 2015 01:52:41 GMT till Fri, 29 Jul 2016 01:52:41 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 6)

Bomb Lab necessities

The bomb lab is most easily completed if you understand the following tools and commands. Also, if I am describing a program, assume that you run it from command line.

Strings

In case you have never used strings before it basically just tells you all the strings in an executable. If I were to run it on the bomb I would simply run

@CSaratakij
CSaratakij / main.py
Created August 18, 2016 17:01
Test Exit Turtle
#!/usr/bin/env python3
import turtle, sys
from turtle import Turtle
from turtle import Screen
class MyTurtle(Turtle):
def quit(self, btn, fun):
@CSaratakij
CSaratakij / dunstrc
Created November 2, 2016 19:53 — forked from alexlangberg/dunstrc
Settings for dunst notifications. Colors from FlatStudio GTK theme (dark). Place in ~/.config/dunst/
[global]
font = Ubuntu 10
# Allow a small subset of html markup in notifications and formats:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
@CSaratakij
CSaratakij / 51-these-are-not-joysticks.rules
Created November 6, 2016 13:16 — forked from denilsonsa/51-these-are-not-joysticks.rules
Fix for keyboard/mouse/tablet being detected as joystick in Linux — Moved to https://github.com/denilsonsa/udev-joystick-blacklist
#
# ███╗ ███╗ ██████╗ ██╗ ██╗███████╗██████╗ ████████╗ ██████╗
# ████╗ ████║██╔═══██╗██║ ██║██╔════╝██╔══██╗ ╚══██╔══╝██╔═══██╗
# ██╔████╔██║██║ ██║██║ ██║█████╗ ██║ ██║ ██║ ██║ ██║
# ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██║ ██║ ██║ ██║ ██║
# ██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗██████╔╝ ██║ ╚██████╔╝
# ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝╚═════╝ ╚═╝ ╚═════╝
#
# ╔═════════════════════════════════════════════════════════════════╗
# ║ https://github.com/denilsonsa/udev-joystick-blacklist ║