This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Optimized picom.conf configuration (tested on an NVIDIA card) | |
# Gits URL: https://gist.github.com/jamescherti/59f61eeaf17ccc16e1eab2c98d699d31 | |
# License: MIT | |
# Maintainer of this picom.conf: James Cherti | |
################################# | |
# Shadows # | |
################################# | |
# Enabled client-side shadows on windows. Note desktop windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[shank@tryvoid ~]$ sudo xbps-install --repository -u tzdata --verbose | |
Found tzdata-2023a_2 in repository https://repo-default.voidlinux.org/current | |
Name Action Version New version Download size | |
tzdata update 2022g_1 2023a_2 - | |
Size required on disk: 1167KB | |
Space available on disk: 102GB | |
Do you want to continue? [Y/n] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\ | |
function register_clang_version { | |
local version=$1 | |
local priority=$2 | |
update-alternatives \ | |
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::cell::RefCell; | |
use std::rc::Rc; | |
#[derive(Debug, Clone)] | |
struct Node { | |
value: String, | |
next: Link, | |
prev: Link, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::cell::RefCell; | |
use std::rc::Rc; | |
#[derive(Clone)] | |
struct Node { | |
value: String, | |
next: SingleLink, | |
} | |
impl Node { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MyModule.Router do | |
@moduledoc """ | |
Http Entry Point | |
""" | |
use Plug.Router | |
use Plug.ErrorHandler | |
plug Plug.Logger | |
plug :match |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | |
List<String> list = new ArrayList<String>(); | |
list.add("item1"); | |
list.add("item2"); | |
list.add("item3"); | |
String json = new Gson().toJson(list); | |
response.setContentType("application/json"); | |
response.setCharacterEncoding("UTF-8"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import with_statement # needed for python 2.5 | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
from fabric.contrib import files | |
USAGE = """ | |
================================================================ | |
NOTE: | |
using this fabfile expects that you have the python utility |